[Insight-users] to label continuous parts

Ivan Macia imacia at vicomtech.es
Thu, 15 Apr 2004 19:06:32 +0200


Oops! yes, I only checked the input to the relabeller filter but I forgot
the writer :)
Thanks a lot

Iván


> -----Mensaje original-----
> De: Miller, James V (Research) [mailto:millerjv at crd.ge.com]
> Enviado el: jueves, 15 de abril de 2004 18:58
> Para: 'Ivan Macia'; Insight Users (E-mail)
> Asunto: RE: [Insight-users] to label continuous parts
>
>
> You need to give the output of the relabeler to your writer.
>
> Your current code has:
>
> 	relabellerWriter->SetInput( labeller->GetOutput() );
>
> change this to
>
> 	relabellerWriter->SetInput( relabeller->GetOutput() );
>
>
> -----Original Message-----
> From: Ivan Macia [mailto:imacia at vicomtech.es]
> Sent: Thursday, April 15, 2004 5:25 AM
> To: Insight Users (E-mail)
> Subject: RE: [Insight-users] to label continuous parts
>
>
>
>
> -----Mensaje original-----
> De: Ivan Macia [mailto:imacia at vicomtech.es]
> Enviado el: jueves, 15 de abril de 2004 11:08
> Para: 'David Llanos'
> CC: Insight Users (E-mail)
> Asunto: RE: [Insight-users] to label continuous parts
>
>
> Hi David,
>
> Im attaching you a little example on how to use the filters
> together with a
> binary image with several shapes. The example writes the result after
> labelling and rellabeling using itkConnectedComponentImageFilter and
> itkRelabelComponentImageFilter. As you see is very
> straightforward. The
> labeller works find but the relabeller seems to do nothing
> here, I dont know
> why. Maybe some1 can shed light on this.
>
> Regards
>
> Ivan
>
>
>
> > -----Mensaje original-----
> > De: David Llanos [mailto:gva02 at elai.upm.es]
> > Enviado el: miercoles, 14 de abril de 2004 19:52
> > Para: Ivan Macia
> > Asunto: Re: [Insight-users] to label continuous parts
> >
> >
> > Hi Ivan
> >
> > I want to label a binary image only, what algorithm
> > recommends me to use?
> > can you put on a simple example?
> >
> > Thanks for all and regards,
> >
> > David
> >
> > ----- Original Message -----
> > From: "Ivan Macia" <imacia at vicomtech.es>
> > To: "'David Llanos'" <gva02 at elai.upm.es>
> > Cc: "Insight Users (E-mail)" <insight-users at itk.org>
> > Sent: Wednesday, April 14, 2004 10:15 AM
> > Subject: RE: [Insight-users] to label continuous parts
> >
> >
> > > Hi David,
> > >
> > > If what you have is a binary image where you have to
> > distinguish several
> > > connected objects itkConnectedComponentImageFilter seems
> > the right filter
> > to
> > > use. I didn't try it myself but it seems straightforward
> > but you won't
> > have
> > > consecutive numbers for the labels. itkRelabelComponentImageFilter
> > > transforms these label numbers in continuous labels. I
> > don't know if with
> > > "gray" you are referring to a binary or grayscale image
> > here. In the first
> > > case, someone correct me if im wrong, I don't think you
> > will find anything
> > > easier to use. You just have to allocate memory for the
> > filter, connect it
> > > to the output of another filter or an image an update.
> > >
> > > The Watershed filter is a well-known segmentation method in the
> > literature.
> > > In a few words is a segmentation filter that takes a
> > grayscale image as
> > > input, segments it and produces a labelled image as output,
> > the number of
> > > different labels you get depending on the parameters you
> set to the
> > filter.
> > >
> > > Hope that helps
> > >
> > > Ivan
> > >
> > > ________________________________
> > >
> > > Ivan Macia Oliver
> > > Ing. Industrial
> > > Ing. en Automatica y Electronica
> > > Asociacion VICOMTech
> > > http://www.vicomtech.es
> > > Paseo Mikeletegi 57, bajo
> > > 20.009 Donostia-San Sebastian
> > > (Gipuzkoa) SPAIN
> > > Tlfno: (00 34) 943 30 92 30
> > > Fax: (00 34) 943 30 93 93
> > > e-mail: imacia at vicomtech.es <mailto:imacia at vicomtech.es>
> > >
> > > **Member of INI-GraphicsNet**
> > > http://www.inigraphics.net
> > >
> > > VICOMTech is an ISO 9001:2000
> > > certified institute
> > > ______________________________
> > >
> > >
> > >
> > >
> > > -----Mensaje original-----
> > > De: insight-users-admin at itk.org
> > [mailto:insight-users-admin at itk.org]En
> > > nombre de David Llanos
> > > Enviado el: martes, 13 de abril de 2004 17:45
> > > Para: insight-users at itk.org
> > > Asunto: [Insight-users] to label continuous parts
> > >
> > >
> > > > Hi all,
> > > >
> > > > I have to label the different continuous parts of an gray
> > image, for
> > later
> > > to be able to process them and to differentiate them for blocks.
> > > >
> > > > I am studying the class "watershed",
> > itkRelabelComponentImageFilter and
> > > itkConnectedComponentImageFilter of ITK, but I think that the code
> > examples
> > > are too intricate for what I look for. I need only a
> simple labeled.
> > > >
> > > > would you be able to help me with an example but simple
> > or concise?
> > > >
> > > > Thanks in advange and regards,
> > > >
> > > > David.
> > >
> > >
> >
> >
>