#include <ImageSequence.h>
Public Types | |
typedef TFrame::ChannelType | ChannelType |
Type of channels. | |
typedef TFrame | FrameType |
Type of frames. | |
typedef TFrame::ImageType | ImageType |
Type of images. | |
Public Member Functions | |
void | Add (ImageType *image, bool manage=false, bool copy=false) |
ImageAttributes | Attributes () const |
ChannelType & | Channel (int idx) |
const ChannelType & | Channel (int idx) const |
ChannelType & | Channel (int f, int c) |
const ChannelType & | Channel (int f, int c) const |
void | Clear () |
Clear image sequence. | |
FrameType & | Frame (int) |
Get frame of sequence. | |
const FrameType & | Frame (int) const |
Get frame of sequence. | |
void | GetPixelSize (double *, double *, double *) const |
Get voxel size. | |
void | Image (int f, int c, ImageType *image, bool manage, bool copy) |
void | Image (int f, int c, const ImageType *image) |
ImageType * | Image (int idx) const |
ImageType * | Image (int f, int c) const |
ImageSequence () | |
Constructor. | |
ImageSequence (const ImageSequence &) | |
Copy constructor. | |
void | ImageToWorld (double &, double &, double &) const |
Convert voxel to world coordinate. | |
void | NumberOfChannels (int) const |
Set number of channels per frame. | |
int | NumberOfChannels () const |
Get number of channels per frame. | |
void | NumberOfFrames (int) const |
Set number of frames. | |
int | NumberOfFrames () const |
Get number of frames. | |
int | NumberOfImages () const |
Get number of frames times number of channels. | |
int | NumberOfVoxels () const |
Get number of voxels per channel. | |
ImageSequence & | operator= (const ImageSequence &) |
Assignment operator. | |
int | T () const |
Get number of frames. | |
double | Time (int) 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. | |
~ImageSequence () | |
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 ordered sequence of temporal (multi-channel) image frames
Definition at line 285 of file ImageSequence.h.
|
inline |
Add channels or frames to image sequence
[in] | image | Image to add to this sequence. If the image has a fouth dimension, a copy of each 2D/3D sub-image is added. |
[in] | manage | Whether to manage memory of input image if not copied. |
[in] | copy | Whether to copy image if manage is false even though it has no fourth dimension. |
Definition at line 408 of file ImageSequence.hh.
|
inline |
Get attributes of this image sequence
The spatial attributes of the sequence correspond to those of its frames which are the same for all frames. The temporal attributes are:
Definition at line 569 of file ImageSequence.hh.
|
inline |
Get channel
[in] | idx | Index of channel across all frames. |
Definition at line 510 of file ImageSequence.hh.
|
inline |
Get channel
[in] | idx | Index of channel across all frames. |
Definition at line 518 of file ImageSequence.hh.
|
inline |
Get channel
[in] | f | Index of frame. |
[in] | c | Index of channel. |
Definition at line 526 of file ImageSequence.hh.
|
inline |
Get channel
[in] | f | Index of frame. |
[in] | c | Index of channel. |
Definition at line 533 of file ImageSequence.hh.
void mirtk::ImageSequence< TFrame >::Image | ( | int | f, |
int | c, | ||
ImageType * | image, | ||
bool | manage, | ||
bool | copy | ||
) |
Set image associated with channel
[in] | f | Index of frame. |
[in] | c | Index of channel. |
[in] | image | Image which is associated with the channel. |
[in] | manage | Whether to manage the memory of the image. |
[in] | copy | Whether to copy the image if manage is false . |
void mirtk::ImageSequence< TFrame >::Image | ( | int | f, |
int | c, | ||
const ImageType * | image | ||
) |
Set image associated with channel to copy of given image
[in] | f | Index of frame. |
[in] | c | Index of channel. |
[in] | image | Image of which a copy is associated with the channel. |
|
inline |
Get image associated with channel
[in] | idx | Index of channel across all frames. |
Definition at line 551 of file ImageSequence.hh.
|
inline |
Get image associated with channel
[in] | f | Index of frame. |
[in] | c | Index of channel. |
Definition at line 558 of file ImageSequence.hh.