[Insight-users] MetaImage

Anouk Stein M.D. anouk_stein at earthlink . net
Thu, 12 Jun 2003 21:42:28 -0400


This is a multi-part message in MIME format.

------=_NextPart_000_0034_01C3312B.85460860
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Dear ITK users group,

I'm trying to use the info from a metaImage file to instantiate Image<> =
.  The element type in the header is listed as MET_SHORT which is a
MET_ValueEnumType which is also what MetaImage::ElementType() returns. =
How do I convert this to a typename so that=20

typedef itk::Image <TPixel, dimensions> ImageType recognizes it?

Also I would like to use the number of dimensions from the header but =
it's a protected member. What do you think I should do? Thankyou,

Anouk Stein

------=_NextPart_000_0034_01C3312B.85460860
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.2800.1170" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>
<DIV><FONT face=3DArial size=3D2>Dear ITK users group,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I'm trying to use the info from a =
metaImage file to=20
instantiate Image&lt;&gt; .&nbsp; The element type in the header is =
listed as=20
MET_SHORT which is a</FONT></DIV>
<DIV><FONT face=3DArial size=3D2><FONT size=3D2>
<P>MET_ValueEnumType which is also what MetaImage::ElementType() =
returns. How do=20
I convert this to a typename so that </P>
<P>typedef itk::Image &lt;TPixel, dimensions&gt; ImageType recognizes =
it?</P>
<P>Also I would like to use the number of dimensions from the header but =
it's a=20
protected member. What do you think I should do? Thankyou,</P>
<P>Anouk</FONT>&nbsp;Stein</FONT></P></DIV></FONT></DIV></BODY></HTML>

------=_NextPart_000_0034_01C3312B.85460860--