[Insight-users] Runtime memory error in Fast marching Segmentation level set program

Luis Ibanez luis . ibanez at kitware . com
Fri, 26 Sep 2003 14:14:37 -0400


Hi Shaohua,


It looks like you are loading 2D images.

These demo applications

  - FastMarchingLevelSet
  - ShapeDetectionLevelSet
  - GeodesicActiveContour

are intended to be used with 3D data.


ITK is N-Dimensional, but the applications are not.



If you want to apply these segmentation methods
to 2D image, you can easily use the examples
available in Insight/Examples/Segmentation which
are command line tools.

You will find detailed information about these
examples in the SoftwareGuide

   http://www . itk . org/ItkSoftwareGuide . pdf

in Section 9.3, pdf-page 363.

---

Note that most of the applications in InsightApplications
are just "demos". They are not bullet-proof and are not
intended to be used for clinical work. Their aim is to
illustrate how you could use ITK in your own applications.



Regards,


    Luis


-------------------
Shaohua Fan wrote:
> Hello,
> 
> There is no problem to get the interface anc display
> the input image(.png format, or .mha). However, when I
> give some initial seed points and click "gradient
> magnitude" button, the program hang on there for a
> while and then
> gives an error message "The memory could not be read
> ". 
> Also, when I try to load and display several images
> sequentially without restarting the program, it
> crashes.
> 
> The same error occured when I tried
> shapeDectionLevelSet and geodesic active contour. Did
> I do something wrong using those program -- those
> executives files come after I compliled
> InsightApplication? or some other reasons cause those
> problems? Thanks a lot for helps. 
> 
> Shaohua
> 
> __________________________________
>