[Insight-developers] Casting image dimension

Miller, James V (Research) millerjv@crd.ge.com
Fri, 21 Mar 2003 14:38:17 -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_01C2EFE1.6BACEC10
Content-Type: text/plain;
	charset="iso-8859-1"

I checked in my changes to the pipeline such that the CastImageFilter can be
used to cast between images of different dimensions. I mostly renamed a
method/type, added a method/type, wrote some docs, FIXED a one character
bug, and modified UnaryFunctorImageFilter.
 
The bottom line is that CastImageFilter (or any subclass of
UnaryFunctorImageFilter) can be used to cast between images of different
pixel type and/or image dimensions.  For dimension casting, the
implementation is best suited for casting the image dimension up, i.e.
taking a 2D image and making it a 3D image with a single slice.  It can also
be used to casting a degenerate image down in dimension, i.e. taking a 3D
image with a single slice and making it a 2D image.  If you use it cast a
general 3D volume to a 2D image, it will take the first slice (barring a
bug).
 
If want to control what slice is used when casting from a 3D image to a 2D
image, then use the ExtractImageFilter.
 

Jim Miller 
_____________________________________
Visualization & Computer Vision
GE Research
Bldg. KW, Room C218B
P.O. Box 8, Schenectady NY 12301

millerjv@research.ge.com <mailto:millerjv@research.ge.com> 

james.miller@research.ge.com
(518) 387-4005, Dial Comm: 8*833-4005, 
Cell: (518) 505-7065, Fax: (518) 387-6981 

 <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office"
/>

 

------_=_NextPart_001_01C2EFE1.6BACEC10
Content-Type: text/html;
	charset="iso-8859-1"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">


<META content="MSHTML 6.00.2715.400" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=997333219-21032003><FONT size=2>I checked in my changes to the 
pipeline such that the CastImageFilter can be used to cast between images of 
different dimensions. I mostly renamed a method/type, added a method/type, wrote 
some docs, FIXED a one character bug, and modified 
UnaryFunctorImageFilter.</FONT></SPAN></DIV>
<DIV><SPAN class=997333219-21032003><FONT size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=997333219-21032003><FONT size=2>The bottom line is that 
CastImageFilter (or any subclass of UnaryFunctorImageFilter) can be used to cast 
between images of different pixel type and/or image dimensions.&nbsp; For 
dimension casting, the implementation is best suited for casting the image 
dimension up, i.e. taking a 2D image and making it a 3D image with a single 
slice.&nbsp; It can also be used to casting a degenerate image down in 
dimension, i.e. taking a 3D image with a single slice and making it a 2D 
image.&nbsp; If you use it cast a general 3D volume to a 2D image, it will take 
the first slice (barring a bug).</FONT></SPAN></DIV>
<DIV><SPAN class=997333219-21032003><FONT size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=997333219-21032003><FONT size=2>If want to control what slice 
is used when casting from a 3D image to a 2D image, then use the 
ExtractImageFilter.</FONT></SPAN></DIV>
<DIV><SPAN class=997333219-21032003></SPAN>&nbsp;</DIV>
<DIV class=Section1>
<P style="MARGIN: 0in 0in 0pt"><B><SPAN 
style="COLOR: navy; FONT-FAMILY: 'Comic Sans MS'">Jim Miller</SPAN></B> 
<BR><B><I><SPAN 
style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: Arial">_____________________________________</SPAN></I></B><BR><EM><SPAN 
style="FONT-SIZE: 7.5pt; COLOR: black; FONT-FAMILY: Arial">Visualization &amp; 
Computer Vision</SPAN></EM><I><SPAN 
style="FONT-SIZE: 7.5pt; COLOR: black; FONT-FAMILY: Arial"><BR><EM>GE 
Research</EM><BR><EM>Bldg. KW, Room C218B</EM><BR><EM>P.O. Box 8, Schenectady NY 
12301</EM><BR><BR></SPAN></I><EM><U><SPAN 
style="FONT-SIZE: 7.5pt; COLOR: blue"><A 
href="mailto:millerjv@research.ge.com">millerjv@research.ge.com</A></SPAN></U></EM></P>
<P style="MARGIN: 0in 0in 0pt"><EM><U><SPAN 
style="FONT-SIZE: 7.5pt; COLOR: blue">james.miller@research.ge.com</SPAN></U></EM><BR><I><SPAN 
style="FONT-SIZE: 7.5pt; COLOR: black; FONT-FAMILY: Arial">(518) 387-4005, Dial 
Comm: 8*833-4005, </SPAN></I><BR><I><SPAN 
style="FONT-SIZE: 7.5pt; COLOR: black; FONT-FAMILY: Arial">Cell: (518) 505-7065, 
Fax: (518) 387-6981</SPAN></I> </P>
<P class=MsoNormal>&nbsp;<?xml:namespace prefix = o ns = 
"urn:schemas-microsoft-com:office:office" /><o:p></o:p></P></DIV>
<DIV>&nbsp;</DIV></BODY></HTML>

------_=_NextPart_001_01C2EFE1.6BACEC10--