|
const ImageAttributes & | Attributes () const |
| Gets the image attributes.
|
|
void | BoundingBox (int &, int &, int &, int &) const |
| Get 2D bounding box of image foreground.
|
|
void | BoundingBox (int &, int &, int &, int &, int &, int &) const |
| Get 3D bounding box of image foreground.
|
|
void | BoundingBox (int &, int &, int &, int &, int &, int &, int &, int &) const |
| Get 3D+t bounding box of image foreground.
|
|
int | CenterOfForeground (Point ¢er) const |
|
int | CenterOfForeground (Point ¢er, double padding) const |
|
virtual void | Clear ()=0 |
| Clear image.
|
|
void | ClearBackgroundValue () |
| Clear background value.
|
|
void | ClearMask (bool=false) |
| Clear mask upon n-th call after n preceeding InitializeMask calls.
|
|
virtual BaseImage * | Copy () const |
| Create copy of this image.
|
|
virtual void | FlipXT (bool modify_origin=false)=0 |
| Flip x and t axis, always also swaps voxel size.
|
|
virtual void | FlipXY (bool modify_origin=false)=0 |
| Flip x and y axis, always also swaps voxel size.
|
|
virtual void | FlipXZ (bool modify_origin=false)=0 |
| Flip x and z axis, always also swaps voxel size.
|
|
virtual void | FlipYT (bool modify_origin=false)=0 |
| Flip y and t axis, always also swaps voxel size.
|
|
virtual void | FlipYZ (bool modify_origin=false)=0 |
| Flip y and z axis, always also swaps voxel size.
|
|
virtual void | FlipZT (bool modify_origin=false)=0 |
| Flip z and t axis, always also swaps voxel size.
|
|
ImageAttributes | ForegroundDomain (int i1, int j1, int k1, int i2, int j2, int k2, bool orthogonal=true) const |
|
ImageAttributes | ForegroundDomain (bool orthogonal=true) const |
|
ImageAttributes | ForegroundDomain (double padding, bool orthogonal=true) const |
|
VoxelType | Get (int) const |
| Get pixel value at voxel with given index.
|
|
VoxelType | Get (int, int, int=0, int=0) const |
| Get pixel value at voxel with given lattice coordinates.
|
|
const Matrix & | GetAffineMatrix () const |
|
virtual double | GetAsDouble (int) const |
| Function for pixel get access as double.
|
|
virtual double | GetAsDouble (int, int, int=0, int=0) const =0 |
| Function for pixel get access as double.
|
|
virtual void | GetAsVector (Vector &, int) const |
| Function for pixel get access as double.
|
|
virtual void | GetAsVector (Vector &, int, int, int=0, int=0) const =0 |
| Function for pixel get access as double.
|
|
virtual Vector | GetAsVector (int) const |
| Function for pixel get access as double.
|
|
virtual Vector | GetAsVector (int, int, int=0, int=0) const |
| Function for pixel get access as double.
|
|
double | GetBackgroundValueAsDouble () const |
| Get background value.
|
|
virtual void * | GetDataPointer (int=0)=0 |
| Function for pixel access via pointers.
|
|
virtual const void * | GetDataPointer (int=0) const =0 |
| Function for pixel access via pointers.
|
|
virtual void * | GetDataPointer (int, int, int=0, int=0)=0 |
| Function for pixel access via pointers.
|
|
virtual const void * | GetDataPointer (int, int, int=0, int=0) const =0 |
| Function for pixel access via pointers.
|
|
virtual int | GetDataType () const =0 |
| Function which returns pixel scalar type.
|
|
virtual double | GetDataTypeMax () const =0 |
| Function which returns the minimum value the pixel can hold without overflowing.
|
|
virtual double | GetDataTypeMin () const =0 |
| Function which returns the minimum value the pixel can hold without overflowing.
|
|
virtual int | GetDataTypeSize () const =0 |
| Function which returns size of pixel scalar type in bytes.
|
|
virtual void | GetFrame (BaseImage *&, int, int=-1) const =0 |
| Get time instance (i.e., frame) or channel of image.
|
|
const ImageAttributes & | GetImageAttributes () const |
|
const Matrix & | GetImageToWorldMatrix () const |
| Return transformation matrix for image to world coordinates.
|
|
BinaryImage * | GetMask (bool=false) |
| Get foreground mask (optionally, take over ownership)
|
|
const BinaryImage * | GetMask () const |
| Get foreground mask.
|
|
virtual void | GetMinMaxAsDouble (double &, double &) const |
| Minimum and maximum pixel values get accessor.
|
|
void | GetMinMaxAsDouble (double *, double *) const |
| Minimum and maximum pixel values get accessor.
|
|
int | GetNumberOfVoxels () const |
|
void | GetOrientation (double *, double *, double *=NULL) const |
| Get image x- and y-axis and z-axis.
|
|
Point | GetOrigin () const |
| Image origin get access.
|
|
void | GetOrigin (double &, double &, double &) const |
| Image origin get access.
|
|
void | GetOrigin (double &, double &, double &, double &) const |
| Image origin get access.
|
|
void | GetPixelSize (double &, double &) const |
| Voxel dimensions get access.
|
|
void | GetPixelSize (double &, double &, double &) const |
| Voxel dimensions get access.
|
|
void | GetPixelSize (double &, double &, double &, double &) const |
| Voxel dimensions get access.
|
|
void | GetPixelSize (double *, double *, double *) const |
| Voxel dimensions get access.
|
|
void | GetPixelSize (double *, double *, double *, double *) const |
| Voxel dimensions get access.
|
|
virtual void | GetRegion (BaseImage *&, int, int) const =0 |
| Get image consisting of specified 2D slice.
|
|
virtual void | GetRegion (BaseImage *&, int, int, int, int, int, int) const =0 |
| Get image consisting of specified 3D subregion.
|
|
virtual void | GetRegion (BaseImage *&, int, int, int, int, int, int, int, int) const =0 |
| Get image consisting of specified 4D subregion.
|
|
void * | GetScalarPointer (int=0, int=0, int=0, int=0) |
|
const void * | GetScalarPointer (int=0, int=0, int=0, int=0) const |
|
int | GetScalarType () const |
|
double | GetScalarTypeMax () const |
|
double | GetScalarTypeMin () const |
|
int | GetScalarTypeSize () const |
|
int | GetT () const |
| Returns the number of voxels in the t-direction.
|
|
double | GetTOrigin () const |
| Get temporal origin.
|
|
double | GetTSize () const |
| Returns the size of a voxel in the t-direction.
|
|
const Matrix & | GetWorldToImageMatrix () const |
| Return transformation matrix for world to image coordinates.
|
|
int | GetX () const |
| Returns the number of voxels in the x-direction.
|
|
double | GetXSize () const |
| Returns the size of a voxel in the x-direction.
|
|
int | GetY () const |
| Returns the number of voxels in the y-direction.
|
|
double | GetYSize () const |
| Returns the size of a voxel in the y-direction.
|
|
int | GetZ () const |
| Returns the number of voxels in the z-direction.
|
|
double | GetZSize () const |
| Returns the size of a voxel in the z-direction.
|
|
bool | HasBackground () const |
| Whether any voxel is within background.
|
|
bool | HasBackgroundValue () const |
| Whether a background value has been set.
|
|
bool | HasMask () const |
|
bool | HasSpatialAttributesOf (const BaseImage *) const |
| Checks if this image shares the same spatial attributes with another image.
|
|
double | ImageToTime (double) const |
| Image to time coordinate conversion.
|
|
void | ImageToWorld (double &, double &) const |
| Image to world coordinate conversion with two doubles.
|
|
void | ImageToWorld (double &, double &, double &) const |
| Image to world coordinate conversion with three doubles.
|
|
void | ImageToWorld (Point &) const |
| Image to world coordinate conversion with a given point.
|
|
void | ImageToWorld (Vector3 &) const |
| Convert vector w.r.t. image axes to vector w.r.t. world axes.
|
|
void | ImageToWorld (WorldCoordsImage &i2w, bool _3D=true) const |
|
void | ImageToWorld (double *i2w, bool _3D=true) const |
|
void | ImageToWorld (PointSet &) const |
| Adds world coordinates of each voxel to given point set.
|
|
void | IndexToVoxel (int, int &, int &) const |
| Function to convert index to pixel coordinates.
|
|
void | IndexToVoxel (int, int &, int &, int &) const |
| Function to convert index to pixel coordinates.
|
|
void | IndexToVoxel (int, int &, int &, int &, int &) const |
| Function to convert index to pixel coordinates.
|
|
void | IndexToWorld (int, double &, double &) const |
| Get world coordinates (in mm) of pixl.
|
|
void | IndexToWorld (int, double &, double &, double &) const |
| Get world coordinates (in mm) of pixel.
|
|
void | IndexToWorld (int, Point &) const |
| Get world coordinates (in mm) of pixel.
|
|
Point | IndexToWorld (int) const |
| Get world coordinates (in mm) of pixel.
|
|
virtual void | Initialize (const ImageAttributes &, int=-1)=0 |
| Initialize image.
|
|
void | InitializeMask (int t=-1, bool=false) |
| Initialize mask if not done yet or none is set.
|
|
bool | IsBackground (int) const |
| Whether voxel is within background without index-out-of-bounds check.
|
|
bool | IsBackground (int, int, int=0, int=0) const |
| Whether voxel is within background without index-out-of-bounds check.
|
|
bool | IsBoundary (int) const |
| Whether voxel index is at boundary of finite image domain.
|
|
bool | IsBoundary (int, int) const |
| Whether voxel indices are at boundary of finite 2D image domain.
|
|
bool | IsBoundary (int, int, int) const |
| Whether voxel indices are at boundary of finite 3D image domain.
|
|
bool | IsBoundary (int, int, int, int) const |
| Whether voxel indices are at boundary of finite 4D image domain.
|
|
bool | IsBoundingBoxInsideForeground (int, int, int, int) const |
| Whether all voxels within a 2D bounding region are inside foreground region.
|
|
bool | IsBoundingBoxInsideForeground (int, int, int, int, int, int) const |
| Whether all voxels within a 3D bounding region are inside foreground region.
|
|
bool | IsBoundingBoxInsideForeground (int, int, int, int, int, int, int, int) const |
| Whether all voxels within a 4D bounding region are inside foreground region.
|
|
bool | IsEmpty () const |
| Whether image is uninitialized.
|
|
bool | IsForeground (int) const |
| Whether voxel is within foreground without index-out-of-bounds check.
|
|
bool | IsForeground (int, int, int=0, int=0) const |
| Whether voxel is within foreground without index-out-of-bounds check.
|
|
bool | IsInFOV (double, double, double) |
| Returns true if point is within the field of view of image.
|
|
bool | IsInside (int) const |
| Whether voxel index is within finite image domain.
|
|
bool | IsInside (int, int) const |
| Whether voxel indices are within finite 2D image domain.
|
|
bool | IsInside (int, int, int) const |
| Whether voxel indices are within finite 3D image domain.
|
|
bool | IsInside (int, int, int, int) const |
| Whether voxel indices are within finite 4D image domain.
|
|
bool | IsInsideForeground (int) const |
| Whether voxel is index is within finite image domain and part of foreground region.
|
|
bool | IsInsideForeground (int, int, int=0, int=0) const |
| Whether voxel indices are within finite image domain and part of foreground region.
|
|
bool | IsNextToBackground (int) const |
| Whether at least one neighboring voxel is outside the finite foreground region.
|
|
bool | IsNextToBackground (int, int, int=0, int=0) const |
| Whether at least one neighboring voxel is outside the finite foreground region.
|
|
bool | IsNextToForeground (int) const |
| Whether at least one neighboring voxel is inside the finite foreground region.
|
|
bool | IsNextToForeground (int, int, int=0, int=0) const |
| Whether at least one neighboring voxel is inside the finite foreground region.
|
|
bool | IsOutside (int) const |
| Whether voxel is index is outside finite image domain.
|
|
bool | IsOutside (int, int) const |
| Whether voxel indices are outside finite 4D image domain.
|
|
bool | IsOutside (int, int, int) const |
| Whether voxel indices are outside finite 4D image domain.
|
|
bool | IsOutside (int, int, int, int) const |
| Whether voxel indices are outside finite 4D image domain.
|
|
bool | IsOutsideForeground (int) const |
| Whether voxel is index is outside finite image domain or part of background region.
|
|
bool | IsOutsideForeground (int, int, int=0, int=0) const |
| Whether voxel indices are outside finite image domain or part of background region.
|
|
virtual int | N () const |
| Returns the number of vector components (i.e., 1 for scalar images)
|
|
int | NumberOfSpatialVoxels () const |
| Returns the total number of spatial voxels.
|
|
int | NumberOfVoxels () const |
| Returns the total number of voxels.
|
|
BaseImage & | operator= (const BaseImage &) |
| Assignment operator.
|
|
void | Orientation (OrientationCode &, OrientationCode &, OrientationCode &) const |
| Get orientation of axis relative to patient.
|
|
bool | OwnsMask () const |
|
virtual void | Print (Indent=0) const |
| Print image information.
|
|
void | PutAffineMatrix (const Matrix &, bool=false) |
|
virtual void | PutAsDouble (int, double) |
| Function for pixel put access.
|
|
virtual void | PutAsDouble (int, int, double) |
| Function for pixel put access.
|
|
virtual void | PutAsDouble (int, int, int, double) |
| Function for pixel put access.
|
|
virtual void | PutAsDouble (int, int, int, int, double)=0 |
| Function for pixel put access.
|
|
virtual void | PutAsVector (int, const Vector &) |
| Function for pixel put access.
|
|
virtual void | PutAsVector (int, int, const Vector &) |
| Function for pixel put access.
|
|
virtual void | PutAsVector (int, int, int, const Vector &) |
| Function for pixel put access.
|
|
virtual void | PutAsVector (int, int, int, int, const Vector &)=0 |
| Function for pixel put access.
|
|
void | PutBackgroundValueAsDouble (double) |
| Put background value.
|
|
virtual void | PutBackgroundValueAsDouble (double, bool) |
| Put background value.
|
|
void | PutMask (BinaryImage *, bool=false) |
| Set foreground mask.
|
|
virtual void | PutMinMaxAsDouble (double, double) |
| Minimum and maximum pixel values put accessor.
|
|
void | PutOrientation (double *, double *, double *=NULL) |
| Put image x- and y-axis and z-axis.
|
|
void | PutOrigin (const Point &) |
| Image origin put access.
|
|
void | PutOrigin (double, double, double) |
| Image origin put access.
|
|
void | PutOrigin (double, double, double, double) |
| Image origin put access.
|
|
void | PutPixelSize (double, double, double) |
| Voxel dimensions put access.
|
|
void | PutPixelSize (double, double, double, double) |
| Voxel dimensions put access.
|
|
void | PutTOrigin (double) |
| Put temporal origin.
|
|
void | PutTSize (double) |
| Set temporal voxel size, i.e., to zero for vector field and non-zero for temporal sequence.
|
|
virtual void | Read (const char *)=0 |
| Read image from file.
|
|
virtual void | ReflectT (bool modify_axes=false)=0 |
| Reflect image along t.
|
|
virtual void | ReflectX (bool modify_axes=false)=0 |
| Reflect image along x.
|
|
virtual void | ReflectY (bool modify_axes=false)=0 |
| Reflect image along y.
|
|
virtual void | ReflectZ (bool modify_axes=false)=0 |
| Reflect image along z.
|
|
void | ResetAffineMatrix () |
|
void | ResetBackgroundValueAsDouble (double) |
|
virtual void | SwapXT (bool modify_axes=true)=0 |
| Swap x and t axis.
|
|
virtual void | SwapXY (bool modify_axes=true)=0 |
| Swap x and y axis.
|
|
virtual void | SwapXZ (bool modify_axes=true)=0 |
| Swap x and z axis.
|
|
virtual void | SwapYT (bool modify_axes=true)=0 |
| Swap y and t axis.
|
|
virtual void | SwapYZ (bool modify_axes=true)=0 |
| Swap y and z axis.
|
|
virtual void | SwapZT (bool modify_axes=true)=0 |
| Swap z and t axis.
|
|
int | T () const |
| Returns the number of voxels in the t-direction.
|
|
double | TimeToImage (double) const |
| Time to image coordinate conversion.
|
|
double | TSize () const |
| Returns the size of a voxel in the t-direction.
|
|
int | VoxelToIndex (int, int, int=0, int=0) const |
| Function to convert pixel to index.
|
|
void | WorldToImage (double &, double &) const |
| World to image coordinate conversion with two doubles.
|
|
void | WorldToImage (double &, double &, double &) const |
| World to image coordinate conversion with three doubles.
|
|
void | WorldToImage (Point &) const |
| World to image coordinate conversion with a given point.
|
|
void | WorldToImage (Vector3 &) const |
| Convert vector w.r.t. world axes to vector w.r.t. image axes.
|
|
virtual void | Write (const char *) const =0 |
| Write image to file.
|
|
int | X () const |
| Returns the number of voxels in the x-direction.
|
|
double | XSize () const |
| Returns the size of a voxel in the x-direction.
|
|
int | Y () const |
| Returns the number of voxels in the y-direction.
|
|
double | YSize () const |
| Returns the size of a voxel in the y-direction.
|
|
int | Z () const |
| Returns the number of voxels in the z-direction.
|
|
double | ZSize () const |
| Returns the size of a voxel in the z-direction.
|
|
virtual | ~BaseImage () |
| Destructor.
|
|
virtual const char * | NameOfClass () const =0 |
| Get name of class, which this object is an instance of.
|
|
virtual ParameterList | Parameter () const |
| Get parameter name/value pairs.
|
|
bool | Parameter (const ParameterList &) |
| Set parameters from name/value pairs.
|
|
virtual bool | Set (const char *name, const char *value) |
|
virtual | ~Object () |
| Destructor.
|
|