In my program,<br>there are two difference type in pipeline.<br><br>At first,I am casting &#39;signed short&#39; to &#39;float&#39;.<br>Through the processing of gradient filter this float data<br>is casting to signed short.
<br><br>The pipeline as below:<br>signed short data --&gt;cast1 --&gt;float data --&gt; Filter --&gt; float data --&gt;<br>cast2 --&gt;signed short data --&gt;write to dicom<br><br>The result is full white.<br>I don&#39;t know what happen?
<br>Can anybody give me some suggestion?<br><br>Regards<br><br><div><span class="gmail_quote">2007/3/27, Xavier Mellado Esteban &lt;<a href="mailto:xavier.mellado@upf.edu">xavier.mellado@upf.edu</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>&nbsp;&nbsp; Hi Goo:<br><br>&nbsp;&nbsp; Write images in each step of your pipeline, before and after use each<br>filter. And find exactly which is the problem an report here more<br>information.<br><br>&nbsp;&nbsp; If you have problems with casting, there are filters for doing this,
<br>see ITK User Guide (<a href="http://www.itk.org/ItkSoftwareGuide.pdf">http://www.itk.org/ItkSoftwareGuide.pdf</a>) Chapter<br>6.3. Look at Geodesic Active Contours example (9.3.3) and<br>GradientMagnitudeRecursiveGaussianImageFilter example (
6.4.2), too.<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;I hope this helps you:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Xavi<br><br>Goo escribió:<br>&gt; Hi All:<br>&gt;<br>&gt; I currently use &#39;Geodesic Active Contour Level Set Mehtod&#39; for image
<br>&gt; segmentation.<br>&gt; My input is a DICOM 3D image and its type is signed short.<br>&gt; Because the demand for level set, this image must be casted to float.<br>&gt; However, after the execution of<br>&gt; GradientMagnitudeRecursiveGaussianImageFilter,
<br>&gt; the output image is black.<br>&gt; After I checked in the entire process, I guess the reason is data type<br>&gt; error.<br>&gt; What means can be taken to resolve the matter?<br>&gt;<br>&gt; Regards.<br>&gt; ------------------------------------------------------------------------
<br>&gt;<br>&gt; _______________________________________________<br>&gt; Insight-users mailing list<br>&gt; <a href="mailto:Insight-users@itk.org">Insight-users@itk.org</a><br>&gt; <a href="http://www.itk.org/mailman/listinfo/insight-users">
http://www.itk.org/mailman/listinfo/insight-users</a><br>&gt;<br><br><br>--<br>___________________________________<br><br>Xavier Mellado Esteban<br>Computational Imaging Lab<br>Department of Technology - D. 328<br>Pompeu Fabra University
<br>Pg. Circumval·lació 8<br>08003 Barcelona - Spain<br><br>Phone: +34 93 542 1323<br>E-mail: <a href="mailto:xavier.mellado@upf.edu">xavier.mellado@upf.edu</a><br>Skype: xavier.mellado<br><br></blockquote></div><br>