[Insight-users] N4ITK running error
Jon Haitz Legarreta
jhlegarreta at vicomtech.org
Thu Jan 30 08:23:49 EST 2014
Dear Shandra,
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.
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.
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.
HTH,
JON HAITZ
On 30 January 2014 14:13, Nicholas Tustison <ntustison at gmail.com> wrote:
> Hi Shandra,
>
> You didn't specify any arguments for -c or -b. If I remember
> correctly, try something like '-b [200] -c [50x50x50x50,0]'.
>
> Nick
>
> On Jan 30, 2014, at 8:10 AM, Shandra Gutierrez Diaz <
> Shandra.GutierrezDiaz at UGent.be> wrote:
>
>
> Hi,
>
> I am trying to work with N4ITK (N4BiasFieldCorrectionImageFilter). I have
> built it succesfully but when running it, it gives error.
> >./N4.exe 2 -i t81slice.nii.gz -o t81sliceCorrect.nii.gz -s 4 -c -b
> Segmentation fault: 11
> >./N4.exe -d 2 -i t81slice.nii.gz -o t81sliceCorrect.nii.gz -s 4 -c -b
> terminate called throwing an exceptionAbort trap: 6
>
> Has anyone faced the same problem or any clue what can be?
> Best,
> Shandra
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
>
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20140130/9b021646/attachment-0001.html>
More information about the Insight-users
mailing list