[Insight-users] SurfaceExtraction.cxx broken

Luke Hetrick lhetrick at nnu.edu
Mon Jun 18 18:46:26 EDT 2012


Hey,

   My ITK/Examples/Filtering/SurfaceExtraction.cxx gives me a segmentation
fault when ever I run it. After reading the section that describes this
program on page 291 of the software guide pdf (page 260 of he text), I know
I should have a 3D image. I am generate this 3D image by using the
ImageSeriesReadWrite.cxx (with a few modifications so it can accept my 2D
*.png images). But when I try to read the 3D .png image I created into
SurfaceExtraction.cxx, it just dies. I do not throw exceptions or anything
else, just a segmentation fault. At least the exceptions tell me something
useful when I hit an error but this give me nothing to work with.

   Can someone help me figure out why I get this error? I have attatched
some of the 2D files I pass into the ImageSeriesReadWrite.cxx (described on
page 319 of the software guide pdf) and name the output of these combined
files fetus_all.png.

    I then try the following command get this.

 ./SurfaceExtraction fetus_all.png 120
 Segmentation fault (core dumped)

If any one has any thoughts on this matter, I would love to hear them. I
can show you my code or more steps of how I get to the segmentation fault
if you need as well if it would help.

Thanks,
Luke
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20120618/0850e0b6/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fetus_threshold_0194.png
Type: image/png
Size: 410 bytes
Desc: not available
URL: <http://www.itk.org/pipermail/insight-users/attachments/20120618/0850e0b6/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fetus_threshold_0195.png
Type: image/png
Size: 477 bytes
Desc: not available
URL: <http://www.itk.org/pipermail/insight-users/attachments/20120618/0850e0b6/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fetus_threshold_0196.png
Type: image/png
Size: 545 bytes
Desc: not available
URL: <http://www.itk.org/pipermail/insight-users/attachments/20120618/0850e0b6/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fetus_threshold_0197.png
Type: image/png
Size: 672 bytes
Desc: not available
URL: <http://www.itk.org/pipermail/insight-users/attachments/20120618/0850e0b6/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fetus_threshold_0198.png
Type: image/png
Size: 846 bytes
Desc: not available
URL: <http://www.itk.org/pipermail/insight-users/attachments/20120618/0850e0b6/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fetus_threshold_0199.png
Type: image/png
Size: 862 bytes
Desc: not available
URL: <http://www.itk.org/pipermail/insight-users/attachments/20120618/0850e0b6/attachment-0005.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fetus_threshold_0200.png
Type: image/png
Size: 901 bytes
Desc: not available
URL: <http://www.itk.org/pipermail/insight-users/attachments/20120618/0850e0b6/attachment-0006.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fetus_threshold_0201.png
Type: image/png
Size: 956 bytes
Desc: not available
URL: <http://www.itk.org/pipermail/insight-users/attachments/20120618/0850e0b6/attachment-0007.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fetus_threshold_0202.png
Type: image/png
Size: 963 bytes
Desc: not available
URL: <http://www.itk.org/pipermail/insight-users/attachments/20120618/0850e0b6/attachment-0008.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fetus_threshold_0203.png
Type: image/png
Size: 977 bytes
Desc: not available
URL: <http://www.itk.org/pipermail/insight-users/attachments/20120618/0850e0b6/attachment-0009.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fetus_threshold_0204.png
Type: image/png
Size: 969 bytes
Desc: not available
URL: <http://www.itk.org/pipermail/insight-users/attachments/20120618/0850e0b6/attachment-0010.png>


More information about the Insight-users mailing list