<br>Hi Xuanaux,<br><br><br>A)  What pixel type are you using for the image types<br>      in the template instantiation of the Demons filter ?<br><br><br>B)   Have you verified the content of the resampled moving<br>      image after the rigid registration ?<br>
      It could well be that such image is outside of the <br>      extent of the fixed image and it was resampled to <br>      an empty value<br><br><br>C)  What value are you using for the Default pixel value<br>      in the Resample Image filter ?<br>
      (after the rigid registration )<br><br>D)   For how many iterations is the Demons filter running ?<br><br><br>E)    Please try writing the image to a file format different<br>       from DICOM (for example, .mha, .vtk, .nrrd, .nii) and<br>
       use a standard image application (such as Slicer)<br>       to look at the content of the image.   That will help us<br>       rule out DICOM (or not) as the source of the problem.<br><br><br><br>   Please let us know,<br>
<br><br>         Thanks<br><br><br>            Luis<br><br><br>--------------------------------------------------------------------------------<br><div class="gmail_quote">On Wed, May 26, 2010 at 6:13 PM, xuanaux <span dir="ltr">&lt;<a href="mailto:xuanaux@gmail.com">xuanaux@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><br>
Hi, guys<br>
<br>
I am trying to use Demons registration filter to register two 3-D volume<br>
images of heart. Heart volume images were segmented from CT scans of whole<br>
body. Rigid registration was first applied to make a global registration of<br>
two images. Transformed moving image and original fixed image were used as<br>
moving and fixed images of Demons algorithm. However, when I write back the<br>
resulting image to the DICOM files, the resulting image has constant value<br>
of 1024, which is apparently not correct. I did check the two inputs images<br>
to the Demons filter. They have the same origin, orientation and spacing. I<br>
have no idea what is going wrong.<br>
<br>
Could any one give me any suggestion of the possible problem? Thanks in<br>
advance!<br>
<br>
Attached please find the code of Demons registration part.<br>
<a href="http://itk-insight-users.2283740.n2.nabble.com/file/n5106037/code-Demons.txt" target="_blank">http://itk-insight-users.2283740.n2.nabble.com/file/n5106037/code-Demons.txt</a><br>
code-Demons.txt<br>
--<br>
View this message in context: <a href="http://itk-insight-users.2283740.n2.nabble.com/Problem-with-Demons-deformable-registration-tp5106037p5106037.html" target="_blank">http://itk-insight-users.2283740.n2.nabble.com/Problem-with-Demons-deformable-registration-tp5106037p5106037.html</a><br>

Sent from the ITK Insight Users mailing list archive at Nabble.com.<br>
_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
</blockquote></div><br>