[Insight-users] [Re: Creating a blank Image / instantiating classes in python]

Rick Giuly rgiuly at gmail.com
Fri Feb 27 13:08:06 EST 2009


Please disregard this. I just realized that these are actual python 
classes and instantiate as all python classes do.

-Rick

-------- Original Message --------
Subject: Creating a blank Image / instantiating classes in python
Date: Fri, 27 Feb 2009 10:00:23 -0800
From: Rick Giuly <rgiuly at gmail.com>
To: insight-users at itk.org


Hello All,

I'm trying to create a blank itk.Image in python (analogous to page 36
in the ITK Software Guide).

Types involved are:
ImageType (I'm using itk.Image)
IndexType (I'm using itk.ImageIndex)
SizeType (I'm using itk.Size)
RegionType (I'm using itk.ImageRegion)

For the classes other than itk.Image I don't know how to create an
instance: as far as I can tell, the classes itk.ImageIndex, itk.Size,
and itk.ImageRegion do not have New() functions.

So my question is how do you instantiate classes that don't have the
New() function?


Any help is appreciated.

-Rick



More information about the Insight-users mailing list