[Insight-users] ExtractImageFilter

Puja Malik puja.malik@MEMcenter.unibe.ch
Fri, 31 Jan 2003 13:49:15 +0100


--Boundary_(ID_hZ4jqFPJ3lD7qOcwAPctMQ)
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7BIT

Hello,
I'm having trouble using the itk ExtractImageFilter.

In my implementation, I use an image of size {512,512,30}.  The interger
range in this image is from 0 to 272.  When I extract a region size of
the same size as the image, I get back the correct image.  However, if I
set my index as {0,0,0} and extract a region size of {511, 511, 30},
then I get the correct image back, however the interger range is now
from 0 to 4161 and the image appears much dimmer.  It seems that the
smaller I make the region to be extracted, the larger the resulting
image's interger range is.

Perhaps I'm not understanding the functionality of the
ExtractImageFilter properly.  Does anyone have any idea how I could fix
this?

Thanks,
Puja


--
---------------------------------------
Puja Malik
Surgical Instruments Group
MEM Research Center for Orthopaedic Surgery
Institute for Surgical Technology and Biomechanics
University of Bern
Murtenstrasse 35, P.O. Box 8354
3010 Bern, Switzerland
Phone: +41-31-632-8730
Fax: +41-31-632-4951
Email: Puja.Malik@MEMcenter.unibe.ch
http://www.MEMcenter.unibe.ch
---------------------------------------



--Boundary_(ID_hZ4jqFPJ3lD7qOcwAPctMQ)
Content-type: text/html; charset=us-ascii
Content-transfer-encoding: 7BIT

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Hello,
<br>I'm having trouble using the itk ExtractImageFilter.
<p>In my implementation, I use an image of size {512,512,30}.&nbsp; The
interger range in this image is from 0 to 272.&nbsp; When I extract a region
size of the same size as the image, I&nbsp;get back the correct image.&nbsp;
However, if I set my index as {0,0,0} and extract a region size of {511,
511, 30}, then I&nbsp;get the correct image back, however the interger
range is now from 0 to 4161 and the image appears much dimmer.&nbsp; It
seems that the smaller I make the region to be extracted, the larger the
resulting image's interger range is.
<p>Perhaps I'm not understanding the functionality of the ExtractImageFilter
properly.&nbsp; Does anyone have any idea how I could fix this?
<p>Thanks,
<br>Puja
<br>&nbsp;
<pre>--&nbsp;
---------------------------------------
Puja Malik
Surgical Instruments Group
MEM Research Center for Orthopaedic Surgery
Institute for Surgical Technology and Biomechanics&nbsp;
University of Bern
Murtenstrasse 35, P.O. Box 8354
3010 Bern, Switzerland
Phone: +41-31-632-8730
Fax: +41-31-632-4951
Email: Puja.Malik@MEMcenter.unibe.ch
<A HREF="http://www.MEMcenter.unibe.ch">http://www.MEMcenter.unibe.ch</A>
---------------------------------------</pre>
&nbsp;</html>

--Boundary_(ID_hZ4jqFPJ3lD7qOcwAPctMQ)--