<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">What ITK version are running ?<div><br></div><div>Another things is that "DeformationPixelType" need to be a float or double.</div><div><br></div><div>Please post the source code.</div><div><br></div><div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div>Saludos</div><div>Ariel Hernán Curiale</div><div><a href="http://www.curiale.com.ar">www.curiale.com.ar</a></div><div><br></div></span><br class="Apple-interchange-newline">
</div>
<br><div><div>El 25/03/2011, a las 12:54, akbarjan bayiz escribió:</div><br class="Apple-interchange-newline"><blockquote type="cite"><table cellspacing="0" cellpadding="0" border="0" style="position: static; z-index: auto; "><tbody><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;<a href="mailto:curiale@gmail.com">curiale@gmail.com</a>&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;<a href="mailto:curiale@gmail.com">curiale@gmail.com</a>&gt;<br>Subject: Re: [Insight-users] Itk Segmentation Fault<br>To: "akbarjan bayiz" &lt;<a href="mailto:abayiz@yahoo.com">abayiz@yahoo.com</a>&gt;<br>Cc:
 <a href="mailto:insight-users@itk.org">insight-users@itk.org</a><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><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal 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></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">typename FilterType::Pointer filter = FilterType::New();</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal 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></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal 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></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;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><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal 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></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">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><a href="http://www.kitware.com/products/protraining.html">http://www.kitware.com/products/protraining.html</a><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></tbody></table><br>

      </blockquote></div><br></div></body></html>