<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt">Hello Gaetan,<br><br>&nbsp; Thank you for your reply. I apologize for not replying earlier. I had some serious problems to look into. I'm back at work now and will be looking into your suggestions this coming week.<br><br>Thank you,<br>Emma Ryan<br><div><br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: arial,helvetica,sans-serif; font-size: 13px;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Gaëtan Lehmann &lt;gaetan.lehmann@jouy.inra.fr&gt;<br><b><span style="font-weight: bold;">To:</span></b> Emma Ryan &lt;eryanvtk@yahoo.com&gt;<br><b><span style="font-weight: bold;">Cc:</span></b> insight-users@itk.org<br><b><span style="font-weight: bold;">Sent:</span></b> Wed, August 11,
 2010 3:19:40 AM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [Insight-users] itkShapeLabelObject sorts object by size<br></font><br>
<br>Hi Emma,<br><br>itk::ShapeLabelObject is only a container class. It does not determine by itself which label it should have.<br>A like itk::BinaryImageToLabelMapFilter is in charge of giving a label to the objects, but as said by Richard in a later mail, it should be organised in raster order.<br><br>Can you tell us which filters you are using? A sample code would be nice.<br><br>That being said, you can relabel your label object based on any arbitrary attribute, like the raster position, with itk::AttributeRelabelLabelMapFilter.<br>All you have to do is to create a custom functor to return the value of interest - see itkShapeLabelObjectAccessors.h for some examples.<br><span>itk::AttributeRelabelLabelMapFilter didn't made it to the Review directory yet though, so you have to get it by hand from <a target="_blank"
 href="http://mima2.jouy.inra.fr/darcs/contrib-itk/binaryAttributeMorphology/">http://mima2.jouy.inra.fr/darcs/contrib-itk/binaryAttributeMorphology/</a></span><br><br>Regards,<br><br>Gaëtan<br><br><br>Le 9 août 10 à 19:52, Emma Ryan a écrit :<br><br>&gt; Hello Anybody ????<br>&gt; <br>&gt;&nbsp; Please advise.<br>&gt; <br>&gt; Thank you,<br>&gt; Emma<br>&gt; <br>&gt;&nbsp; &nbsp;  Hello All,<br>&gt; <br>&gt;&nbsp;  I am using itk::ShapeLabelObject and it currently sorts the labels based on<br>&gt; the size of the object. Probably has an in-built call to<br>&gt; itk::relablComponentFilter that does that.&nbsp; Does anyone know how to turn off the<br>&gt; sorting. I would like the objects to be displayed as they come. Like in Matlab,<br>&gt; it based on Row and columns position of the object.&nbsp; Is it possible to do this ?<br>&gt; If so, please enlighten me as well.<br>&gt; <br>&gt; Thank you,<br>&gt; Emma<br>&gt; <br>&gt; <br>&gt; From: "<a
 ymailto="mailto:insight-users-request@itk.org" href="mailto:insight-users-request@itk.org">insight-users-request@itk.org</a>" &lt;<a ymailto="mailto:insight-users-request@itk.org" href="mailto:insight-users-request@itk.org">insight-users-request@itk.org</a>&gt;<br>&gt; To: <a ymailto="mailto:insight-users@itk.org" href="mailto:insight-users@itk.org">insight-users@itk.org</a><br>&gt; Sent: Mon, August 9, 2010 6:02:50 AM<br>&gt; Subject: Insight-users Digest, Vol 76, Issue 22<br>&gt; <br>&gt; Send Insight-users mailing list submissions to<br>&gt;&nbsp; &nbsp;  <a ymailto="mailto:insight-users@itk.org" href="mailto:insight-users@itk.org">insight-users@itk.org</a><br>&gt; <br>&gt; To subscribe or unsubscribe via the World Wide Web, visit<br><span>&gt;&nbsp; &nbsp;  <a target="_blank" href="http://www.itk.org/mailman/listinfo/insight-users">http://www.itk.org/mailman/listinfo/insight-users</a></span><br>&gt; or, via email, send a message with subject or body
 'help' to<br>&gt;&nbsp; &nbsp;  <a ymailto="mailto:insight-users-request@itk.org" href="mailto:insight-users-request@itk.org">insight-users-request@itk.org</a><br>&gt; <br>&gt; You can reach the person managing the list at<br>&gt;&nbsp; &nbsp;  <a ymailto="mailto:insight-users-owner@itk.org" href="mailto:insight-users-owner@itk.org">insight-users-owner@itk.org</a><br>&gt; <br>&gt; When replying, please edit your Subject line so it is more specific<br>&gt; than "Re: Contents of Insight-users digest..."<br>&gt; <br>&gt; <br>&gt; Today's Topics:<br>&gt; <br>&gt;&nbsp;  1. itkShapeLabelObject sorts object by size (Emma Ryan)<br>&gt;&nbsp;  2. Re: Problem with passing images to functions (Sergio Vera)<br>&gt;&nbsp;  3. What are the differences between&nbsp; &nbsp; GetLargestPossibleRegion and<br>&gt;&nbsp; &nbsp; &nbsp;  GetRequestedRegion? (Guang Yang)<br>&gt;&nbsp;  4. Re: FFTImageFilter (Ming Chao)<br>&gt; <br>&gt; <br>&gt;
 ----------------------------------------------------------------------<br>&gt; <br>&gt; Message: 1<br>&gt; Date: Sun, 8 Aug 2010 23:20:34 -0700 (PDT)<br>&gt; From: Emma Ryan &lt;<a ymailto="mailto:eryanvtk@yahoo.com" href="mailto:eryanvtk@yahoo.com">eryanvtk@yahoo.com</a>&gt;<br>&gt; Subject: [Insight-users] itkShapeLabelObject sorts object by size<br>&gt; To: <a ymailto="mailto:insight-users@itk.org" href="mailto:insight-users@itk.org">insight-users@itk.org</a><br>&gt; Message-ID: &lt;<a ymailto="mailto:186154.78823.qm@web57905.mail.re3.yahoo.com" href="mailto:186154.78823.qm@web57905.mail.re3.yahoo.com">186154.78823.qm@web57905.mail.re3.yahoo.com</a>&gt;<br>&gt; Content-Type: text/plain; charset="us-ascii"<br>&gt; <br>&gt; Hello All,<br>&gt; <br>&gt;&nbsp;  I am using itk::ShapeLabelObject and it currently sorts the labels based on<br>&gt; the size of the object. Probably has an in-built call to<br>&gt; itk::relablComponentFilter that does that.&nbsp;
 Does anyone know how to turn off the<br>&gt; sorting. I would like the objects to be displayed as they come. Like in Matlab,<br>&gt; it based on Row and columns position of the object.&nbsp; Is it possible to do this ?<br>&gt; If so, please enlighten me as well.<br>&gt; <br>&gt; Thank you,<br>&gt; Emma<br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; -------------- next part --------------<br>&gt; An HTML attachment was scrubbed...<br><span>&gt; URL: &lt;<a target="_blank" href="http://www.itk.org/pipermail/insight-users/attachments/20100808/52a3507e/attachment-0001.htm">http://www.itk.org/pipermail/insight-users/attachments/20100808/52a3507e/attachment-0001.htm</a>&gt;</span><br>&gt; <br>&gt; ------------------------------<br>&gt; <br>&gt; Message: 2<br>&gt; Date: Mon, 9 Aug 2010 10:34:26 +0200<br>&gt; From: Sergio Vera &lt;<a ymailto="mailto:sergio.vera@alma3d.com" href="mailto:sergio.vera@alma3d.com">sergio.vera@alma3d.com</a>&gt;<br>&gt; Subject: Re:
 [Insight-users] Problem with passing images to functions<br>&gt; To: D?enan Zuki? &lt;<a ymailto="mailto:dzenanz@gmail.com" href="mailto:dzenanz@gmail.com">dzenanz@gmail.com</a>&gt;<br>&gt; Cc: <a ymailto="mailto:insight-users@itk.org" href="mailto:insight-users@itk.org">insight-users@itk.org</a>, habibbaluwala2010 &lt;<a ymailto="mailto:habibbaluwala@gmail.com" href="mailto:habibbaluwala@gmail.com">habibbaluwala@gmail.com</a>&gt;<br>&gt; Message-ID:<br>&gt;&nbsp; &nbsp;  &lt;AANLkTi=<a ymailto="mailto:n2LpfFBOT4bbSsw3bP9NY8ML5oA0RFv309vSb@mail.gmail.com" href="mailto:n2LpfFBOT4bbSsw3bP9NY8ML5oA0RFv309vSb@mail.gmail.com">n2LpfFBOT4bbSsw3bP9NY8ML5oA0RFv309vSb@mail.gmail.com</a>&gt;<br>&gt; Content-Type: text/plain; charset="utf-8"<br>&gt; <br>&gt; Following advices from Luis Iba?ez in a previous mail of the list, we now<br>&gt; use the following rules:<br>&gt; <br>&gt; const ITKImgType *ImgIn&nbsp; when images are input to a method and<br>&gt; <br>&gt;
 ITKImgType::Pointer &amp;ImgOut&nbsp; when the image will be created inside the<br>&gt; function<br>&gt; <br>&gt; regards<br>&gt; <br>&gt; 2010/8/6 D?enan Zuki? &lt;<a ymailto="mailto:dzenanz@gmail.com" href="mailto:dzenanz@gmail.com">dzenanz@gmail.com</a>&gt;<br>&gt; <br>&gt; &gt; Use ImageType::Pointer. Here is an example:<br>&gt; &gt;<br>&gt; &gt; void calc2DJointHistogram(VisualizingImageType::Pointer x,<br>&gt; &gt; VisualizingImageType::Pointer y, std::string savefilename)<br>&gt; &gt; {<br>&gt; &gt; ...<br>&gt; &gt; }<br>&gt; &gt;<br>&gt; &gt; //calling it<br>&gt; &gt; VisualizingImageType::Pointer lVis, hVis;<br>&gt; &gt; ...<br>&gt; &gt; hVis=hReader-&gt;GetOutput();<br>&gt; &gt; calc2DJointHistogram(lVis, hVis, fnNoExt+"_LH.png");<br>&gt; &gt;<br>&gt; &gt; D?enan<br>&gt; &gt;<br>&gt; &gt; On Fri, Aug 6, 2010 at 15:32, habibbaluwala2010 &lt;<a ymailto="mailto:habibbaluwala@gmail.com"
 href="mailto:habibbaluwala@gmail.com">habibbaluwala@gmail.com</a>&gt;wrote:<br>&gt; &gt;<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; Hi Everyone,<br>&gt; &gt;&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; I am a biot confused on how can i pass an image with smart<br>&gt; &gt;&gt; pointers to an outside function . I basically need this to avoid<br>&gt; &gt;&gt; reproducing<br>&gt; &gt;&gt; the code again and again and also to avoid composite filters. It would be<br>&gt; &gt;&gt; very helpful if you can provide an example which does the job!!! Anyways<br>&gt; &gt;&gt; looking forward to your replies.<br>&gt; &gt;&gt; --<br>&gt; &gt;&gt; View this message in context:<br><span>&gt; &gt;&gt; <a target="_blank" href="http://old.nabble.com/Problem-with-passing-images-to-functions-tp29356451p29356451.html">http://old.nabble.com/Problem-with-passing-images-to-functions-tp29356451p29356451.html</a></span><br>&gt; &gt;&gt; Sent from the ITK - Users mailing list
 archive at <a target="_blank" href="http://Nabble.com">Nabble.com</a>.<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; _____________________________________<br>&gt; &gt;&gt; Powered by <a target="_blank" href="http://www.kitware.com">www.kitware.com</a><br>&gt; &gt;&gt;<br>&gt; &gt;&gt; Visit other Kitware open-source projects at<br><span>&gt; &gt;&gt; <a target="_blank" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a></span><br>&gt; &gt;&gt;<br>&gt; &gt;&gt; Kitware offers ITK Training Courses, for more information visit:<br><span>&gt; &gt;&gt; <a target="_blank" href="http://www.kitware.com/products/protraining.html">http://www.kitware.com/products/protraining.html</a></span><br>&gt; &gt;&gt;<br>&gt; &gt;&gt; Please keep messages on-topic and check the ITK FAQ at:<br><span>&gt; &gt;&gt; <a target="_blank" href="http://www.itk.org/Wiki/ITK_FAQ">http://www.itk.org/Wiki/ITK_FAQ</a></span><br>&gt;
 &gt;&gt;<br>&gt; &gt;&gt; Follow this link to subscribe/unsubscribe:<br>&gt; &gt;&gt; <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>&gt; &gt;&gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; _____________________________________<br><span>&gt; &gt; Powered by <a target="_blank" href="http://www.kitware.com">www.kitware.com</a></span><br>&gt; &gt;<br>&gt; &gt; Visit other Kitware open-source projects at<br>&gt; &gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>&gt; &gt;<br>&gt; &gt; Kitware offers ITK Training Courses, for more information visit:<br>&gt; &gt; <a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>&gt; &gt;<br>&gt; &gt; Please keep messages on-topic and check the ITK FAQ at:<br>&gt; &gt; <a
 href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>&gt; &gt;<br>&gt; &gt; Follow this link to subscribe/unsubscribe:<br>&gt; &gt; <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>&gt; &gt;<br>&gt; &gt;<br>&gt; <br>&gt; <br>&gt; --Sergio Vera<br>&gt; <br>&gt; Alma IT Systems<br>&gt; C/ Vilana, 4B, 4? 1?<br>&gt; 08022 Barcelona<br>&gt; T. (+34) 932 380 592<br>&gt; <a target="_blank" href="http://www.alma3d.com">www.alma3d.com</a><br>&gt; -------------- next part --------------<br>&gt; An HTML attachment was scrubbed...<br><span>&gt; URL: &lt;<a target="_blank" href="http://www.itk.org/pipermail/insight-users/attachments/20100809/ec530d11/attachment-0001.htm">http://www.itk.org/pipermail/insight-users/attachments/20100809/ec530d11/attachment-0001.htm</a>&gt;</span><br>&gt; <br>&gt; ------------------------------<br>&gt; <br>&gt;
 Message: 3<br>&gt; Date: Mon, 9 Aug 2010 11:00:37 +0100<br>&gt; From: Guang Yang &lt;<a ymailto="mailto:samggyy@gmail.com" href="mailto:samggyy@gmail.com">samggyy@gmail.com</a>&gt;<br>&gt; Subject: [Insight-users] What are the differences between<br>&gt;&nbsp; &nbsp;  GetLargestPossibleRegion and GetRequestedRegion?<br>&gt; To: <a ymailto="mailto:insight-users@itk.org" href="mailto:insight-users@itk.org">insight-users@itk.org</a><br>&gt; Message-ID:<br>&gt;&nbsp; &nbsp;  &lt;AANLkTin7j=x55s2Gau6J1GAfmGjj1K0FwzMSozMEwwH=@mail.gmail.com&gt;<br>&gt; Content-Type: text/plain; charset="iso-8859-1"<br>&gt; <br>&gt; Hi there,<br>&gt; <br>&gt; I am confusing about using&nbsp; GetLargestPossibleRegion() and<br>&gt; GetRequestedRegion(). What are the differences?<br>&gt; <br>&gt; GetLargestPossibleRegion() is getting all the pixels in the image.<br>&gt; <br>&gt; And GetRequestedRegion() is getting all the none-zero pixels. Is that right?<br>&gt; <br>&gt; <br>&gt;
 Cheers,<br>&gt; Aaron<br>&gt; -------------- next part --------------<br>&gt; An HTML attachment was scrubbed...<br><span>&gt; URL: &lt;<a target="_blank" href="http://www.itk.org/pipermail/insight-users/attachments/20100809/cf971bf2/attachment-0001.htm">http://www.itk.org/pipermail/insight-users/attachments/20100809/cf971bf2/attachment-0001.htm</a>&gt;</span><br>&gt; <br>&gt; ------------------------------<br>&gt; <br>&gt; Message: 4<br>&gt; Date: Mon, 9 Aug 2010 08:02:43 -0500<br>&gt; From: Ming Chao &lt;<a ymailto="mailto:mingchao2005@gmail.com" href="mailto:mingchao2005@gmail.com">mingchao2005@gmail.com</a>&gt;<br>&gt; Subject: Re: [Insight-users] FFTImageFilter<br>&gt; To: "Yu, Yang" &lt;<a ymailto="mailto:yang.yu@philips.com" href="mailto:yang.yu@philips.com">yang.yu@philips.com</a>&gt;<br>&gt; Cc: Insight Users &lt;<a ymailto="mailto:insight-users@itk.org" href="mailto:insight-users@itk.org">insight-users@itk.org</a>&gt;<br>&gt;
 Message-ID:<br>&gt;&nbsp; &nbsp;  &lt;AANLkTinMK6K-0OzxAn+Mx69_bAu1o+<a ymailto="mailto:F5jSLGeq_6KV5i@mail.gmail.com" href="mailto:F5jSLGeq_6KV5i@mail.gmail.com">F5jSLGeq_6KV5i@mail.gmail.com</a>&gt;<br>&gt; Content-Type: text/plain; charset="iso-8859-1"<br>&gt; <br>&gt; Thanks very much to you all for looking into my "problem". Actually you guys<br>&gt; were absolutely correct that there was no "problem" with the sample code. My<br>&gt; "problem" was created when I tried to write the output real/imaginary part<br>&gt; in a binary file. Sorry for the noise.<br>&gt; <br>&gt; Ming<br>&gt; <br>&gt; On Mon, Aug 9, 2010 at 3:31 AM, Yu, Yang &lt;<a ymailto="mailto:yang.yu@philips.com" href="mailto:yang.yu@philips.com">yang.yu@philips.com</a>&gt; wrote:<br>&gt; <br>&gt; &gt;&nbsp; I copy the code you posted and at least it works fine in my program. I<br>&gt; &gt; think you should pay much attention on the realFilter part. Did you&nbsp; Update<br>&gt; &gt; the
 realFilter?<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; *From:* <a ymailto="mailto:insight-users-bounces@itk.org" href="mailto:insight-users-bounces@itk.org">insight-users-bounces@itk.org</a> [mailto:<br>&gt; &gt; <a ymailto="mailto:insight-users-bounces@itk.org" href="mailto:insight-users-bounces@itk.org">insight-users-bounces@itk.org</a>] *On Behalf Of *Ming Chao<br>&gt; &gt; *Sent:* 2010 Aug 05 7:21 PM<br>&gt; &gt; *To:* Markus Neuner<br>&gt; &gt; *Cc:* Insight Users<br>&gt; &gt; *Subject:* Re: [Insight-users] FFTImageFilter<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; If I changed "WriteImageType" to float/double, the code stopped working b/c<br>&gt; &gt; jpeg only accepts unsigned char/int.<br>&gt; &gt;<br>&gt; &gt; On Thu, Aug 5, 2010 at 3:30 AM, Markus Neuner &lt;<a ymailto="mailto:neuner.markus@gmx.net" href="mailto:neuner.markus@gmx.net">neuner.markus@gmx.net</a>&gt;<br>&gt; &gt; wrote:<br>&gt; &gt;<br>&gt; &gt; I just looked at
 the code in the example and all seems working (at leasts<br>&gt; &gt; for me).<br>&gt; &gt; What do you expect as output?<br>&gt; &gt; Change the "WriteImageType" to float or double and try it again.<br>&gt; &gt; Open the image with paraview, imagej or any other suited image viewer.<br>&gt; &gt; It may be useful to take the log of the real and complex images for a<br>&gt; &gt; better contrast.<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; On 04.08.2010 21:45, Ming Chao wrote:<br>&gt; &gt;<br>&gt; &gt; float<br>&gt; &gt;<br>&gt; &gt; On Wed, Aug 4, 2010 at 2:38 PM, Markus Neuner &lt;<a ymailto="mailto:neuner.markus@gmx.net" href="mailto:neuner.markus@gmx.net">neuner.markus@gmx.net</a>&gt;<br>&gt; &gt; wrote:<br>&gt; &gt;<br>&gt; &gt; What is the pixel type of "ImageType"?<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; On 04.08.2010 21:11, Ming Chao wrote:<br>&gt; &gt;<br>&gt; &gt;&nbsp; I checked the complex image FFT created from the input
 image was fine.<br>&gt; &gt; Also I checked the real and imaginary parts in floating point format,<br>&gt; &gt; respectively. They both are fine. The problem started to happen when<br>&gt; &gt; rescaling the real/imaginary image into an interger-type image. Here is part<br>&gt; &gt; of the rescaling code:<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;&nbsp; typedef unsigned char WritePixelType;<br>&gt; &gt;<br>&gt; &gt;&nbsp; typedef itk::Image&lt; WritePixelType, Dimension &gt; WriteImageType;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;&nbsp; typedef itk::RescaleIntensityImageFilter&lt;ImageType, WriteImageType &gt;<br>&gt; &gt; RescaleFilterType;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;&nbsp; RescaleFilterType::Pointer intensityRescaler = RescaleFilterType::New();<br>&gt; &gt;<br>&gt; &gt;&nbsp; intensityRescaler-&gt;SetOutputMinimum(&nbsp; 0&nbsp; );<br>&gt; &gt;<br>&gt; &gt;&nbsp; intensityRescaler-&gt;SetOutputMaximum( 255
 );<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;&nbsp; intensityRescaler-&gt;SetInput( realFilter-&gt;GetOutput() );<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;&nbsp; typedef itk::ImageFileWriter&lt; WriteImageType &gt; WriterType;<br>&gt; &gt;<br>&gt; &gt;&nbsp; WriterType::Pointer writer = WriterType::New();<br>&gt; &gt;<br>&gt; &gt;&nbsp; writer-&gt;SetFileName( argv[2] );<br>&gt; &gt;<br>&gt; &gt;&nbsp; writer-&gt;SetInput( intensityRescaler-&gt;GetOutput() );<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;&nbsp; try<br>&gt; &gt;<br>&gt; &gt;&nbsp; &nbsp; {<br>&gt; &gt;<br>&gt; &gt; writer-&gt;Update();<br>&gt; &gt;<br>&gt; &gt;&nbsp; &nbsp; }<br>&gt; &gt;<br>&gt; &gt;&nbsp; catch( itk::ExceptionObject &amp; excp )<br>&gt; &gt;<br>&gt; &gt;&nbsp; &nbsp; {<br>&gt; &gt;<br>&gt; &gt; std::cerr &lt;&lt; "Error writing the real image: " &lt;&lt; std::endl;<br>&gt; &gt;<br>&gt; &gt; std::cerr &lt;&lt; excp &lt;&lt; std::endl;<br>&gt;
 &gt;<br>&gt; &gt; return EXIT_FAILURE;<br>&gt; &gt;<br>&gt; &gt;&nbsp; &nbsp; }<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;&nbsp; typedef itk::ImageRegionConstIterator&lt; WriteImageType &gt;<br>&gt; &gt; ConstIteratorType;<br>&gt; &gt;<br>&gt; &gt;&nbsp; WriteImageType::Pointer RealImage = intensityRescaler-&gt;GetOutput();<br>&gt; &gt;<br>&gt; &gt;&nbsp; ConstIteratorType in( RealImage, RealImage-&gt;GetRequestedRegion() );<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;&nbsp; for ( in.GoToBegin(); !in.IsAtEnd(); ++in )<br>&gt; &gt;<br>&gt; &gt;&nbsp; {<br>&gt; &gt;<br>&gt; &gt;&nbsp; std::cout &lt;&lt; in.Get() &lt;&lt; std::endl;<br>&gt; &gt;<br>&gt; &gt;&nbsp; }<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; From the output I got all zeros....Apparently something wrong with the<br>&gt; &gt; rescaler. Could anybody take a look? Thanks very much,<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;
 Ming<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; On Wed, Aug 4, 2010 at 9:35 AM, Ming Chao &lt;<a ymailto="mailto:mingchao2005@gmail.com" href="mailto:mingchao2005@gmail.com">mingchao2005@gmail.com</a>&gt; wrote:<br>&gt; &gt;<br>&gt; &gt; I tried to run FFTImageFilter.cxx to do an FFT of an image. The input image<br>&gt; &gt; is a 512x512, 24 bit thoracic CT image in jpg format. The output of the<br>&gt; &gt; example cxx code are the real and imaginary parts of FFT of the input image.<br>&gt; &gt; However, when I look at the two output images, they are just uniformly<br>&gt; &gt; grey/black, depending on<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;&nbsp; intensityRescaler-&gt;SetOutputMinimum(&nbsp; 0&nbsp; );<br>&gt; &gt;<br>&gt; &gt;&nbsp; intensityRescaler-&gt;SetOutputMaximum( 255 );<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; in the code. What did I do wrong? Many thanks,<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;
 Ming<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; _____________________________________<br>&gt; &gt;<br><span>&gt; &gt; Powered by <a target="_blank" href="http://www.kitware.com">www.kitware.com</a></span><br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; Visit other Kitware open-source projects at<br>&gt; &gt;<br>&gt; &gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; Kitware offers ITK Training Courses, for more information visit:<br>&gt; &gt;<br>&gt; &gt; <a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; Please keep messages on-topic and check the ITK FAQ at:<br>&gt; &gt;<br>&gt; &gt; <a href="http://www.itk.org/Wiki/ITK_FAQ"
 target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; Follow this link to subscribe/unsubscribe:<br>&gt; &gt;<br>&gt; &gt; <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; ------------------------------<br>&gt; &gt; The information contained in this message may be confidential and legally<br>&gt; &gt; protected under applicable law. The message is intended solely for the<br>&gt; &gt; addressee(s). If you are not the intended recipient, you are hereby notified<br>&gt; &gt; that any use, forwarding, dissemination, or reproduction of this message is<br>&gt; &gt; strictly prohibited and may be unlawful. If you are not the intended<br>&gt; &gt; recipient, please contact the sender by return e-mail and destroy all copies<br>&gt;
 &gt; of the original message.<br>&gt; &gt;<br>&gt; -------------- next part --------------<br>&gt; An HTML attachment was scrubbed...<br><span>&gt; URL: &lt;<a target="_blank" href="http://www.itk.org/pipermail/insight-users/attachments/20100809/aededffa/attachment.htm">http://www.itk.org/pipermail/insight-users/attachments/20100809/aededffa/attachment.htm</a>&gt;</span><br>&gt; <br>&gt; ------------------------------<br>&gt; <br>&gt; _______________________________________________<br>&gt; Insight-users mailing list<br>&gt; <a ymailto="mailto:Insight-users@itk.org" href="mailto:Insight-users@itk.org">Insight-users@itk.org</a><br>&gt; <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>&gt; <br>&gt; <br>&gt; End of Insight-users Digest, Vol 76, Issue 22<br>&gt; *********************************************<br>&gt; <br>&gt; _____________________________________<br><span>&gt;
 Powered by <a target="_blank" href="http://www.kitware.com">www.kitware.com</a></span><br>&gt; <br>&gt; Visit other Kitware open-source projects at<br>&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>&gt; <br>&gt; Kitware offers ITK Training Courses, for more information visit:<br>&gt; <a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>&gt; <br>&gt; Please keep messages on-topic and check the ITK FAQ at:<br>&gt; <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>&gt; <br>&gt; Follow this link to subscribe/unsubscribe:<br>&gt; <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br><br>--Gaëtan Lehmann<br>Biologie du Développement et de la Reproduction<br>INRA de
 Jouy-en-Josas (France)<br>tel: +33 1 34 65 29 66&nbsp; &nbsp; fax: 01 34 65 29 09<br><span><a target="_blank" href="http://voxel.jouy.inra.fr">http://voxel.jouy.inra.fr</a>&nbsp; <a target="_blank" href="http://www.itk.org">http://www.itk.org</a></span><br><span><a target="_blank" href="http://www.mandriva.org">http://www.mandriva.org</a>&nbsp; <a target="_blank" href="http://www.bepo.fr">http://www.bepo.fr</a></span><br><br></div></div>
</div><br>

      </body></html>