[Insight-users] AND/OR operation and structuring element
Miller, James V (Research)
millerjv at crd . ge . com
Wed, 3 Dec 2003 10:40:36 -0500
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C3B9B3.43105778
Content-Type: text/plain
Radhika,
For AND and OR, you can use the MinimumImageFilter and MaximumImageFilter.
These filters take the pixelwise minimum and maximum of two images.
For the cross structuring element, I created a new structuring element class
called itkBinaryCrossStructuringElement. You can use in place of the
BallStructuring element. The cross structuring element does not allow the
user to set the radius of the cross. Rather is forced to be a 3x3x3...
structuring element. The face connected neighbors are one and the diagonal
elements are zero.
You'll need to get the CrossStructuringElement from the CVS repository. It
is in Code/Common.
Jim
-----Original Message-----
From: Radhika Sivaramakrishna [mailto:radhika . sivaramakrishna at synarc . com]
Sent: Tuesday, December 02, 2003 7:51 PM
To: 'insight-users at itk . org'
Subject: [Insight-users] AND/OR operation and structuring element
Hi Luiz,
Thanks for your earlier responses.
I had the following questions:
1) Given two binary masks, what are the available functions to do an AND or
an OR of these two masks? I see a filter BinaryFunctorImageFilter but do not
know how to use this.
2) I want to specify my own structuring element with the mathematical
morphology filters, which is a 3x3x3 with
1's only in the nearest neighbor positions and 0's in the off-diagonal
places. How do I do this? i.e. I know how to call the standard
BallStructuring element, but I don't know how to edit it.
Thanks
Radhika
-----------------------------------------------------
Confidentiality Notice.
This email message is for the sole use of the intended recipient(s) and may
contain confidential and privileged information. Any unauthorized review,
use, disclosure or distribution is prohibited. If you are not the intended
recipient, please contact the sender by reply email and destroy all copies
of the original message. If you are the intended recipient, please be
advised that the content of this message is subject to access, review and
disclosure by the sender's Email System Administrator.
------_=_NextPart_001_01C3B9B3.43105778
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3DUS-ASCII">
<TITLE>AND/OR operation and structuring element</TITLE>
<META content=3D"MSHTML 6.00.2800.1264" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D751453615-03122003><FONT color=3D#0000ff=20
size=3D2>Radhika,</FONT></SPAN></DIV>
<DIV><SPAN class=3D751453615-03122003><FONT color=3D#0000ff=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D751453615-03122003><FONT color=3D#0000ff =
size=3D2>For AND and OR,=20
you can use the MinimumImageFilter and MaximumImageFilter. These =
filters=20
take the pixelwise minimum and maximum of two =
images.</FONT></SPAN></DIV>
<DIV><SPAN class=3D751453615-03122003><FONT color=3D#0000ff=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D751453615-03122003><FONT color=3D#0000ff =
size=3D2>For the cross=20
structuring element, I created a new structuring element class =
called=20
itkBinaryCrossStructuringElement. You can use in place of the=20
BallStructuring element. The cross structuring element does not =
allow the=20
user to set the radius of the cross. Rather is forced to be a =
3x3x3...=20
structuring element. The face connected neighbors are one and the =
diagonal=20
elements are zero.</FONT></SPAN></DIV>
<DIV><SPAN class=3D751453615-03122003><FONT color=3D#0000ff=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D751453615-03122003><FONT color=3D#0000ff =
size=3D2>You'll need to=20
get the CrossStructuringElement from the CVS repository. It is in =
Code/Common.</FONT></SPAN></DIV>
<DIV><SPAN class=3D751453615-03122003><FONT color=3D#0000ff=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D751453615-03122003><FONT color=3D#0000ff=20
size=3D2>Jim</FONT></SPAN></DIV>
<BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px">
<DIV class=3DOutlookMessageHeader dir=3Dltr align=3Dleft><FONT =
face=3DTahoma=20
size=3D2>-----Original Message-----<BR><B>From:</B> Radhika =
Sivaramakrishna=20
[mailto:radhika . sivaramakrishna at synarc . com]<BR><B>Sent:</B> Tuesday, =
December=20
02, 2003 7:51 PM<BR><B>To:</B> =
'insight-users at itk . org'<BR><B>Subject:</B>=20
[Insight-users] AND/OR operation and structuring =
element<BR><BR></FONT></DIV>
<P><FONT size=3D2>Hi Luiz,</FONT> </P>
<P><FONT size=3D2>Thanks for your earlier responses. </FONT><BR><FONT =
size=3D2>I=20
had the following questions:</FONT> </P>
<P><FONT size=3D2>1) Given two binary masks, what are the available =
functions to=20
do an AND or an OR of these two masks? I see a filter =
BinaryFunctorImageFilter=20
but do not know how to use this.</FONT></P>
<P><FONT size=3D2>2) I want to specify my own structuring element =
with the=20
mathematical morphology filters, which is a 3x3x3 with =
</FONT><BR><FONT=20
size=3D2>1's only in the nearest neighbor positions and 0's in the =
off-diagonal=20
places. How do I do this? i.e. I know how to call the standard =
BallStructuring=20
element, but I don't know how to edit it.</FONT></P>
<P><FONT size=3D2>Thanks</FONT> <BR><FONT size=3D2>Radhika</FONT> =
</P><BR>
<P><FONT=20
=
size=3D2> &nb=
sp; &nb=
sp; &nb=
sp; &nb=
sp; =20
</FONT><BR><FONT=20
size=3D2>----------------------------------------------------- =20
</FONT><BR><FONT size=3D2>Confidentiality Notice. </FONT><BR><FONT =
size=3D2>This=20
email message is for the sole use of the intended recipient(s) and =
may contain=20
confidential and privileged information. Any unauthorized review, =
use,=20
disclosure or distribution is prohibited. If you are not the intended =
recipient, please contact the sender by reply email and destroy all =
copies of=20
the original message. If you are the intended recipient, please be =
advised=20
that the content of this message is subject to access, review and =
disclosure=20
by the sender's Email System=20
Administrator.</FONT></P></BLOCKQUOTE></BODY></HTML>
------_=_NextPart_001_01C3B9B3.43105778--