Help on Image in module SimpleITK.SimpleITK object:
class Image(__builtin__.object)
| The main Image class for SimpleITK.
|
| C++ includes: sitkImage.h
|
| Methods defined here:
|
| CopyInformation(self, *args, **kwargs)
| CopyInformation(Image self, Image srcImage)
|
| Copy common meta-data from an image to this one.
|
|
| Copies the Origin, Spacing, and Direction from the source image to
| this image.
|
| It is required for the source Image's dimension and size to match, this image's attributes, otherwise an
| exception will be generated.
|
| GetDepth(self)
| GetDepth(Image self) -> unsigned int
|
| GetDimension(self)
| GetDimension(Image self) -> unsigned int
|
| GetDirection(self)
| GetDirection(Image self) -> VectorDouble
|
| GetHeight(self)
| GetHeight(Image self) -> unsigned int
|
| GetITKBase(self, *args)
| GetITKBase(Image self) -> itk::DataObject
| GetITKBase(Image self) -> itk::DataObject const *
|
| GetMetaData(self, *args, **kwargs)
| GetMetaData(Image self, std::string const & key) -> std::string
|
| Get the value of a meta-data dictionary entry as a string.
|
|
| If the key is not in the dictionary then an exception is thrown.
|
| string types in the dictionary are returned as their native strings.
| Other types are printed to string before returning.
|
| GetMetaDataKeys(self)
| GetMetaDataKeys(Image self) -> VectorString
|
| get a vector of keys in from the meta-data dictionary
|
|
| Returns a vector of keys to the key/value entries in the image's meta-
| data dictionary. Iterate through with these keys to get the values.
|
| GetNumberOfComponentsPerPixel(self)
| GetNumberOfComponentsPerPixel(Image self) -> unsigned int
|
| Get the number of components for each pixel.
|
|
| For scalar images this methods returns 1. For vector images the number
| of components for each pixel is returned.
|
| GetOrigin(self)
| GetOrigin(Image self) -> VectorDouble
|
| GetPixel(self, *idx)
| Returns the value of a pixel.
|
| This method takes 2 parameters in 2D: the x and y index,
| and 3 parameters in 3D: the x, y and z index.
|
| GetPixelAsComplexFloat64(self, *args, **kwargs)
| GetPixelAsComplexFloat64(Image self, VectorUInt32 idx) -> std::complex< double >
|
| GetPixelID(self)
| GetPixelID(Image self) -> itk::simple::PixelIDValueEnum
|
| GetPixelIDTypeAsString(self)
| GetPixelIDTypeAsString(Image self) -> std::string
|
| GetPixelIDValue(self)
| GetPixelIDValue(Image self) -> itk::simple::PixelIDValueType
|
| GetSize(self)
| GetSize(Image self) -> VectorUInt32
|
| GetSpacing(self)
| GetSpacing(Image self) -> VectorDouble
|
| GetWidth(self)
| GetWidth(Image self) -> unsigned int
|
| HasMetaDataKey(self, *args, **kwargs)
| HasMetaDataKey(Image self, std::string const & key) -> bool
|
| Query the meta-data dictionary for the existence of a key.
|
| SetDirection(self, *args, **kwargs)
| SetDirection(Image self, VectorDouble direction)
|
| SetOrigin(self, *args, **kwargs)
| SetOrigin(Image self, VectorDouble origin)
|
| SetPixel(self, *args)
| Sets the value of a pixel.
|
| This method takes 3 parameters in 2D: the x and y index then the value,
| and 4 parameters in 3D: the x, y and z index then the value.
|
| SetPixelAsComplexFloat64(self, *args, **kwargs)
| SetPixelAsComplexFloat64(Image self, VectorUInt32 idx, std::complex< double > const v)
|
| SetSpacing(self, *args, **kwargs)
| SetSpacing(Image self, VectorDouble spacing)
|
| TransformContinuousIndexToPhysicalPoint(self, *args, **kwargs)
| TransformContinuousIndexToPhysicalPoint(Image self, VectorDouble index) -> VectorDouble
|
| Transform continuous index to physical point
|
| TransformIndexToPhysicalPoint(self, *args, **kwargs)
| TransformIndexToPhysicalPoint(Image self, VectorInt64 index) -> VectorDouble
|
| Transform index to physical point
|
| TransformPhysicalPointToContinuousIndex(self, *args, **kwargs)
| TransformPhysicalPointToContinuousIndex(Image self, VectorDouble point) -> VectorDouble
|
| Transform physical point to continuous index
|
| TransformPhysicalPointToIndex(self, *args, **kwargs)
| TransformPhysicalPointToIndex(Image self, VectorDouble point) -> VectorInt64
|
| Transform physical point to index
|
| __GetPixelAsComplexFloat32__(self, *args, **kwargs)
| __GetPixelAsComplexFloat32__(Image self, VectorUInt32 idx) -> std::complex< float >
|
| __GetPixelAsDouble__(self, *args, **kwargs)
| __GetPixelAsDouble__(Image self, VectorUInt32 idx) -> double
|
| __GetPixelAsFloat__(self, *args, **kwargs)
| __GetPixelAsFloat__(Image self, VectorUInt32 idx) -> float
|
| __GetPixelAsInt16__(self, *args, **kwargs)
| __GetPixelAsInt16__(Image self, VectorUInt32 idx) -> int16_t
|
| __GetPixelAsInt32__(self, *args, **kwargs)
| __GetPixelAsInt32__(Image self, VectorUInt32 idx) -> int32_t
|
| __GetPixelAsInt64__(self, *args, **kwargs)
| __GetPixelAsInt64__(Image self, VectorUInt32 idx) -> int64_t
|
| __GetPixelAsInt8__(self, *args, **kwargs)
| __GetPixelAsInt8__(Image self, VectorUInt32 idx) -> int8_t
|
| __GetPixelAsUInt16__(self, *args, **kwargs)
| __GetPixelAsUInt16__(Image self, VectorUInt32 idx) -> uint16_t
|
| __GetPixelAsUInt32__(self, *args, **kwargs)
| __GetPixelAsUInt32__(Image self, VectorUInt32 idx) -> uint32_t
|
| __GetPixelAsUInt64__(self, *args, **kwargs)
| __GetPixelAsUInt64__(Image self, VectorUInt32 idx) -> uint64_t
|
| __GetPixelAsUInt8__(self, *args, **kwargs)
| __GetPixelAsUInt8__(Image self, VectorUInt32 idx) -> uint8_t
|
| __GetPixelAsVectorFloat32__(self, *args, **kwargs)
| __GetPixelAsVectorFloat32__(Image self, VectorUInt32 idx) -> VectorFloat
|
| __GetPixelAsVectorFloat64__(self, *args, **kwargs)
| __GetPixelAsVectorFloat64__(Image self, VectorUInt32 idx) -> VectorDouble
|
| __GetPixelAsVectorInt16__(self, *args, **kwargs)
| __GetPixelAsVectorInt16__(Image self, VectorUInt32 idx) -> VectorInt16
|
| __GetPixelAsVectorInt32__(self, *args, **kwargs)
| __GetPixelAsVectorInt32__(Image self, VectorUInt32 idx) -> VectorInt32
|
| __GetPixelAsVectorInt64__(self, *args, **kwargs)
| __GetPixelAsVectorInt64__(Image self, VectorUInt32 idx) -> VectorInt64
|
| __GetPixelAsVectorInt8__(self, *args, **kwargs)
| __GetPixelAsVectorInt8__(Image self, VectorUInt32 idx) -> VectorInt8
|
| __GetPixelAsVectorUInt16__(self, *args, **kwargs)
| __GetPixelAsVectorUInt16__(Image self, VectorUInt32 idx) -> VectorUInt16
|
| __GetPixelAsVectorUInt32__(self, *args, **kwargs)
| __GetPixelAsVectorUInt32__(Image self, VectorUInt32 idx) -> VectorUInt32
|
| __GetPixelAsVectorUInt64__(self, *args, **kwargs)
| __GetPixelAsVectorUInt64__(Image self, VectorUInt32 idx) -> VectorUInt64
|
| __GetPixelAsVectorUInt8__(self, *args, **kwargs)
| __GetPixelAsVectorUInt8__(Image self, VectorUInt32 idx) -> VectorUInt8
|
| __SetPixelAsComplexFloat32__(self, *args, **kwargs)
| __SetPixelAsComplexFloat32__(Image self, VectorUInt32 idx, std::complex< float > const v)
|
| __SetPixelAsDouble__(self, *args, **kwargs)
| __SetPixelAsDouble__(Image self, VectorUInt32 idx, double v)
|
| __SetPixelAsFloat__(self, *args, **kwargs)
| __SetPixelAsFloat__(Image self, VectorUInt32 idx, float v)
|
| __SetPixelAsInt16__(self, *args, **kwargs)
| __SetPixelAsInt16__(Image self, VectorUInt32 idx, int16_t v)
|
| __SetPixelAsInt32__(self, *args, **kwargs)
| __SetPixelAsInt32__(Image self, VectorUInt32 idx, int32_t v)
|
| __SetPixelAsInt64__(self, *args, **kwargs)
| __SetPixelAsInt64__(Image self, VectorUInt32 idx, int64_t v)
|
| __SetPixelAsInt8__(self, *args, **kwargs)
| __SetPixelAsInt8__(Image self, VectorUInt32 idx, int8_t v)
|
| __SetPixelAsUInt16__(self, *args, **kwargs)
| __SetPixelAsUInt16__(Image self, VectorUInt32 idx, uint16_t v)
|
| __SetPixelAsUInt32__(self, *args, **kwargs)
| __SetPixelAsUInt32__(Image self, VectorUInt32 idx, uint32_t v)
|
| __SetPixelAsUInt64__(self, *args, **kwargs)
| __SetPixelAsUInt64__(Image self, VectorUInt32 idx, uint64_t v)
|
| __SetPixelAsUInt8__(self, *args, **kwargs)
| __SetPixelAsUInt8__(Image self, VectorUInt32 idx, uint8_t v)
|
| __SetPixelAsVectorFloat32__(self, *args, **kwargs)
| __SetPixelAsVectorFloat32__(Image self, VectorUInt32 idx, VectorFloat v)
|
| __SetPixelAsVectorFloat64__(self, *args, **kwargs)
| __SetPixelAsVectorFloat64__(Image self, VectorUInt32 idx, VectorDouble v)
|
| __SetPixelAsVectorInt16__(self, *args, **kwargs)
| __SetPixelAsVectorInt16__(Image self, VectorUInt32 idx, VectorInt16 v)
|
| __SetPixelAsVectorInt32__(self, *args, **kwargs)
| __SetPixelAsVectorInt32__(Image self, VectorUInt32 idx, VectorInt32 v)
|
| __SetPixelAsVectorInt64__(self, *args, **kwargs)
| __SetPixelAsVectorInt64__(Image self, VectorUInt32 idx, VectorInt64 v)
|
| __SetPixelAsVectorInt8__(self, *args, **kwargs)
| __SetPixelAsVectorInt8__(Image self, VectorUInt32 idx, VectorInt8 v)
|
| __SetPixelAsVectorUInt16__(self, *args, **kwargs)
| __SetPixelAsVectorUInt16__(Image self, VectorUInt32 idx, VectorUInt16 v)
|
| __SetPixelAsVectorUInt32__(self, *args, **kwargs)
| __SetPixelAsVectorUInt32__(Image self, VectorUInt32 idx, VectorUInt32 v)
|
| __SetPixelAsVectorUInt64__(self, *args, **kwargs)
| __SetPixelAsVectorUInt64__(Image self, VectorUInt32 idx, VectorUInt64 v)
|
| __SetPixelAsVectorUInt8__(self, *args, **kwargs)
| __SetPixelAsVectorUInt8__(Image self, VectorUInt32 idx, VectorUInt8 v)
|
| __abs__(self)
|
| __add__(self, other)
|
| __and__(self, other)
|
| __del__ lambda self
|
| __div__(self, other)
|
| __eq__(self, other)
|
| __floordiv__(self, other)
|
| __ge__(self, other)
|
| __getattr__ lambda self, name
|
| __getitem__(self, idx)
| Get an pixel value or a sliced image.
|
| This operator implements basic indexing where idx is
| arguments or a squence of integers the same dimension as
| the image. The result will be a pixel value from that
| index.
|
| Multi-dimension extended slice based indexing is also
| implemented. The return is a copy of a new image. The
| standard sliced based indices are supported including
| negative indices, to indicate location relative to the
| end, along with negative step sized to indicate reversing
| of direction.
|
| If the length of idx is less than the number of dimension
| of the image it will be padded with the defaults slice
| ":".
|
| A 2D image can be extracted from a 3D image by providing
| one argument being an integer instead of a slice.
|
| __gt__(self, other)
|
| __iadd__(self, other)
|
| __init__(self, *args)
| __init__(itk::simple::Image self) -> Image
| __init__(itk::simple::Image self, Image img) -> Image
| __init__(itk::simple::Image self, unsigned int width, unsigned int height, itk::simple::PixelIDValueEnum valueEnum) -> Image
| __init__(itk::simple::Image self, unsigned int width, unsigned int height, unsigned int depth, itk::simple::PixelIDValueEnum valueEnum) -> Image
| __init__(itk::simple::Image self, VectorUInt32 size, itk::simple::PixelIDValueEnum valueEnum, unsigned int numberOfComponents=0) -> Image
|
| __invert__(self)
|
| __iter__(self)
|
| __le__(self, other)
|
| __len__(self)
|
| __lt__(self, other)
|
| __mod__(self, other)
|
| __mul__(self, other)
|
| __ne__(self, other)
|
| __neg__(self)
|
| __or__(self, other)
|
| __pos__(self)
|
| __pow__(self, other)
|
| __radd__(self, other)
|
| __rand__(self, other)
|
| __rdiv__(self, other)
|
| __repr__ = _swig_repr(self)
|
| __rfloordiv__(self, other)
|
| __rmul__(self, other)
|
| __ror__(self, other)
|
| __rpow__(self, other)
|
| __rsub__(self, other)
|
| __rtruediv__(self, other)
|
| __rxor__(self, other)
|
| __setattr__ lambda self, name, value
|
| __setitem__(self, idx, value)
| Sets the pixel value at index idx to value.
|
| The dimension of idx should match that of the image.
|
| __str__(self)
| __str__(Image self) -> std::string
|
| __sub__(self, other)
|
| __truediv__(self, other)
|
| __xor__(self, other)
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __dict__
| dictionary for instance variables (if defined)
|
| __weakref__
| list of weak references to the object (if defined)
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| __swig_destroy__ = <built-in function delete_Image>
| delete_Image(Image self)
|
| __swig_getmethods__ = {}
|
| __swig_setmethods__ = {}