<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hello!<br><br>Thank you for your reply. <br>I've done it as you said, changed the data types, but unfortunately it gives out a full screen of error now. I am trying to read two dicom series from two different directories, and perform Demons registration, then save the output as a new dicom file. Maybe this is different from what you are doing, and that is why your data type does not work for my code I think. <br><br>Do you have any other good suggestions? <br><br>Best Regards, <br><br>--- On <b>Fri, 3/25/11, Ariel Hernán Curiale <i>&lt;curiale@gmail.com&gt;</i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Ariel Hernán Curiale &lt;curiale@gmail.com&gt;<br>Subject: Re: [Insight-users] Itk Segmentation Fault<br>To: "akbarjan bayiz" &lt;abayiz@yahoo.com&gt;<br>Cc:
 insight-users@itk.org<br>Date: Friday, March 25, 2011, 5:34 AM<br><br><div id="yiv1335649859">Hi, Im recently used this class &nbsp;and I had no errors. &nbsp;This is my code:<div><br></div><div><span class="yiv1335649859Apple-tab-span" style="white-space: pre;">                </span>&nbsp;&nbsp;<font class="yiv1335649859Apple-style-span" face="Menlo" size="3"><span class="yiv1335649859Apple-style-span" style="font-size: 11px;"><font class="yiv1335649859Apple-style-span" color="#010101">typedef</font></span></font><font class="yiv1335649859Apple-style-span" face="Menlo" size="3"><span class="yiv1335649859Apple-style-span" style="font-size: 11px;"><font class="yiv1335649859Apple-style-span" color="#010101"> </font></span></font><font class="yiv1335649859Apple-style-span" face="Menlo" size="3"><span class="yiv1335649859Apple-style-span" style="font-size: 11px;"><font class="yiv1335649859Apple-style-span" color="#010101">itk</font></span></font><font
 class="yiv1335649859Apple-style-span" face="Menlo" size="3"><span class="yiv1335649859Apple-style-span" style="font-size: 11px;"><font class="yiv1335649859Apple-style-span" color="#010101">::</font></span></font><font class="yiv1335649859Apple-style-span" face="Menlo" size="3"><span class="yiv1335649859Apple-style-span" style="font-size: 11px;"><font class="yiv1335649859Apple-style-span" color="#010101">Image</font></span></font><font class="yiv1335649859Apple-style-span" face="Menlo" size="3"><span class="yiv1335649859Apple-style-span" style="font-size: 11px;"><font class="yiv1335649859Apple-style-span" color="#010101">&lt;</font></span></font><font class="yiv1335649859Apple-style-span" face="Menlo" size="3"><span class="yiv1335649859Apple-style-span" style="font-size: 11px;"><font class="yiv1335649859Apple-style-span" color="#010101">PixelType</font></span></font><font class="yiv1335649859Apple-style-span" face="Menlo" size="3"><span
 class="yiv1335649859Apple-style-span" style="font-size: 11px;"><font class="yiv1335649859Apple-style-span" color="#010101">,</font></span></font><font class="yiv1335649859Apple-style-span" face="Menlo" size="3"><span class="yiv1335649859Apple-style-span" style="font-size: 11px;"><font class="yiv1335649859Apple-style-span" color="#010101">3</font></span></font><font class="yiv1335649859Apple-style-span" face="Menlo" size="3"><span class="yiv1335649859Apple-style-span" style="font-size: 11px;"><font class="yiv1335649859Apple-style-span" color="#010101">&gt; </font></span></font><font class="yiv1335649859Apple-style-span" face="Menlo" size="3"><span class="yiv1335649859Apple-style-span" style="font-size: 11px;"><font class="yiv1335649859Apple-style-span" color="#010101">ImageType</font></span></font><font class="yiv1335649859Apple-style-span" face="Menlo" size="3"><span class="yiv1335649859Apple-style-span" style="font-size: 11px;"><font
 class="yiv1335649859Apple-style-span" color="#010101">;</font></span></font></div><div><div style="margin: 0px; font: 11px Menlo; color: rgb(0, 179, 249);"><span style="color: rgb(227, 57, 161);"><span class="yiv1335649859Apple-tab-span" style="white-space: pre;">        </span><font class="yiv1335649859Apple-style-span" color="#010101">typedef</font></span><font class="yiv1335649859Apple-style-span" color="#010101"> itk::Image&lt; itk::Vector&lt;DeformationPixelType, 3&gt;, 3&gt; DeformationFieldType</font><span style="color: rgb(255, 255, 255);">;</span></div></div><div><div style="margin: 0px; font: 11px Menlo; color: rgb(0, 179, 249);"><font class="yiv1335649859Apple-style-span" color="#ffffff"><div style="margin: 0px; font: 11px Menlo;"><span class="yiv1335649859Apple-tab-span" style="white-space: pre;"><font class="yiv1335649859Apple-style-span" color="#010101">        </font></span><font class="yiv1335649859Apple-style-span" color="#010101">typedef
 itk::DiffeomorphicDemonsRegistrationFilter &lt;ImageType, ImageType, DeformationFieldType&gt; FilterType;</font></div><p style="margin: 0px; font: 11px Menlo; min-height: 13px;"><span class="yiv1335649859Apple-tab-span" style="white-space: pre;"><font class="yiv1335649859Apple-style-span" color="#010101">        </font></span><font class="yiv1335649859Apple-style-span" color="#010101"><br class="yiv1335649859webkit-block-placeholder"></font></p><div style="margin: 0px; font: 11px Menlo;"><span class="yiv1335649859Apple-tab-span" style="white-space: pre;"><font class="yiv1335649859Apple-style-span" color="#010101">        </font></span><font class="yiv1335649859Apple-style-span" color="#010101">typename FilterType::Pointer filter = FilterType::New();</font></div><p style="margin: 0px; font: 11px Menlo; min-height: 13px;"><span class="yiv1335649859Apple-tab-span" style="white-space: pre;"><font class="yiv1335649859Apple-style-span" color="#010101">        </font></span><font
 class="yiv1335649859Apple-style-span" color="#010101"><br class="yiv1335649859webkit-block-placeholder"></font></p><p style="margin: 0px; font: 11px Menlo; min-height: 13px;"><span class="yiv1335649859Apple-tab-span" style="white-space: pre;"><font class="yiv1335649859Apple-style-span" color="#010101">        </font></span><font class="yiv1335649859Apple-style-span" color="#010101"><br class="yiv1335649859webkit-block-placeholder"></font></p><div style="margin: 0px; font: 11px Menlo;"><span class="yiv1335649859Apple-tab-span" style="white-space: pre;"><font class="yiv1335649859Apple-style-span" color="#010101">        </font></span><font class="yiv1335649859Apple-style-span" color="#010101">filter-&gt;SetFixedImage(img_diastole-&gt;GetOutput());</font></div><div style="margin: 0px; font: 11px Menlo;"><span class="yiv1335649859Apple-tab-span" style="white-space: pre;"><font class="yiv1335649859Apple-style-span" color="#010101">        </font></span><font
 class="yiv1335649859Apple-style-span" color="#010101">filter-&gt;SetMovingImage(img_sistole-&gt;GetOutput());</font></div><div style="margin: 0px; font: 11px Menlo;"><span class="yiv1335649859Apple-tab-span" style="white-space: pre;"><font class="yiv1335649859Apple-style-span" color="#010101">        </font></span><font class="yiv1335649859Apple-style-span" color="#010101">filter-&gt;Update();</font></div><p style="margin: 0px; font: 11px Menlo; min-height: 13px;"><span class="yiv1335649859Apple-tab-span" style="white-space: pre;"><font class="yiv1335649859Apple-style-span" color="#010101">        </font></span><font class="yiv1335649859Apple-style-span" color="#010101"><br class="yiv1335649859webkit-block-placeholder"></font></p><div style="margin: 0px; font: 11px Menlo;"><span class="yiv1335649859Apple-tab-span" style="white-space: pre;"><font class="yiv1335649859Apple-style-span" color="#010101">        </font></span><font class="yiv1335649859Apple-style-span"
 color="#010101">typename DeformationFieldType::Pointer deformacion = filter-&gt;GetDeformationField();</font></div><div><span style="color: rgb(255, 255, 255);"><br></span></div></font></div></div><div><br><div>
<div>Saludos</div><div>Ariel Hernán Curiale</div><div><a rel="nofollow" target="_blank" href="http://www.curiale.com.ar">www.curiale.com.ar</a></div><div><br></div><br class="yiv1335649859Apple-interchange-newline">
</div>
<br><div><div>El 25/03/2011, a las 10:00, akbarjan bayiz escribió:</div><br class="yiv1335649859Apple-interchange-newline"><blockquote type="cite"><div>Hello all!<br><br>I am using Demons algorithm to perform registration of two DICOM series. My code compiles without any error. And when I run it, at the final step, when it updates the filter, there is a "0" on the screen, and gives error message saying "Segmentation Fault". <br><br>What should I do for it? <br><br>Thank you in advance! <br><br><br><br>_____________________________________<br>Powered by <a rel="nofollow" target="_blank" href="http://www.kitware.com">www.kitware.com</a><br><br>Visit other Kitware open-source projects at<br><a rel="nofollow" target="_blank" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br><br>Kitware offers ITK Training Courses, for more information
 visit:<br>http://www.kitware.com/products/protraining.html<br><br>Please keep messages on-topic and check the ITK FAQ at:<br>http://www.itk.org/Wiki/ITK_FAQ<br><br>Follow this link to subscribe/unsubscribe:<br>http://www.itk.org/mailman/listinfo/insight-users<br></div></blockquote></div><br></div></div></blockquote></td></tr></table><br>