[Insight-users] WSTITK use too much memory
Joshua Cates
cates@sci.utah.edu
Mon, 30 Dec 2002 14:22:45 -0700 (MST)
Hi Wen,
My best guess is that you have given an incorrect path to VTK or
SegmentationEditor and the tcl script is trying to source a file
incorrectly. The application make some attempt to detect incorrect paths,
but who knows...
Try editing (or deleting) the WST.conf file in the
Insight/Applications/SegmentationEditor directory.
Mine looks like this:
set Options(vtk_path) /home/sci/cates/VTK
set Options(wst_path) /home/sci/cates/Insight/Applications/SegmentationEditor
When I run WSTITK, it uses about 20M of memory.
Josh.
______________________________
Josh Cates
School of Computer Science
University of Utah
Email: cates@sci.utah.edu
Phone: (801) 587-7697
URL: http://www.sci.utah.edu/~cates
On Sun, 29 Dec 2002, Wen Jiang wrote:
> Luis,
> Thanks. But my problem was actually different. Let me make it clearer.
> I am new to ITK and just compiled ITK on a laptop running Mandrake 9. I
> followed the instructions in
> Insight/Applications/SegmentationEditor/README.txt:
>
> 2. To run this application:
>
> cd INSIGHT_SOURCE/Applications/SegmentationEditor/Scripts
> INSIGHT_BUILD/bin/WSTITK Main.tcl
>
> I only saw the widget prompt for the VTK, SegmentationEditror path and
> then it seemed stuck without any GUI shown. I did not even had the
> chance to specify an input to the SegmentationEditor. Looking at top
> display, WSTITK is taking several hundred meg and keep growing and
> crashed until it reached about 1.4G. Apparently this is a problem not
> related to the watershed algorithm but the compiling/library.
> Did I miss anything during compiling VTK/ITK to get this weird problem?
>
>
> Wen
>
>
> Luis Ibanez wrote:
>
> >
> > Hi Wen,
> >
> > What kind of image are you prodiving as input ?
> >
> > You may want to apply some smoothing to the input image
> > before attempting to use the watershed algorithm.
> >
> > Any of the edge-preserving filter could be a good option.
> > Try for example the CurvatureFlowImageFilter.
> >
> > What may be happening is that your image have high
> > spatial frequencies. If this is the case, the Watershed
> > analysis will finds small basins everywhere and will get
> > overloaded with the number of small details. Trying to
> > keep track of miriads of basis may be the reason for the
> > memory overload.
> >
> >
> > Applying any smoothing should prevent this basin
> > proliferation from happening.
> >
> > Examples on the use of the Edge-preserving filters
> > can be found under
> >
> > Insight/Examples/Filtering
> >
> > - CurvatureAnisotropicDiffusionImageFilter.cxx
> > - CurvatureFlowImageFilter.cxx
> > - GradientAnisotropicDiffusionImageFilter.cxx
> >
> > You may even use the executables of these examples for
> > filtering your input image. These examples read the
> > image from a file and write the output down to a file.
> >
> >
> >
> > Please let us know if you find further problems.
> >
> >
> > Thanks
> >
> >
> >
> > Luis
> >
> >
> > -------------------------------------------------------------------
> >
> > Wen Jiang wrote:
> >
> >> Hi,
> >> I just compiled ITK and tried to run the SegmentationEditor. It uses
> >> too much memory (1.4G) while my laptop only has 512MB. There must be
> >> something wrong since I just run WSTITK Mail.tcl before it displays
> >> any GUI. I have ITK and VTK from the current CVS and am running
> >> Mandrake 9.0 . What wrong could this be from?
> >>
> >> Wen
> >>
> >> _______________________________________________
> >> Insight-users mailing list
> >> Insight-users@public.kitware.com
> >> http://public.kitware.com/mailman/listinfo/insight-users
> >>
> >
> >
> >
> >
> > _______________________________________________
> > Insight-users mailing list
> > Insight-users@public.kitware.com
> > http://public.kitware.com/mailman/listinfo/insight-users
> >
>
> _______________________________________________
> Insight-users mailing list
> Insight-users@public.kitware.com
> http://public.kitware.com/mailman/listinfo/insight-users
>