<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Nick and Jon Haitz,<div><br></div><div>I have tried again with </div><div><br></div><div>>./N4.exe -d 2 -i t81slice.nii.gz -o t81sliceCorrect.nii.gz -s 4 -b [200] -c [50x50x50x50,0]</div><div>but still i get the following error.</div><div><br></div><div><div>Running N4 for 2-dimensional images.</div><div><br></div><div>terminate called throwing an exceptionAbort trap: 6</div></div><div><br></div><div>The code that I have was downloaded from <a href="http://www.insight-journal.org/browse/publication/640">http://www.insight-journal.org/browse/publication/640</a> and I just did some slight modifications such as the GetImageDimension and the way to include the libraries, because it was giving errors with the latest version of ITK. But I did not change anything else in the code. </div><div><br></div><div>Best, </div><div>Shandra</div><div><br></div><div><div><div>On 30/01/2014, at 14:23, Jon Haitz Legarreta wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr"><div><div><div>Dear Shandra,<br></div>segmentation faults have to do with memory
access (you may be trying to access an unallocated space). If the program is of your own making, you may want to check whether
you are allocating all necessary memory space through the corresponding variables/pointers.<br><br></div><div>Having read what Nicholas says, it looks like you need to specify some dimensions so that the program knows who much memory space it needs to allocate. If you fail to specify those arguments, the program may try to access a null-length memory extension.<br>
</div><div><br></div>Both if its a program of your own or if it is an ITK example, you can debug step by step to know where the segmentation fault arises, and whether all implied variables seem to be OK.<br>
<br></div>HTH,<br>JON HAITZ<br><br><div><div><br><br><div class="gmail_extra"><div class="gmail_quote">On 30 January 2014 14:13, Nicholas Tustison <span dir="ltr"><<a href="mailto:ntustison@gmail.com" target="_blank">ntustison@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word">Hi Shandra,<div><br></div><div>You didn’t specify any arguments for -c or -b. If I remember</div>
<div>correctly, try something like '-b [200] -c [50x50x50x50,0]’.</div><div><br></div><div>Nick</div><div><br><div><div><div><div>On Jan 30, 2014, at 8:10 AM, Shandra Gutierrez Diaz <<a href="mailto:Shandra.GutierrezDiaz@UGent.be" target="_blank">Shandra.GutierrezDiaz@UGent.be</a>> wrote:</div>
<br></div></div><blockquote type="cite"><div><div><div style="word-wrap:break-word"><br>
Hi, <div><br></div><div>I am trying to work with N4ITK (<span style="font-family:Roboto,sans-serif;font-style:normal;font-variant:normal;letter-spacing:normal;line-height:28px;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(249,250,252);float:none;display:inline!important">N4BiasFieldCorrectionImageFilter). I have built it succesfully but when running it, it gives error. </span></div>
<div><font face="Roboto, sans-serif"><span style="line-height:28px">>./N4.exe 2 -i t81slice.nii.gz -o t81sliceCorrect.nii.gz -s 4 -c -b </span></font></div><div><font face="Roboto, sans-serif"><span style="line-height:28px">Segmentation fault: 11</span></font></div>
<div><font face="Roboto, sans-serif"><span style="line-height:28px">></span></font><span style="font-family:Roboto,sans-serif;line-height:28px">./N4.exe -d 2 -i t81slice.nii.gz -o t81sliceCorrect.nii.gz -s 4 -c -b </span></div>
<div><font face="Roboto, sans-serif"><span style="line-height:28px">terminate called throwing an exceptionAbort trap: 6</span></font></div><div><font face="Roboto, sans-serif"><span style="line-height:28px"><br></span></font></div>
<div><font face="Roboto, sans-serif"><span style="line-height:28px">Has anyone faced the same problem or any clue what can be?</span></font></div><div><font face="Roboto, sans-serif"><span style="line-height:28px">Best, </span></font></div>
<div><span style="font-family:Roboto,sans-serif;line-height:28px">Shandra</span></div></div></div></div>_____________________________________<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.php" target="_blank">http://www.kitware.com/products/protraining.php</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></div></div><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.php" target="_blank">http://www.kitware.com/products/protraining.php</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>
<br></blockquote></div><br></div></div></div></div>
</blockquote></div><br><div apple-content-edited="true">
ir. Shandra Gutierrez Diaz<br>Ghent University<br>Medical Image and Signal Processing Group<br>Department of Electronics and Information Systems<br>Ghent University Hospital - Block B<br>De Pintelaan 185<br>B-9000 Ghent<br>Belgium<br><br>
</div>
<br></div></body></html>