<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<br>I am trying to use vtkImageResample to reduce the resolution of my
image.
<br>I am not quite sure how to retrieve the scalars of the resampled image.
<p>I am able to use the filter and send it to the ImageViewer and
see the result
<br>without problem. But I need to get the final scalar array of the resampled
image, as
<br>it goes to another part of the application.
<p>I assumed that the scalar output of the vtkImageResample would have
the right
<br>scalar array containing the resampled image. For instance, if I resample
by (0.5,0.5,1),
<br>then I expect half the number of scalars in the output scalars
array. I am getting
<br>a distorted image in this case. Is it possible that the output array
is of the same
<br>size, but that I need to subsample (in the above case, by getting
every other scalar value)?
<p> -- krs
<pre>--
K.R.Subramanian Phone: (704) 547-4872
Department of Computer Science FAX: (704) 547-3516
UNC Charlotte, 228A Kennedy
9201 Univ. City Blvd. Email: krs@cs.uncc.edu
Charlotte, NC 28223-0001 WWW: <A HREF="http://www.cs.uncc.edu/~krs">http://www.cs.uncc.edu/~krs</A></pre>
</html>