[Insight-users] Thankyou for your response
CSPL
affable at hd2 . dot . net . in
Fri, 4 Jul 2003 13:39:55 +0530
This is a multi-part message in MIME format.
------=_NextPart_000_0038_01C34231.C0EA30F0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi Miller James,
I have downloaded new version of itk and could use =
itkConnectedComponentImageFilter and RelabelComponentImageFilter. These =
two classes are working fine to get largest 3d object in a volume. I =
could run my application successfully.
Thanks for ur response for our problem.
-Regards,
Sateesh.
----- Original Message -----=20
From: Miller, James V (Research)=20
To: 'cspl' ; insight-users at itk . org ; Insight-developers (E-mail)=20
Sent: Tuesday, July 01, 2003 9:03 PM
Subject: RE: [Insight-users] Find largest connected object in a Volume
I just added a new filter to the ITK repository that relabels an =
image. The input would the output of any segmentation algorithm that =
creates a label map. The ConnectedComponentImageFilter would be one =
such filter. Watershed would another, etc. The filter is called =
RelabelComponentImageFilter and it changes the labels in the image such =
that label 1 is assigned to the largest object, label 2 is the next =
largest object, etc. Any single object can be extracted using =
BinaryThresholdImageFilter by setting the LowerThreshold and the =
UpperThreshold to the same value. In fact, any group of objects can be =
extracted using BinaryThresholdImageFilter by having the LowerThreshold =
and UpperThreshold span a group range (the ThresholdImageFilter can be =
used to extract a range of objects without changing their labels again).
So using the RelabelComponentImageFilter in conjuction with a =
threshold filter you can extract the largest object, the second largest =
object, or the k largest objects.
Size is defined by area/volume/number of pixels, etc.
After the filter executes, you can query the number of objects, and =
the size of each object.
Jim
-----Original Message-----
From: Miller, James V (Research) [mailto:millerjv at crd . ge . com]=20
Sent: Friday, June 27, 2003 1:34 PM
To: 'cspl'; insight-users at itk . org
Subject: RE: [Insight-users] Find largest connected object in a =
Volume
In Code/BasicFilters there are two classes =
ConnectedComponentImageFilter and=20
HardConnectedComponentImageFilter. The former is a rewrite of the =
latter to use more of the ITK infrastructure. The latter may be removed =
soon. =20
The ConnectedComponentImageFilter will use 6-connectivity in a =
volume to label the objects in the volume. Each connected object will =
have a unique label.
However, this does not extract the largest connected object. You =
would need a separate filter (that does not exist yet) to scan through =
the label map and extract the largest object. As Luis suggested, you =
could a histogram of the label map to determine which object is the =
"largest".
-----Original Message-----
From: cspl [mailto:affable at hd2 . dot . net . in]
Sent: Friday, June 27, 2003 2:19 AM
To: insight-users at itk . org
Subject: [Insight-users] Find largest connected object in a Volume
Hi Luis and all,
I am in need of help on connectivity filter. Let me explain my =
requirment.
I have a volume of some slices. I have to find the largest =
object in the entire volume. Initiallly i will threshold the image so =
that it will in binary format. Then i have to use 6-connectivity of find =
the largest object in the volume. The largest object should be labeled =
1. Is there any filter which solves my problem. I should use =
6-connectivity. Please do suggest me if there are other alternatives =
too.
=20
Please help me in this regard.
Thanks in advance.
-Regards,
Sateesh.
------=_NextPart_000_0038_01C34231.C0EA30F0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi Miller James,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2> </DIV>
<DIV><BR> I have downloaded new version of itk and could use =
itkConnectedComponentImageFilter and RelabelComponentImageFilter. These =
two=20
classes are working fine to get largest 3d object in a volume. I could =
run my=20
application successfully.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2> Thanks for ur response for =
our=20
problem.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>-Regards,<BR> =
Sateesh.</FONT></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV=20
style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
<A title=3Dmillerjv at crd . ge . com =
href=3D"mailto:millerjv at crd . ge . com">Miller, James V=20
(Research)</A> </DIV>
<DIV style=3D"FONT: 10pt arial"><B>To:</B> <A =
title=3Daffable at hd2 . dot . net . in=20
href=3D"mailto:affable at hd2 . dot . net . in">'cspl'</A> ; <A=20
title=3Dinsight-users at itk . org=20
href=3D"mailto:insight-users at itk . org">insight-users at itk . org</A> ; <A=20
title=3Dinsight-developers at itk . org=20
href=3D"mailto:insight-developers at itk . org">Insight-developers =
(E-mail)</A>=20
</DIV>
<DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Tuesday, July 01, 2003 =
9:03=20
PM</DIV>
<DIV style=3D"FONT: 10pt arial"><B>Subject:</B> RE: [Insight-users] =
Find largest=20
connected object in a Volume</DIV>
<DIV><BR></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN =
class=3D225062615-01072003>I=20
just added a new filter to the ITK repository that relabels an image. =
The=20
input would the output of any segmentation algorithm that creates a =
label=20
map. The ConnectedComponentImageFilter would be one such =
filter. =20
Watershed would another, etc. The filter is called=20
RelabelComponentImageFilter and it changes the labels in the image =
such that=20
label 1 is assigned to the largest object, label 2 is the next largest =
object,=20
etc. Any single object can be extracted using =
BinaryThresholdImageFilter=20
by setting the LowerThreshold and the UpperThreshold to the same =
value. =20
In fact, any group of objects can be extracted using=20
BinaryThresholdImageFilter by having the LowerThreshold and =
UpperThreshold=20
span a group range (the ThresholdImageFilter can be used to extract a =
range of=20
objects without changing their labels again).</SPAN></FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
class=3D225062615-01072003></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN =
class=3D225062615-01072003>So=20
using the RelabelComponentImageFilter in conjuction with a threshold =
filter=20
you can extract the largest object, the second largest object, or the =
k=20
largest objects.</SPAN></FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
class=3D225062615-01072003></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN =
class=3D225062615-01072003>Size=20
is defined by area/volume/number of pixels, etc.</SPAN></FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
class=3D225062615-01072003></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
class=3D225062615-01072003>After the filter executes, you can query =
the number=20
of objects, and the size of each object.</SPAN></FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
class=3D225062615-01072003></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
class=3D225062615-01072003>Jim</SPAN></FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
class=3D225062615-01072003></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
class=3D225062615-01072003></SPAN></FONT> </DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px =
solid; MARGIN-RIGHT: 0px">
<DIV class=3DOutlookMessageHeader dir=3Dltr align=3Dleft><FONT =
face=3DTahoma=20
size=3D2>-----Original Message-----<BR><B>From:</B> Miller, James V =
(Research)=20
[mailto:millerjv at crd . ge . com]<SPAN class=3D225062615-01072003><FONT =
face=3DArial=20
color=3D#0000ff> </FONT></SPAN><BR><B>Sent:</B> Friday, June =
27, 2003=20
1:34 PM<BR><B>To:</B> 'cspl'; =
insight-users at itk . org<BR><B>Subject:</B> RE:=20
[Insight-users] Find largest connected object in a=20
Volume<BR><BR></FONT></DIV>
<DIV><SPAN class=3D538382917-27062003><FONT face=3DArial =
color=3D#0000ff size=3D2>In=20
Code/BasicFilters there are two classes =
ConnectedComponentImageFilter and=20
</FONT></SPAN></DIV>
<DIV><SPAN class=3D538382917-27062003><FONT face=3DArial =
color=3D#0000ff=20
size=3D2>HardConnectedComponentImageFilter. The former is a =
rewrite of=20
the latter to use more of the ITK infrastructure. The latter may be =
removed=20
soon. </FONT></SPAN></DIV>
<DIV><SPAN class=3D538382917-27062003><FONT face=3DArial =
color=3D#0000ff=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D538382917-27062003><FONT face=3DArial =
color=3D#0000ff=20
size=3D2>The ConnectedComponentImageFilter will use 6-connectivity =
in a volume=20
to label the objects in the volume. Each connected object will =
have a=20
unique label.</FONT></SPAN></DIV>
<DIV><SPAN class=3D538382917-27062003><FONT face=3DArial =
color=3D#0000ff=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D538382917-27062003><FONT face=3DArial =
color=3D#0000ff=20
size=3D2>However, this does not extract the largest connected =
object. =20
You would need a separate filter (that does not exist yet) to scan =
through=20
the label map and extract the largest object. As Luis =
suggested, you=20
could a histogram of the label map to determine which object is the=20
"largest".</FONT></SPAN></DIV>
<DIV><SPAN class=3D538382917-27062003><FONT face=3DArial =
color=3D#0000ff=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D538382917-27062003><FONT face=3DArial =
color=3D#0000ff=20
size=3D2></FONT></SPAN> </DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff =
2px solid; MARGIN-RIGHT: 0px">
<DIV class=3DOutlookMessageHeader dir=3Dltr align=3Dleft><FONT =
face=3DTahoma=20
size=3D2>-----Original Message-----<BR><B>From:</B> cspl=20
[mailto:affable at hd2 . dot . net . in]<BR><B>Sent:</B> Friday, June 27, =
2003 2:19=20
AM<BR><B>To:</B> insight-users at itk . org<BR><B>Subject:</B> =
[Insight-users]=20
Find largest connected object in a Volume<BR><BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Hi Luis and all,<BR> =
I am in=20
need of help on connectivity filter. Let me explain my=20
requirment.<BR> I have a volume of some slices. I have =
to find=20
the largest object in the entire volume. Initiallly i will =
threshold the=20
image so that it will in binary format. Then i have to use =
6-connectivity=20
of find the largest object in the volume. The largest object =
should be=20
labeled 1. Is there any filter which solves my problem. I should =
use=20
6-connectivity. Please do suggest me if there =
are other=20
alternatives too.<BR> <BR> =
Please help=20
me in this regard.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2> Thanks in =
advance.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>-Regards,<BR> =20
=
Sateesh.</FONT></DIV></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML=
>
------=_NextPart_000_0038_01C34231.C0EA30F0--