[Insight-users] ITK Watershed Filter

Iván Macía imacia at vicomtech.es
Fri Jan 27 10:47:59 EST 2006


Hi Steffi,

Use a pipeline with

Original image -> GradientAnisotropicDiffusionImageFilter ->
GradientMagnitudeImageFilter or
GradientMagnitudeRecursiveGaussianImageFilter -> watershed filter

Note that the output of the WatershedImageFilter is an image of labels that
uses unsigned shorts as pixel type and with the same dimension as the input
image. You can obtain consecutive labels by using the
RelabelComponentImageFilter. You may also map the labels to RGB values using
the Functor ScalarToRGBPixelFunctor (I haven't tried this yet myself) with
the UnaryFunctorImageFilter.

That should work

Iván 

-----Mensaje original-----
De: insight-users-bounces+imacia=vicomtech.es at itk.org
[mailto:insight-users-bounces+imacia=vicomtech.es at itk.org] En nombre de
Steffi Meyer
Enviado el: viernes, 27 de enero de 2006 15:46
Para: insight-users at itk.org
Asunto: [Insight-users] ITK Watershed Filter

Hi all,

I have some problems with the itk watershed filter. My input is a 3D volume
(grayscale intensities), so no RGB. My problem is how to transfer the
watershed filter to grayscale intensities? The
VectorGradientAnisotropicDiffusionImageFilter has a pendant for non-vector
images: GradientAnisotropicDiffusionImageFilter, but the
VectorGradientMagnitudeImageFilter (SetUsePrincipleComponents)? Is it
GradientMagnitudeImageFilter? Perhaps someone can paste some source code
fragments? Would be very nice. Thanks!
______________________________________________________________________
XXL-Speicher, PC-Virenschutz, Spartarife & mehr: Nur im WEB.DE Club!

Jetzt gratis testen! http://freemail.web.de/home/landingpad/?mc=021130

_______________________________________________
Insight-users mailing list
Insight-users at itk.org
http://www.itk.org/mailman/listinfo/insight-users

--
Internal Virus Database is out-of-date.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.14.21/236 - Release Date: 20/01/2006
 

-- 
Internal Virus Database is out-of-date.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.14.21/236 - Release Date: 20/01/2006
 



More information about the Insight-users mailing list