MDSTk Libraries
1.1.0
Medical Data Segmentation Toolkit
|
Class ecapsulating a density slice. More...
#include <mdsSlice.h>
Public Types | |
enum | { CLASS_IMAGE } |
Templates that require members of the CImage class may use this enum to check the existence. More... | |
enum | { DEFAULT_MARGIN = 16 } |
Default size of the slice margin. More... | |
enum | { CLASS_SERIALIZABLE } |
Templates that require members of the CSerializable class may use this enum to check the existence. More... | |
enum | { VERSION = 0x33 } |
Current serialization interface version. More... | |
enum | { MAX_NAME_LENGTH = 32 } |
Maximal length of a data entity name in characters. More... | |
enum | { CLASS_OBJECT } |
Templates that require members of the CObject class can use this enum to check the existence. More... | |
enum | { HEAP_OBJECT = 0x70616568 } |
Signature used to recognize objects on the heap. More... | |
typedef CImageBase< CImage< T, Allocator > > | tBase |
Base class. | |
typedef Allocator< T > | tDataStorage |
Image data storage type. | |
typedef CImage< T, Allocator > | tImage |
Image type. | |
typedef T | tPixel |
Image pixel type. | |
typedef CRect< CImage > | tRect |
View of the image (i.e. rectangle). | |
typedef CImageRow< CImage > | tRow |
Image row (the x coordinate is varying while the y is fixed). | |
Public Member Functions | |
CImage & | abs () |
Absolute value of all pixels. | |
T & | at (tSize x, tSize y) |
Returns reference to the pixel [x][y]. | |
const T & | at (tSize x, tSize y) const |
T & | at (tSize i) |
Returns the subscripted pixel. | |
const T & | at (tSize i) const |
bool | checkPosition (tSize x, tSize y) const |
Checks the pixel position. | |
T | color2Pixel (CColor color) const |
Converts a specified color to the image pixel format and range. | |
template<typename Derived > | |
CImage & | convert (const CImageBase< Derived > &Image) |
Conversion of images of different types. | |
template<typename Derived > | |
CImage< T, A > & | convert (const CImageBase< Derived > &Image) |
CSlice & | create (tSize XSize, tSize YSize, tSize Margin=DEFAULT_MARGIN) |
Creates a new slice. | |
CSlice & | create (const CSlice &Slice) |
Creates a new slice. | |
CSlice & | create (const CSlice &Slice, EMakeRef) |
Creates a new slice. | |
CImage & | create (const CSize2i &Size, tSize Margin=0) |
Resizes the image data. | |
CImage & | create (const CImage &Image, tSize x, tSize y, tSize XSize, tSize YSize) |
Creates subimage of a given image. | |
CImage & | create (const CImage &Image, tSize x, tSize y, tSize XSize, tSize YSize, EMakeRef) |
Creates subimage of a given image. | |
CImage & | create (const tRect &Image) |
Creates copy of a given image rectangle. | |
CImage & | create (const tRect &Image, EMakeRef) |
Creates reference to a given image rectangle. | |
CImage & | create (const CImage &Image) |
Creates copy of an image. | |
CImage & | create (const CImage &Image, EMakeRef) |
Creates reference to an image. | |
CSlice () | |
Default constructor. | |
CSlice (tSize XSize, tSize YSize, tSize Margin=DEFAULT_MARGIN) | |
Constructor. | |
CSlice (const CSlice &Slice) | |
Copy constructor. | |
CSlice (const CSlice &Slice, EMakeRef) | |
Copy constructor. | |
CSlice (const CDImage &Image) | |
Copy constructor. | |
CSlice (const CDImage &Image, EMakeRef) | |
Copy constructor. | |
CImage & | cut (const T &Lower, const T &Upper) |
Cuts range of pixel values. | |
template<class S > | |
void | deserialize (mds::mod::CChannelSerializer< S > &Reader) |
Deserializes all class members. | |
template<class S > | |
void | deserialize (mds::mod::CChannelSerializer< S > &Reader) |
Deserializes all class members. | |
CImage & | fill (const T &c) |
Fills the image using a given pixel value. | |
CImage & | fillEntire (const T &c) |
Fills the entire image including its margin using a given pixel value. | |
CImage & | fillMargin (const T &c) |
Pads the image margin with constant value. | |
template<class Function > | |
Function | forEach (Function Func) |
Calls function object for every image pixel. | |
template<class Function > | |
Function | forEach (Function Func) const |
Calls function object for every image pixel. | |
template<class Function > | |
Function | forEach (Function Func) |
Calls a function object for every image pixel. | |
template<class Function > | |
Function | forEach (Function Func) const |
Calls a function object for every image pixel. | |
double | getDX () const |
Returns the real pixel size in x-axis. | |
double | getDY () const |
Returns the real pixel size in y-axis. | |
tSize | getIdx (tSize x, tSize y) const |
Calculates index of a specified pixel. | |
tImage & | getImpl () |
Returns reference to the image implementation. | |
const tImage & | getImpl () const |
int | getIndex () const |
Gets the slice position index. | |
tSize | getMargin () const |
Returns the image margin size in pixels. | |
EPlane | getOrientation () const |
Returns orientation of the slice plane. | |
double | getPosition () const |
Returns the slice position. | |
T * | getPtr () |
Returns pointer to the image data. | |
const T * | getPtr () const |
T * | getPtr (tSize x, tSize y) |
Returns pointer to the given pixel. | |
const T * | getPtr (tSize x, tSize y) const |
int | getReferencesCount () const |
Returns the number of references. | |
T * | getRowPtr (tSize y) |
Returns pointer to the first element of the image row. | |
const T * | getRowPtr (tSize y) const |
CSize2i & | getSize () |
Returns size of the rectangle. | |
const CSize2i & | getSize () const |
double | getThickness () const |
Returns the slice thickness. | |
tSize | getXOffset () const |
Returns column offset in x-axis. | |
tSize | getXSize () const |
Returns the image size (dimensions). | |
tSize | getYOffset () const |
Returns row offset in y-axis. | |
tSize | getYSize () const |
tSize | height () const |
T | interpolate (const CPoint3D &Point) const |
Bilinear subpixel value interpolation. | |
bool | isOnHeap () const |
Returns true if the object is allocated on the heap. | |
CImage & | limit (const T &Lower, const T &Upper) |
Clips a range of pixel values. | |
MDS_ENTITY_COMPRESSION (mds::mod::CC_RAW) | |
Standard method getEntityCompression(). | |
MDS_ENTITY_NAME ("Slice") | |
Standard method getEntityName(). | |
MDS_SHAREDPTR (CSlice) | |
Smart pointer type. | |
MDS_SHAREDPTR (CImage) | |
Declare smart pointer type tSmartPtr. | |
CImage & | mirrorMargin () |
Pads the image margin using a simple mirroring. | |
T & | operator() (tSize x, tSize y) |
Returns reference to the subscripted pixel [x][y]. | |
const T & | operator() (tSize x, tSize y) const |
T & | operator() (tSize i) |
Returns the subscripted pixel. | |
const T & | operator() (tSize i) const |
template<class Derived > | |
CImage & | operator*= (const CImageBase< Derived > &Image) |
Pixel wise product. | |
template<typename U > | |
CImage & | operator*= (const CScalar< U > &c) |
Multiplies all pixels by scalar. | |
template<class Derived > | |
CImage< T, A > & | operator*= (const CImageBase< Derived > &Image) |
template<typename U > | |
CImage< T, A > & | operator*= (const CScalar< U > &c) |
template<class Derived > | |
CImage & | operator+= (const CImageBase< Derived > &Image) |
Pixel wise addition. | |
template<class U > | |
CImage & | operator+= (const CScalar< U > &c) |
Adds scalar to all pixels. | |
template<class Derived > | |
CImage< T, A > & | operator+= (const CImageBase< Derived > &Image) |
template<typename U > | |
CImage< T, A > & | operator+= (const CScalar< U > &c) |
template<class Derived > | |
CImage & | operator-= (const CImageBase< Derived > &Image) |
Pixel wise subtraction. | |
template<typename U > | |
CImage & | operator-= (const CScalar< U > &c) |
Subtracts scalar from all pixels. | |
template<class Derived > | |
CImage< T, A > & | operator-= (const CImageBase< Derived > &Image) |
template<typename U > | |
CImage< T, A > & | operator-= (const CScalar< U > &c) |
template<class Derived > | |
CImage & | operator/= (const CImageBase< Derived > &Image) |
Pixel wise division. | |
template<typename U > | |
CImage & | operator/= (const CScalar< U > &c) |
Divides all pixels by scalar. | |
template<class Derived > | |
CImage< T, A > & | operator/= (const CImageBase< Derived > &Image) |
template<typename U > | |
CImage< T, A > & | operator/= (const CScalar< U > &c) |
bool | operator< (const CSlice &Slice) |
Operator smaller for comparision of positions of two slices. | |
CSlice & | operator= (const CSlice &Slice) |
Image assignment operator. | |
template<class Function > | |
Function | pforEach (Function Func) |
Calls function object for every image pixel. | |
template<class Function > | |
Function | pforEach (Function Func) const |
Calls function object for every image pixel. | |
template<class Function > | |
Function | pforEach (Function Func) |
Calls a function object for every image pixel. | |
template<class Function > | |
Function | pforEach (Function Func) const |
Calls a function object for every image pixel. | |
tRect | rect (const CPoint2i &Position, const CSize2i &Size) |
Returns a specified sub-image (i.e. rectangle). | |
const tRect | rect (const CPoint2i &Position, const CSize2i &Size) const |
tRect | rect (const CRange &XRange, const CRange &YRange) |
Returns a specified sub-image (i.e. rectangle). | |
const tRect | rect (const CRange &XRange, const CRange &YRange) const |
CImage & | replace (const T &Value, const T &NewValue) |
Replaces all pixels of a given value by a specified value. | |
tRow | row (tSize y) |
Returns a specified row. | |
const tRow | row (tSize y) const |
template<class S > | |
void | serialize (mds::mod::CChannelSerializer< S > &Writer) |
Serializes all class members. | |
template<class S > | |
void | serialize (mds::mod::CChannelSerializer< S > &Writer) |
Serializes all class members. | |
tImage & | set (tSize x, tSize y, const tPixel &Value) |
Sets the pixel at the position [x][y][z]. | |
tImage & | set (tSize i, const tPixel &Value) |
Sets the subscripted pixel. | |
CImage & | set (tSize x, tSize y, const T &Value) |
Sets the pixel at the position [x][y]. | |
CImage & | set (tSize i, const T &Value) |
Sets the subscripted voxel. | |
CSlice & | setIndex (int iIndex) |
Sets the position index. | |
CSlice & | setOrientation (EPlane ePlane) |
Sets the slice plane orientation. | |
CSlice & | setPixel (double dDX, double dDY) |
Sets the pixel size. | |
CSlice & | setPosition (double dPosition) |
Sets the slice position. | |
CSlice & | setThickness (double dThickness) |
Sets the slice thickness. | |
CImage & | subSample (const CImage &Image, tSize k=2, tSize l=2) |
Subsamples a given image and stores the result. | |
tSize | width () const |
Returns the image size (dimensions). | |
~CSlice () | |
Destructor. | |
Static Public Member Functions | |
static int | getBlockSize () |
Default block size. | |
static int | getCompression () |
Default compression method. | |
static const char * | getName () |
Default class name. | |
static void * | operator new (std::size_t Size) |
Allocates a new object on the heap. | |
Protected Member Functions | |
void | addReference () const |
Increase the reference counter. | |
bool | delReference () const |
Decrease the reference counter. | |
Protected Attributes | |
tDataStorage | m_DataStorage |
Image data. | |
double | m_dDX |
Real pixel size. | |
double | m_dDY |
double | m_dPosition |
Slice position. | |
double | m_dThickness |
Slice thickness. | |
EPlane | m_eOrientation |
Slice plane orientation. | |
int | m_iHeapObject |
Flag initialized if the object is on the heap. | |
int | m_iIndex |
Position index. | |
int | m_iReferences |
The number of references to the object. | |
tSize | m_Margin |
Image margin size. | |
CSize2i | m_Size |
Image dimensions. | |
tSize | m_YOffset |
Offset used by subscripting functions. | |
tSize | m_ZeroOffset |
Offset of the first pixel (0,0) from the beginning of data. |
Class ecapsulating a density slice.
typedef CImageBase<CImage<T, Allocator> > mds::img::CImage< T, Allocator >::tBase [inherited] |
Base class.
typedef Allocator<T> mds::img::CImage< T, Allocator >::tDataStorage [inherited] |
Image data storage type.
typedef CImage< T, Allocator > mds::img::CImageBase< CImage< T, Allocator > >::tImage [inherited] |
Image type.
typedef T mds::img::CImage< T, Allocator >::tPixel [inherited] |
Image pixel type.
Reimplemented from mds::img::CImageBase< CImage< T, Allocator > >.
typedef CRect<CImage> mds::img::CImage< T, Allocator >::tRect [inherited] |
View of the image (i.e. rectangle).
typedef CImageRow<CImage> mds::img::CImage< T, Allocator >::tRow [inherited] |
Image row (the x coordinate is varying while the y is fixed).
anonymous enum [inherited] |
Templates that require members of the CImage class may use this enum to check the existence.
anonymous enum [inherited] |
Templates that require members of the CSerializable class may use this enum to check the existence.
anonymous enum [inherited] |
anonymous enum [inherited] |
Templates that require members of the CObject class can use this enum to check the existence.
Default constructor.
mds::img::CSlice::CSlice | ( | tSize | XSize, |
tSize | YSize, | ||
tSize | Margin = DEFAULT_MARGIN |
||
) |
Constructor.
mds::img::CSlice::CSlice | ( | const CSlice & | Slice | ) |
Copy constructor.
mds::img::CSlice::CSlice | ( | const CSlice & | Slice, |
EMakeRef | |||
) |
Copy constructor.
mds::img::CSlice::CSlice | ( | const CDImage & | Image | ) |
Copy constructor.
mds::img::CSlice::CSlice | ( | const CDImage & | Image, |
EMakeRef | |||
) |
Copy constructor.
Destructor.
CImage< T, A > & CImage::abs | ( | ) | [inherited] |
Absolute value of all pixels.
void mds::base::CObject::addReference | ( | ) | const [protected, inherited] |
Increase the reference counter.
T& mds::img::CImage< T, Allocator >::at | ( | tSize | x, |
tSize | y | ||
) | [inherited] |
Returns reference to the pixel [x][y].
Reimplemented from mds::img::CImageBase< CImage< T, Allocator > >.
const T& mds::img::CImage< T, Allocator >::at | ( | tSize | x, |
tSize | y | ||
) | const [inherited] |
Reimplemented from mds::img::CImageBase< CImage< T, Allocator > >.
T& mds::img::CImage< T, Allocator >::at | ( | tSize | i | ) | [inherited] |
Returns the subscripted pixel.
Reimplemented from mds::img::CImageBase< CImage< T, Allocator > >.
const T& mds::img::CImage< T, Allocator >::at | ( | tSize | i | ) | const [inherited] |
Reimplemented from mds::img::CImageBase< CImage< T, Allocator > >.
bool CImage::checkPosition | ( | tSize | x, |
tSize | y | ||
) | const [inherited] |
Checks the pixel position.
T CImage::color2Pixel | ( | CColor | color | ) | const [inherited] |
Converts a specified color to the image pixel format and range.
CImage< T, A > & mds::img::CImage< T, A >::convert | ( | const CImageBase< Derived > & | Image | ) | [inherited] |
Conversion of images of different types.
CImage<T,A>& mds::img::CImage< T, Allocator >::convert | ( | const CImageBase< Derived > & | Image | ) | [inherited] |
CSlice & mds::img::CSlice::create | ( | tSize | XSize, |
tSize | YSize, | ||
tSize | Margin = DEFAULT_MARGIN |
||
) |
Creates a new slice.
Reimplemented from mds::img::CImage< T, Allocator >.
CSlice & mds::img::CSlice::create | ( | const CSlice & | Slice | ) |
Creates a new slice.
CSlice & mds::img::CSlice::create | ( | const CSlice & | Slice, |
EMakeRef | |||
) |
Creates a new slice.
CImage< T, A > & mds::img::CImage< T, A >::create | ( | const CSize2i & | Size, |
tSize | Margin = 0 |
||
) | [inherited] |
Resizes the image data.
CImage& mds::img::CImage< T, Allocator >::create | ( | const CImage< T, Allocator > & | Image, |
tSize | x, | ||
tSize | y, | ||
tSize | XSize, | ||
tSize | YSize | ||
) | [inherited] |
Creates subimage of a given image.
CImage& mds::img::CImage< T, Allocator >::create | ( | const CImage< T, Allocator > & | Image, |
tSize | x, | ||
tSize | y, | ||
tSize | XSize, | ||
tSize | YSize, | ||
EMakeRef | |||
) | [inherited] |
Creates subimage of a given image.
CImage< T, A > & CImage::create | ( | const tRect & | Image | ) | [inherited] |
Creates copy of a given image rectangle.
CImage< T, A > & CImage::create | ( | const tRect & | Image, |
EMakeRef | |||
) | [inherited] |
Creates reference to a given image rectangle.
CImage& mds::img::CImage< T, Allocator >::create | ( | const CImage< T, Allocator > & | Image | ) | [inherited] |
Creates copy of an image.
CImage& mds::img::CImage< T, Allocator >::create | ( | const CImage< T, Allocator > & | Image, |
EMakeRef | |||
) | [inherited] |
Creates reference to an image.
CImage< T, A > & CImage::cut | ( | const T & | Lower, |
const T & | Upper | ||
) | [inherited] |
Cuts range of pixel values.
bool mds::base::CObject::delReference | ( | ) | const [protected, inherited] |
Decrease the reference counter.
void mds::img::CSlice::deserialize | ( | mds::mod::CChannelSerializer< S > & | Reader | ) |
Deserializes all class members.
Reimplemented from mds::img::CImage< T, Allocator >.
void mds::img::CSlice::deserialize | ( | mds::mod::CChannelSerializer< S > & | Reader | ) |
Deserializes all class members.
Reimplemented from mds::img::CImage< T, Allocator >.
CImage< T, A > & CImage::fill | ( | const T & | c | ) | [inherited] |
Fills the image using a given pixel value.
CImage< T, A > & CImage::fillEntire | ( | const T & | c | ) | [inherited] |
Fills the entire image including its margin using a given pixel value.
CImage< T, A > & CImage::fillMargin | ( | const T & | c | ) | [inherited] |
Pads the image margin with constant value.
Function mds::img::CImage< T, A >::forEach | ( | Function | Func | ) | [inherited] |
Calls function object for every image pixel.
Reimplemented from mds::img::CImageBase< CImage< T, Allocator > >.
Function mds::img::CImage< T, A >::forEach | ( | Function | Func | ) | const [inherited] |
Calls function object for every image pixel.
Reimplemented from mds::img::CImageBase< CImage< T, Allocator > >.
Function mds::img::CImage< T, Allocator >::forEach | ( | Function | Func | ) | [inherited] |
Calls a function object for every image pixel.
Reimplemented from mds::img::CImageBase< CImage< T, Allocator > >.
Function mds::img::CImage< T, Allocator >::forEach | ( | Function | Func | ) | const [inherited] |
Calls a function object for every image pixel.
Reimplemented from mds::img::CImageBase< CImage< T, Allocator > >.
static int mds::mod::CSerializable::getBlockSize | ( | ) | [static, inherited] |
Default block size.
static int mds::mod::CSerializable::getCompression | ( | ) | [static, inherited] |
Default compression method.
double mds::img::CSlice::getDX | ( | ) | const |
Returns the real pixel size in x-axis.
double mds::img::CSlice::getDY | ( | ) | const |
Returns the real pixel size in y-axis.
tSize mds::img::CImage< T, Allocator >::getIdx | ( | tSize | x, |
tSize | y | ||
) | const [inherited] |
Calculates index of a specified pixel.
Reimplemented from mds::img::CImageBase< CImage< T, Allocator > >.
tImage& mds::img::CImageBase< CImage< T, Allocator > >::getImpl | ( | ) | [inherited] |
Returns reference to the image implementation.
const tImage& mds::img::CImageBase< CImage< T, Allocator > >::getImpl | ( | ) | const [inherited] |
int mds::img::CSlice::getIndex | ( | ) | const |
Gets the slice position index.
tSize mds::img::CImage< T, Allocator >::getMargin | ( | ) | const [inherited] |
Returns the image margin size in pixels.
Reimplemented from mds::img::CImageBase< CImage< T, Allocator > >.
static const char* mds::mod::CSerializable::getName | ( | ) | [static, inherited] |
Default class name.
EPlane mds::img::CSlice::getOrientation | ( | ) | const |
Returns orientation of the slice plane.
double mds::img::CSlice::getPosition | ( | ) | const |
Returns the slice position.
T* mds::img::CImage< T, Allocator >::getPtr | ( | ) | [inherited] |
Returns pointer to the image data.
const T* mds::img::CImage< T, Allocator >::getPtr | ( | ) | const [inherited] |
T* mds::img::CImage< T, Allocator >::getPtr | ( | tSize | x, |
tSize | y | ||
) | [inherited] |
Returns pointer to the given pixel.
const T* mds::img::CImage< T, Allocator >::getPtr | ( | tSize | x, |
tSize | y | ||
) | const [inherited] |
int mds::base::CObject::getReferencesCount | ( | ) | const [inherited] |
Returns the number of references.
T* mds::img::CImage< T, Allocator >::getRowPtr | ( | tSize | y | ) | [inherited] |
Returns pointer to the first element of the image row.
const T* mds::img::CImage< T, Allocator >::getRowPtr | ( | tSize | y | ) | const [inherited] |
CSize2i& mds::img::CImage< T, Allocator >::getSize | ( | ) | [inherited] |
Returns size of the rectangle.
Reimplemented from mds::img::CImageBase< CImage< T, Allocator > >.
const CSize2i& mds::img::CImage< T, Allocator >::getSize | ( | ) | const [inherited] |
Reimplemented from mds::img::CImageBase< CImage< T, Allocator > >.
double mds::img::CSlice::getThickness | ( | ) | const |
Returns the slice thickness.
tSize mds::img::CImage< T, Allocator >::getXOffset | ( | ) | const [inherited] |
Returns column offset in x-axis.
In other words, offset between two neighbouring image pixels in a row.
Reimplemented from mds::img::CImageBase< CImage< T, Allocator > >.
tSize mds::img::CImage< T, Allocator >::getXSize | ( | ) | const [inherited] |
Returns the image size (dimensions).
Reimplemented from mds::img::CImageBase< CImage< T, Allocator > >.
tSize mds::img::CImage< T, Allocator >::getYOffset | ( | ) | const [inherited] |
Returns row offset in y-axis.
In other words, offset between two neighbouring image pixels in a column.
Reimplemented from mds::img::CImageBase< CImage< T, Allocator > >.
tSize mds::img::CImage< T, Allocator >::getYSize | ( | ) | const [inherited] |
Reimplemented from mds::img::CImageBase< CImage< T, Allocator > >.
tSize mds::img::CImage< T, Allocator >::height | ( | ) | const [inherited] |
Reimplemented from mds::img::CImageBase< CImage< T, Allocator > >.
T CImage::interpolate | ( | const CPoint3D & | Point | ) | const [inherited] |
Bilinear subpixel value interpolation.
bool mds::base::CObject::isOnHeap | ( | ) | const [inherited] |
Returns true if the object is allocated on the heap.
CImage< T, A > & CImage::limit | ( | const T & | Lower, |
const T & | Upper | ||
) | [inherited] |
Clips a range of pixel values.
Standard method getEntityCompression().
mds::img::CSlice::MDS_ENTITY_NAME | ( | "Slice" | ) |
Standard method getEntityName().
Smart pointer type.
mds::img::CImage< T, Allocator >::MDS_SHAREDPTR | ( | CImage< T, Allocator > | ) | [inherited] |
Declare smart pointer type tSmartPtr.
CImage< T, A > & CImage::mirrorMargin | ( | ) | [inherited] |
Pads the image margin using a simple mirroring.
static void* mds::base::CObject::operator new | ( | std::size_t | Size | ) | [static, inherited] |
Allocates a new object on the heap.
T& mds::img::CImage< T, Allocator >::operator() | ( | tSize | x, |
tSize | y | ||
) | [inherited] |
Returns reference to the subscripted pixel [x][y].
Reimplemented from mds::img::CImageBase< CImage< T, Allocator > >.
const T& mds::img::CImage< T, Allocator >::operator() | ( | tSize | x, |
tSize | y | ||
) | const [inherited] |
Reimplemented from mds::img::CImageBase< CImage< T, Allocator > >.
T& mds::img::CImage< T, Allocator >::operator() | ( | tSize | i | ) | [inherited] |
Returns the subscripted pixel.
Reimplemented from mds::img::CImageBase< CImage< T, Allocator > >.
const T& mds::img::CImage< T, Allocator >::operator() | ( | tSize | i | ) | const [inherited] |
Reimplemented from mds::img::CImageBase< CImage< T, Allocator > >.
CImage< T, A > & mds::img::CImage< T, A >::operator*= | ( | const CImageBase< Derived > & | Image | ) | [inherited] |
Pixel wise product.
CImage< T, A > & mds::img::CImage< T, A >::operator*= | ( | const CScalar< U > & | c | ) | [inherited] |
Multiplies all pixels by scalar.
CImage<T,A>& mds::img::CImage< T, Allocator >::operator*= | ( | const CImageBase< Derived > & | Image | ) | [inherited] |
CImage<T,A>& mds::img::CImage< T, Allocator >::operator*= | ( | const CScalar< U > & | c | ) | [inherited] |
CImage< T, A > & mds::img::CImage< T, A >::operator+= | ( | const CImageBase< Derived > & | Image | ) | [inherited] |
Pixel wise addition.
CImage< T, A > & mds::img::CImage< T, A >::operator+= | ( | const CScalar< U > & | c | ) | [inherited] |
Adds scalar to all pixels.
CImage<T,A>& mds::img::CImage< T, Allocator >::operator+= | ( | const CImageBase< Derived > & | Image | ) | [inherited] |
CImage<T,A>& mds::img::CImage< T, Allocator >::operator+= | ( | const CScalar< U > & | c | ) | [inherited] |
CImage< T, A > & mds::img::CImage< T, A >::operator-= | ( | const CImageBase< Derived > & | Image | ) | [inherited] |
Pixel wise subtraction.
CImage< T, A > & mds::img::CImage< T, A >::operator-= | ( | const CScalar< U > & | c | ) | [inherited] |
Subtracts scalar from all pixels.
CImage<T,A>& mds::img::CImage< T, Allocator >::operator-= | ( | const CImageBase< Derived > & | Image | ) | [inherited] |
CImage<T,A>& mds::img::CImage< T, Allocator >::operator-= | ( | const CScalar< U > & | c | ) | [inherited] |
CImage< T, A > & mds::img::CImage< T, A >::operator/= | ( | const CImageBase< Derived > & | Image | ) | [inherited] |
Pixel wise division.
CImage< T, A > & mds::img::CImage< T, A >::operator/= | ( | const CScalar< U > & | c | ) | [inherited] |
Divides all pixels by scalar.
CImage<T,A>& mds::img::CImage< T, Allocator >::operator/= | ( | const CImageBase< Derived > & | Image | ) | [inherited] |
CImage<T,A>& mds::img::CImage< T, Allocator >::operator/= | ( | const CScalar< U > & | c | ) | [inherited] |
bool mds::img::CSlice::operator< | ( | const CSlice & | Slice | ) |
Operator smaller for comparision of positions of two slices.
Image assignment operator.
Reimplemented in mds::img::CDicomSlice.
Function mds::img::CImage< T, A >::pforEach | ( | Function | Func | ) | [inherited] |
Calls function object for every image pixel.
Reimplemented from mds::img::CImageBase< CImage< T, Allocator > >.
Function mds::img::CImage< T, A >::pforEach | ( | Function | Func | ) | const [inherited] |
Calls function object for every image pixel.
Reimplemented from mds::img::CImageBase< CImage< T, Allocator > >.
Function mds::img::CImage< T, Allocator >::pforEach | ( | Function | Func | ) | [inherited] |
Calls a function object for every image pixel.
Reimplemented from mds::img::CImageBase< CImage< T, Allocator > >.
Function mds::img::CImage< T, Allocator >::pforEach | ( | Function | Func | ) | const [inherited] |
Calls a function object for every image pixel.
Reimplemented from mds::img::CImageBase< CImage< T, Allocator > >.
CImage< T, A >::tRect CImage::rect | ( | const CPoint2i & | Position, |
const CSize2i & | Size | ||
) | [inherited] |
Returns a specified sub-image (i.e. rectangle).
const CImage< T, A >::tRect mds::img::CImage< T, A >::rect | ( | const CPoint2i & | Position, |
const CSize2i & | Size | ||
) | const [inherited] |
CImage< T, A >::tRect CImage::rect | ( | const CRange & | XRange, |
const CRange & | YRange | ||
) | [inherited] |
Returns a specified sub-image (i.e. rectangle).
const CImage< T, A >::tRect mds::img::CImage< T, A >::rect | ( | const CRange & | XRange, |
const CRange & | YRange | ||
) | const [inherited] |
CImage< T, A > & CImage::replace | ( | const T & | Value, |
const T & | NewValue | ||
) | [inherited] |
Replaces all pixels of a given value by a specified value.
CImage< T, A >::tRow CImage::row | ( | tSize | y | ) | [inherited] |
Returns a specified row.
const CImage< T, A >::tRow mds::img::CImage< T, A >::row | ( | tSize | y | ) | const [inherited] |
void mds::img::CSlice::serialize | ( | mds::mod::CChannelSerializer< S > & | Writer | ) |
Serializes all class members.
Reimplemented from mds::img::CImage< T, Allocator >.
void mds::img::CSlice::serialize | ( | mds::mod::CChannelSerializer< S > & | Writer | ) |
Serializes all class members.
Reimplemented from mds::img::CImage< T, Allocator >.
tImage& mds::img::CImageBase< CImage< T, Allocator > >::set | ( | tSize | x, |
tSize | y, | ||
const tPixel & | Value | ||
) | [inherited] |
Sets the pixel at the position [x][y][z].
tImage& mds::img::CImageBase< CImage< T, Allocator > >::set | ( | tSize | i, |
const tPixel & | Value | ||
) | [inherited] |
Sets the subscripted pixel.
CImage& mds::img::CImage< T, Allocator >::set | ( | tSize | x, |
tSize | y, | ||
const T & | Value | ||
) | [inherited] |
Sets the pixel at the position [x][y].
CImage& mds::img::CImage< T, Allocator >::set | ( | tSize | i, |
const T & | Value | ||
) | [inherited] |
Sets the subscripted voxel.
CSlice& mds::img::CSlice::setIndex | ( | int | iIndex | ) |
Sets the position index.
CSlice& mds::img::CSlice::setOrientation | ( | EPlane | ePlane | ) |
Sets the slice plane orientation.
CSlice& mds::img::CSlice::setPixel | ( | double | dDX, |
double | dDY | ||
) |
Sets the pixel size.
CSlice& mds::img::CSlice::setPosition | ( | double | dPosition | ) |
Sets the slice position.
CSlice& mds::img::CSlice::setThickness | ( | double | dThickness | ) |
Sets the slice thickness.
CImage< T, A > & CImage::subSample | ( | const CImage< T, Allocator > & | Image, |
tSize | k = 2 , |
||
tSize | l = 2 |
||
) | [inherited] |
Subsamples a given image and stores the result.
tSize mds::img::CImage< T, Allocator >::width | ( | ) | const [inherited] |
Returns the image size (dimensions).
Reimplemented from mds::img::CImageBase< CImage< T, Allocator > >.
tDataStorage mds::img::CImage< T, Allocator >::m_DataStorage [protected, inherited] |
Image data.
double mds::img::CSlice::m_dDX [protected] |
Real pixel size.
double mds::img::CSlice::m_dDY [protected] |
double mds::img::CSlice::m_dPosition [protected] |
Slice position.
double mds::img::CSlice::m_dThickness [protected] |
Slice thickness.
EPlane mds::img::CSlice::m_eOrientation [protected] |
Slice plane orientation.
int mds::base::CObject::m_iHeapObject [mutable, protected, inherited] |
Flag initialized if the object is on the heap.
int mds::img::CSlice::m_iIndex [protected] |
Position index.
int mds::base::CObject::m_iReferences [mutable, protected, inherited] |
The number of references to the object.
tSize mds::img::CImage< T, Allocator >::m_Margin [protected, inherited] |
Image margin size.
CSize2i mds::img::CImage< T, Allocator >::m_Size [protected, inherited] |
Image dimensions.
tSize mds::img::CImage< T, Allocator >::m_YOffset [protected, inherited] |
Offset used by subscripting functions.
tSize mds::img::CImage< T, Allocator >::m_ZeroOffset [protected, inherited] |
Offset of the first pixel (0,0) from the beginning of data.