#include <ImageSequence.h>
Public Types | |
typedef TChannel | ChannelType |
Type of a channel. | |
typedef TChannel::ImageType | ImageType |
Type of channel image. | |
Public Member Functions | |
void | Add (ImageType *image, bool manage=false, bool copy=false) |
ImageAttributes | Attributes () const |
ChannelType & | Channel (int=0) |
Get image channel. | |
const ChannelType & | Channel (int=0) const |
Get image channel. | |
void | Clear () |
Clear frame. | |
void | GetPixelSize (double *, double *, double *) const |
Get voxel size. | |
void | Image (int idx, ImageType *image, bool manage=false, bool copy=false) |
ImageType * | Image (int=0) const |
Get channel image. | |
ImageFrame () | |
Default constructor. | |
ImageFrame (const ImageFrame &) | |
Copy constructor. | |
void | ImageToWorld (double &, double &, double &) const |
Convert voxel to world coordinate. | |
void | NumberOfChannels (int) |
int | NumberOfChannels () const |
Get number of image channels. | |
int | NumberOfVoxels () const |
Get number of voxels per channel. | |
ImageFrame & | operator= (const ImageFrame &) |
Assignment operator. | |
double | Time () const |
Get time of temporal frame. | |
void | WorldToImage (double &, double &, double &) const |
Convert world to voxel coordinate. | |
int | X () const |
Get number of voxels in x dimension for each channel. | |
double | XSize () const |
Get size of each voxel in x dimension. | |
int | Y () const |
Get number of voxels in y dimension for each channel. | |
double | YSize () const |
Get size of each voxel in y dimension. | |
int | Z () const |
Get number of voxels in z dimension for each channel. | |
double | ZSize () const |
Get size of each voxel in z dimension. | |
virtual | ~ImageFrame () |
Destructor. | |
Public Member Functions inherited from mirtk::Object | |
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. | |
Additional Inherited Members | |
Static Public Member Functions inherited from mirtk::Object | |
static const char * | NameOfType () |
Get name of this class type. | |
Protected Member Functions inherited from mirtk::Object | |
template<typename... Args> | |
void | Throw (ErrorType err, const char *func, Args... args) const |
Static Protected Member Functions inherited from mirtk::Object | |
template<typename... Args> | |
static void | ThrowStatic (ErrorType err, const char *cls, const char *func, Args... args) |
Auxiliary type to store channels of a single frame of a temporal image sequence
All channels of a given frame have the same spatial image attributes. Moreover, the temporal origin and voxel size must be identical for all channels as well. The size of the channel images in the time domain is always one.
Definition at line 148 of file ImageSequence.h.
|
inline |
Add image as channel to this frame
[in] | image | Channel image. If the image has a fourth dimension, a copy of each 2D/3D sub-image is added as separate channel. |
[in] | copy | Whether to copy image even if it is 2D/3D only. Otherwise, the given image is associated with the channel which also takes over its ownership, i.e., destructing it when the channel object itself is destructed. |
[in] | manage | Whether to manage memory of input image if not copied. |
Definition at line 184 of file ImageSequence.hh.
|
inline |
Get attributes of this frame
The spatial attributes of the frame correspond to those of its channels which are the same for all channels.
The temporal attributes are:
Definition at line 266 of file ImageSequence.hh.
|
inline |
Set channel image
[in] | idx | Index of channel. |
[in] | image | Image to associate with specified channel. |
[in] | manage | Whether to manage memory of input image. |
[in] | copy | Whether to copy image if manage is false . |
Definition at line 248 of file ImageSequence.hh.
|
inline |
Set number of image channels
Newly added channels are initialized using the default constructor of the ChannelType, i.e., the associated image pointers set to NULL. Existing channels within the specified range of channels are not changed.
Definition at line 220 of file ImageSequence.hh.