[Insight-users] WatershedSegmentation example
Joshua Cates
cates@poblano.sci.utah.edu
Wed, 17 Apr 2002 12:58:31 -0600 (MDT)
Hello all,
A couple of folks have been having trouble running the
WatershedSegmentation example. I believe the cause of the trouble may be
the format of the input data. WatershedSegmentationExample can only accept
ASCII pgm formatted 2D images. The example is really just a simple
demonstration toy, so it is not very robust.
It should be a relativly easy matter to replace the simple PGM reader in
the example with a reader that will handle data in other formats. See
documentation and examples on the Itk Image IO for more information.
If you find you still have trouble processing ASCII PGM images, please let
me know. Another factor to consider is that the output of the filter is
an image of unsigned long integers, which can be tricky to visualize. See
the README file in WatershedExample directory for more information.
Josh.
______________________________
Josh Cates
School of Computer Science
University of Utah
Email: cates@sci.utah.edu
Phone: (801) 587-7697
URL: www.cs.utk.edu/~cates