[Insight-users] Visualising ITK-made labels by paraview (vtk)

Gaëtan Lehmann gaetan.lehmann at jouy.inra.fr
Thu Oct 11 10:18:59 EDT 2007


Hi Ali,

LabelToRGBImageFilter is a possible alternative to that functor, and  
is available in WrapITK.

Gaëtan



Le 11 oct. 07 à 16:15, Ali - a écrit :

> Luis,
>
> It seems to refer to this on page 561:
>
> typedef itk::Functor::ScalarToRGBPixelFunctor<unsigned long>
> ColorMapFunctorType;
> typedef itk::UnaryFunctorImageFilter<LabeledImageType,
> RGBImageType, ColorMapFunctorType> ColorMapFilterType;
> ColorMapFilterType::Pointer colormapper = ColorMapFilterType::New();
>
> I use WrapITK-Python, and WrapITK does not support functors. Is  
> there any other non-functor ways of doing this which does not  
> involve creating a new image filter in c++?
>
>
>
> > Date: Thu, 11 Oct 2007 09:24:53 -0400
> > From: luis.ibanez at kitware.com
> > To: saveez at hotmail.com
> > CC: insight-users at itk.org
> > Subject: Re: [Insight-users] Visualising ITK-made labels by  
> paraview (vtk)
> >
> >
> >
> > Hi Ali,
> >
> > Are you color coding the output watershed image ?
> >
> > If you do so, it will be easier to see the different regions.
> >
> > You will find instructions on how to color-code the image
> > in the ITK Software Guide
> >
> >
> > http://www.itk.org/ItkSoftwareGuide.pdf
> >
> > In the section 9.2 "Segmentation based on Watersheds"
> > in pdf-page 556.
> >
> > See figure 9.12 in pdf-page 561.
> >
> >
> >
> > Regards,
> >
> >
> > Luis
> >
> >
> >
> > -----------------
> > Ali - wrote:
> > > Hi,
> > >
> > > What is the best way of visualising labels created by ITK  
> filter, eg the
> > > watershed filters, by paraview? After saving the final file in mha
> > > format, I have tried the vtk-based paraview filters, contour and
> > > threshold; but they do not seem to do the job properly.
> > >
> > >
> > >  
> ---------------------------------------------------------------------- 
> --
> > >
> > > _______________________________________________
> > > Insight-users mailing list
> > > Insight-users at itk.org
> > > http://www.itk.org/mailman/listinfo/insight-users
>
> The next generation of MSN Hotmail has arrived - Windows Live Hotmail
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users

--
Gaëtan Lehmann
Biologie du Développement et de la Reproduction
INRA de Jouy-en-Josas (France)
tel: +33 1 34 65 29 66    fax: 01 34 65 29 09
http://voxel.jouy.inra.fr



-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: =?ISO-8859-1?Q?Ceci_est_une_signature_=E9lectronique_PGP?=
Url : http://public.kitware.com/pipermail/insight-users/attachments/20071011/ff847ffc/PGP-0001.pgp


More information about the Insight-users mailing list