[Insight-developers] casting images up/down dimensions
Miller, James V (Research)
millerjv at crd . ge . com
Thu, 7 Aug 2003 14:31:28 -0400
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_01C35D11.888BD7DA
Content-Type: text/plain
Couple of options.
The ExtractImageFilter grab a slice of a volume and output a 2D image. The
CastImageFilter can promote a 2D image into a 3D image (with just one
slice). If your volume only has one slice, I think you can used the
CastImageFilter to do the 3D to 2D conversion as well.
A second option: Some filters (in particular the DiscreteGaussian) have a
method called SetFilterDimensionality(). This allows you to pass a volume
to the algorithm but only run the algorithms on a slice by slice basis. So
if the FilterDimensionality is 2 and you have a 3D image with a single
slice, the processing time and results should be equivalent to using the 2D
algorithm on a 2D image.
Jim
-----Original Message-----
From: Lydia Ng [mailto:lng at insightful . com]
Sent: Thursday, August 07, 2003 2:19 PM
To: Insight-Developers (E-mail)
Subject: [Insight-developers] casting images up/down dimensions
Hi All,
A while ago there was some chatter about the ability to "cast" image up and
down dimension?
Is there filter/adaptor to do this now?
My basic problem is that we have a 3D-image with one slice (the GUI only
handles 3D images) and we want to do Guassian smoothing (which requires at
least 4/5 slices). So, we were thinking about casting the input to a 2D
image and then cast the results back to a 3D image. Or is there an
alternative way?
- Lydia
------_=_NextPart_001_01C35D11.888BD7DA
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns=3D"http://www . w3 . org/TR/REC-html40" xmlns:o =3D=20
"urn:schemas-microsoft-com:office:office" xmlns:w =3D=20
"urn:schemas-microsoft-com:office:word" xmlns:st1 =3D=20
"urn:schemas-microsoft-com:office:smarttags"><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3DUS-ASCII">
<META content=3DWord.Document name=3DProgId>
<META content=3D"MSHTML 6.00.2800.1141" name=3DGENERATOR>
<META content=3D"Microsoft Word 10" name=3DOriginator><LINK=20
href=3D"cid:filelist . xml at 01C35CD5 . A99EEC60" =
rel=3DFile-List><o:SmartTagType=20
name=3D"country-region"=20
namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags"></o:SmartTag=
Type><o:SmartTagType=20
name=3D"place"=20
namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags"></o:SmartTag=
Type><!--[if gte mso 9]><xml>
<o:OfficeDocumentSettings>
<o:DoNotRelyOnCSS/>
</o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:WordDocument>
<w:SpellingState>Clean</w:SpellingState>
<w:GrammarState>Clean</w:GrammarState>
<w:DocumentKind>DocumentEmail</w:DocumentKind>
<w:EnvelopeVis/>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
</w:Compatibility>
<w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
</w:WordDocument>
</xml><![endif]--><!--[if !mso]>
<STYLE>st1\:* {
BEHAVIOR: url(#default#ieooui)
}
</STYLE>
<![endif]-->
<STYLE>@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in =
1.25in; mso-header-margin: .5in; mso-footer-margin: .5in; =
mso-paper-source: 0; }
P.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"; =
mso-style-parent: ""; mso-pagination: widow-orphan; =
mso-fareast-font-family: "Times New Roman"
}
LI.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"; =
mso-style-parent: ""; mso-pagination: widow-orphan; =
mso-fareast-font-family: "Times New Roman"
}
DIV.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"; =
mso-style-parent: ""; mso-pagination: widow-orphan; =
mso-fareast-font-family: "Times New Roman"
}
A:link {
COLOR: blue; TEXT-DECORATION: underline; text-underline: single
}
SPAN.MsoHyperlink {
COLOR: blue; TEXT-DECORATION: underline; text-underline: single
}
A:visited {
COLOR: purple; TEXT-DECORATION: underline; text-underline: single
}
SPAN.MsoHyperlinkFollowed {
COLOR: purple; TEXT-DECORATION: underline; text-underline: single
}
P.MsoAutoSig {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"; =
mso-pagination: widow-orphan; mso-fareast-font-family: "Times New =
Roman"
}
LI.MsoAutoSig {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"; =
mso-pagination: widow-orphan; mso-fareast-font-family: "Times New =
Roman"
}
DIV.MsoAutoSig {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"; =
mso-pagination: widow-orphan; mso-fareast-font-family: "Times New =
Roman"
}
SPAN.EmailStyle17 {
COLOR: windowtext; FONT-FAMILY: Arial; mso-style-type: =
personal-compose; mso-style-noshow: yes; mso-ansi-font-size: 10.0pt; =
mso-bidi-font-size: 10.0pt; mso-ascii-font-family: Arial; =
mso-hansi-font-family: Arial; mso-bidi-font-family: Arial
}
DIV.Section1 {
page: Section1
}
</STYLE>
<!--[if gte mso 10]>
<style>
/* Style Definitions */=20
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin:0in;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Times New Roman";}
</style>
<![endif]--></HEAD>
<BODY lang=3DEN-US style=3D"tab-interval: .5in" vLink=3Dpurple =
link=3Dblue>
<DIV><SPAN class=3D360142718-07082003><FONT color=3D#0000ff =
size=3D2>Couple of=20
options. </FONT></SPAN></DIV>
<DIV><SPAN class=3D360142718-07082003><FONT color=3D#0000ff=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D360142718-07082003><FONT color=3D#0000ff =
size=3D2>The=20
ExtractImageFilter grab a slice of a volume and output a 2D =
image. The=20
CastImageFilter can promote a 2D image into a 3D image (with just one =
slice). If=20
your volume only has one slice, I think you can used the =
CastImageFilter to do=20
the 3D to 2D conversion as well.</FONT></SPAN></DIV>
<DIV><SPAN class=3D360142718-07082003><FONT color=3D#0000ff=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D360142718-07082003><FONT color=3D#0000ff size=3D2>A =
second=20
option: Some filters (in particular the DiscreteGaussian) have a =
method=20
called SetFilterDimensionality(). This allows you to pass a =
volume to the=20
algorithm but only run the algorithms on a slice by slice basis. =
So if the=20
FilterDimensionality is 2 and you have a 3D image with a single slice, =
the=20
processing time and results should be equivalent to using the 2D =
algorithm on a=20
2D image.</FONT></SPAN></DIV>
<DIV><SPAN class=3D360142718-07082003><FONT color=3D#0000ff=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D360142718-07082003><FONT color=3D#0000ff=20
size=3D2>Jim</FONT></SPAN></DIV>
<DIV><SPAN class=3D360142718-07082003><FONT color=3D#0000ff=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D360142718-07082003><FONT 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> Lydia Ng=20
[mailto:lng at insightful . com]<BR><B>Sent:</B> Thursday, August 07, 2003 =
2:19=20
PM<BR><B>To:</B> Insight-Developers (E-mail)<BR><B>Subject:</B>=20
[Insight-developers] casting images up/down =
dimensions<BR><BR></FONT></DIV>
<DIV class=3DSection1>
<P class=3DMsoNormal><FONT face=3D"Times New Roman" size=3D3><SPAN=20
style=3D"FONT-SIZE: 12pt; mso-no-proof: yes">Hi=20
All,<o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3D"Times New Roman" size=3D3><SPAN=20
style=3D"FONT-SIZE: 12pt; mso-no-proof: =
yes"><o:p> </o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3D"Times New Roman" size=3D3><SPAN=20
style=3D"FONT-SIZE: 12pt; mso-no-proof: yes">A while ago there was =
some chatter=20
about the ability to “cast” image up and down dimension?=20
<o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3D"Times New Roman" size=3D3><SPAN=20
style=3D"FONT-SIZE: 12pt; mso-no-proof: yes">Is there filter/adaptor =
to do this=20
now?<o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3D"Times New Roman" size=3D3><SPAN=20
style=3D"FONT-SIZE: 12pt; mso-no-proof: =
yes"><o:p> </o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3D"Times New Roman" size=3D3><SPAN=20
style=3D"FONT-SIZE: 12pt; mso-no-proof: yes">My basic problem is that =
we have a=20
3D-image with one slice (the GUI only handles 3D images) and we want =
to do=20
Guassian smoothing (which requires at least 4/5 slices). So, we were =
thinking=20
about casting the input to a 2D image and then cast the results back =
to a 3D=20
image. Or is there an alternative way?<o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3D"Times New Roman" size=3D3><SPAN=20
style=3D"FONT-SIZE: 12pt; mso-no-proof: =
yes"><o:p> </o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3D"Times New Roman" size=3D3><SPAN=20
style=3D"FONT-SIZE: 12pt; mso-no-proof: yes">-=20
</SPAN></FONT><st1:country-region><st1:place><SPAN=20
style=3D"mso-no-proof: =
yes">Lydia</SPAN></st1:place></st1:country-region><SPAN=20
style=3D"mso-no-proof: yes"><o:p></o:p></SPAN></P>
<P class=3DMsoNormal><FONT face=3D"Times New Roman" size=3D3><SPAN=20
style=3D"FONT-SIZE: 12pt; mso-no-proof: =
yes"><o:p> </o:p></SPAN></FONT></P></DIV></BLOCKQUOTE></BODY></HTML=
>
------_=_NextPart_001_01C35D11.888BD7DA--