[Insight-users] Re: 3Dvolume..

Luis Ibanez luis . ibanez at kitware . com
Sun, 18 May 2003 22:57:27 -0400


Hi Yasser,

Are we talking about the same watershed example ?

The one in

  Insight/Examples/Segmentation/WatershedSegmentation1.cxx

If this is the case, this example expects RGB files
as input. Is your RAW data encoded in three components ?
If is not, you will have to modify a bit the example
in order to fit your needs. Notice that at the end, the
actual input to the watershed filter is the gradient
magnitude of an image.

You are right about the dimensionality. You will have to
modify the typedefs starting in line 78 in order to manage
3D insted of 2D. (just replace 2 with 3 in the  five lines
declaring image types).

For the SoftwareGuide, the input used in this example
is a PNG (not PGM) file. However the example should be
able to read a metaimage as long as the dimensionality
and number of components match the changes you make in
the code.

Regards,



   Luis


---------------------
yasser salman wrote:
> hi Luis ..,
> i think waterShed example need a input file.PGM not a
> raw format or Meta image that i'm already created as u
> told me..,also WaterShed works with 2D so i need to
> run it in My 3D Volume..,
> thanks
> yasser..,\
> 
> __________________________________
> Do you Yahoo!?
> The New Yahoo! Search - Faster. Easier. Bingo.
> http://search.yahoo.com
> _______________________________________________
> Insight-users mailing list
> Insight-users@public.kitware.com
> http://public.kitware.com/mailman/listinfo/insight-users
>