![]() |
MDSTk Libraries
1.1.0
Medical Data Segmentation Toolkit
|
Class template representing 2D image data. More...
#include <mdsImage.h>

Public Types | |
| enum | { CLASS_IMAGE } |
| Templates that require members of the CImage class may use this enum to check the existence. 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. | |
| CImage () | |
| Declare iterator types tIterator and tConstIterator. | |
| CImage (tSize XSize, tSize YSize, tSize Margin=0) | |
| Constructor. | |
| CImage (const CSize2i &Size, tSize Margin=0) | |
| Constructor. | |
| CImage (const CImage &Image, tSize x, tSize y, tSize XSize, tSize YSize) | |
| Constructor. | |
| CImage (const CImage &Image, tSize x, tSize y, tSize XSize, tSize YSize, EMakeRef) | |
| Constructor. | |
| CImage (const tRect &Image) | |
| Constructor. | |
| CImage (const tRect &Image, EMakeRef) | |
| Constructor. | |
| CImage (const CImage &Image) | |
| Copy constructor. | |
| CImage (const CImage &Image, EMakeRef) | |
| Copy constructor. | |
| 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) |
| CImage & | create (tSize XSize, tSize YSize, tSize Margin=0) |
| Resizes the image. | |
| 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. | |
| 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) |
| 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. | |
| 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 |
| tSize | getMargin () const |
| Returns the image margin size in pixels. | |
| 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 |
| 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_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) |
| CImage & | operator= (const CImage &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) |
| 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. | |
| 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). | |
| virtual | ~CImage () |
| 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. | |
| int | m_iHeapObject |
| Flag initialized if the object is on the heap. | |
| 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 template representing 2D image data.
| typedef CImageBase<CImage<T, Allocator> > mds::img::CImage< T, Allocator >::tBase |
Base class.
| typedef Allocator<T> mds::img::CImage< T, Allocator >::tDataStorage |
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 |
Image pixel type.
Reimplemented from mds::img::CImageBase< CImage< T, Allocator > >.
| typedef CRect<CImage> mds::img::CImage< T, Allocator >::tRect |
View of the image (i.e. rectangle).
| typedef CImageRow<CImage> mds::img::CImage< T, Allocator >::tRow |
Image row (the x coordinate is varying while the y is fixed).
| anonymous enum |
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.
| CImage::CImage | ( | ) |
Declare iterator types tIterator and tConstIterator.
Standard method getEntityCompression(). Default constructor creates image of zero size.
| mds::img::CImage< T, A >::CImage | ( | tSize | XSize, |
| tSize | YSize, | ||
| tSize | Margin = 0 |
||
| ) |
Constructor.
| mds::img::CImage< T, A >::CImage | ( | const CSize2i & | Size, |
| tSize | Margin = 0 |
||
| ) |
Constructor.
| mds::img::CImage< T, Allocator >::CImage | ( | const CImage< T, Allocator > & | Image, |
| tSize | x, | ||
| tSize | y, | ||
| tSize | XSize, | ||
| tSize | YSize | ||
| ) |
Constructor.
| mds::img::CImage< T, Allocator >::CImage | ( | const CImage< T, Allocator > & | Image, |
| tSize | x, | ||
| tSize | y, | ||
| tSize | XSize, | ||
| tSize | YSize, | ||
| EMakeRef | |||
| ) |
Constructor.
| CImage::CImage | ( | const tRect & | Image | ) |
Constructor.
| CImage::CImage | ( | const tRect & | Image, |
| EMakeRef | |||
| ) |
Constructor.
| mds::img::CImage< T, Allocator >::CImage | ( | const CImage< T, Allocator > & | Image | ) |
Copy constructor.
| mds::img::CImage< T, Allocator >::CImage | ( | const CImage< T, Allocator > & | Image, |
| EMakeRef | |||
| ) |
Copy constructor.
| CImage::~CImage | ( | ) | [virtual] |
Destructor.
| CImage< T, A > & CImage::abs | ( | ) |
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 | ||
| ) |
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 |
Reimplemented from mds::img::CImageBase< CImage< T, Allocator > >.
| T& mds::img::CImage< T, Allocator >::at | ( | tSize | i | ) |
Returns the subscripted pixel.
Reimplemented from mds::img::CImageBase< CImage< T, Allocator > >.
| const T& mds::img::CImage< T, Allocator >::at | ( | tSize | i | ) | const |
Reimplemented from mds::img::CImageBase< CImage< T, Allocator > >.
| bool CImage::checkPosition | ( | tSize | x, |
| tSize | y | ||
| ) | const |
Checks the pixel position.
| T CImage::color2Pixel | ( | CColor | color | ) | const |
Converts a specified color to the image pixel format and range.
| CImage< T, A > & mds::img::CImage< T, A >::convert | ( | const CImageBase< Derived > & | Image | ) |
Conversion of images of different types.
| CImage<T,A>& mds::img::CImage< T, Allocator >::convert | ( | const CImageBase< Derived > & | Image | ) |
| CImage< T, A > & mds::img::CImage< T, A >::create | ( | tSize | XSize, |
| tSize | YSize, | ||
| tSize | Margin = 0 |
||
| ) |
Resizes the image.
Reimplemented in mds::img::CSlice.
| CImage< T, A > & mds::img::CImage< T, A >::create | ( | const CSize2i & | Size, |
| tSize | Margin = 0 |
||
| ) |
Resizes the image data.
| CImage& mds::img::CImage< T, Allocator >::create | ( | const CImage< T, Allocator > & | Image, |
| tSize | x, | ||
| tSize | y, | ||
| tSize | XSize, | ||
| tSize | YSize | ||
| ) |
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 | |||
| ) |
Creates subimage of a given image.
| CImage< T, A > & CImage::create | ( | const tRect & | Image | ) |
Creates copy of a given image rectangle.
| CImage< T, A > & CImage::create | ( | const tRect & | Image, |
| EMakeRef | |||
| ) |
Creates reference to a given image rectangle.
| CImage& mds::img::CImage< T, Allocator >::create | ( | const CImage< T, Allocator > & | Image | ) |
Creates copy of an image.
| CImage& mds::img::CImage< T, Allocator >::create | ( | const CImage< T, Allocator > & | Image, |
| EMakeRef | |||
| ) |
Creates reference to an image.
| CImage< T, A > & CImage::cut | ( | const T & | Lower, |
| const T & | Upper | ||
| ) |
Cuts range of pixel values.
| bool mds::base::CObject::delReference | ( | ) | const [protected, inherited] |
Decrease the reference counter.
| void mds::img::CImage< T, A >::deserialize | ( | mds::mod::CChannelSerializer< S > & | Reader | ) |
Deserializes all class members.
Reimplemented in mds::img::CSlice, and mds::img::CSlice.
| void mds::img::CImage< T, Allocator >::deserialize | ( | mds::mod::CChannelSerializer< S > & | Reader | ) |
Reimplemented in mds::img::CSlice, and mds::img::CSlice.
| CImage< T, A > & CImage::fill | ( | const T & | c | ) |
Fills the image using a given pixel value.
| CImage< T, A > & CImage::fillEntire | ( | const T & | c | ) |
Fills the entire image including its margin using a given pixel value.
| CImage< T, A > & CImage::fillMargin | ( | const T & | c | ) |
Pads the image margin with constant value.
| Function mds::img::CImage< T, A >::forEach | ( | Function | Func | ) |
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 |
Calls function object for every image pixel.
Reimplemented from mds::img::CImageBase< CImage< T, Allocator > >.
| Function mds::img::CImage< T, Allocator >::forEach | ( | Function | Func | ) |
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 |
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.
| tSize mds::img::CImage< T, Allocator >::getIdx | ( | tSize | x, |
| tSize | y | ||
| ) | const |
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] |
| tSize mds::img::CImage< T, Allocator >::getMargin | ( | ) | const |
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.
| T* mds::img::CImage< T, Allocator >::getPtr | ( | ) |
Returns pointer to the image data.
| const T* mds::img::CImage< T, Allocator >::getPtr | ( | ) | const |
| T* mds::img::CImage< T, Allocator >::getPtr | ( | tSize | x, |
| tSize | y | ||
| ) |
Returns pointer to the given pixel.
| const T* mds::img::CImage< T, Allocator >::getPtr | ( | tSize | x, |
| tSize | y | ||
| ) | const |
| int mds::base::CObject::getReferencesCount | ( | ) | const [inherited] |
Returns the number of references.
| T* mds::img::CImage< T, Allocator >::getRowPtr | ( | tSize | y | ) |
Returns pointer to the first element of the image row.
| const T* mds::img::CImage< T, Allocator >::getRowPtr | ( | tSize | y | ) | const |
| CSize2i& mds::img::CImage< T, Allocator >::getSize | ( | ) |
Returns size of the rectangle.
Reimplemented from mds::img::CImageBase< CImage< T, Allocator > >.
| const CSize2i& mds::img::CImage< T, Allocator >::getSize | ( | ) | const |
Reimplemented from mds::img::CImageBase< CImage< T, Allocator > >.
| tSize mds::img::CImage< T, Allocator >::getXOffset | ( | ) | const |
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 |
Returns the image size (dimensions).
Reimplemented from mds::img::CImageBase< CImage< T, Allocator > >.
| tSize mds::img::CImage< T, Allocator >::getYOffset | ( | ) | const |
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 |
Reimplemented from mds::img::CImageBase< CImage< T, Allocator > >.
| tSize mds::img::CImage< T, Allocator >::height | ( | ) | const |
Reimplemented from mds::img::CImageBase< CImage< T, Allocator > >.
| T CImage::interpolate | ( | const CPoint3D & | Point | ) | const |
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 | ||
| ) |
Clips a range of pixel values.
| mds::img::CImage< T, Allocator >::MDS_SHAREDPTR | ( | CImage< T, Allocator > | ) |
Declare smart pointer type tSmartPtr.
| CImage< T, A > & CImage::mirrorMargin | ( | ) |
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 | ||
| ) |
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 |
Reimplemented from mds::img::CImageBase< CImage< T, Allocator > >.
| T& mds::img::CImage< T, Allocator >::operator() | ( | tSize | i | ) |
Returns the subscripted pixel.
Reimplemented from mds::img::CImageBase< CImage< T, Allocator > >.
| const T& mds::img::CImage< T, Allocator >::operator() | ( | tSize | i | ) | const |
Reimplemented from mds::img::CImageBase< CImage< T, Allocator > >.
| CImage< T, A > & mds::img::CImage< T, A >::operator*= | ( | const CImageBase< Derived > & | Image | ) |
Pixel wise product.
| CImage< T, A > & mds::img::CImage< T, A >::operator*= | ( | const CScalar< U > & | c | ) |
Multiplies all pixels by scalar.
| CImage<T,A>& mds::img::CImage< T, Allocator >::operator*= | ( | const CImageBase< Derived > & | Image | ) |
| CImage<T,A>& mds::img::CImage< T, Allocator >::operator*= | ( | const CScalar< U > & | c | ) |
| CImage< T, A > & mds::img::CImage< T, A >::operator+= | ( | const CImageBase< Derived > & | Image | ) |
Pixel wise addition.
| CImage< T, A > & mds::img::CImage< T, A >::operator+= | ( | const CScalar< U > & | c | ) |
Adds scalar to all pixels.
| CImage<T,A>& mds::img::CImage< T, Allocator >::operator+= | ( | const CImageBase< Derived > & | Image | ) |
| CImage<T,A>& mds::img::CImage< T, Allocator >::operator+= | ( | const CScalar< U > & | c | ) |
| CImage< T, A > & mds::img::CImage< T, A >::operator-= | ( | const CImageBase< Derived > & | Image | ) |
Pixel wise subtraction.
| CImage< T, A > & mds::img::CImage< T, A >::operator-= | ( | const CScalar< U > & | c | ) |
Subtracts scalar from all pixels.
| CImage<T,A>& mds::img::CImage< T, Allocator >::operator-= | ( | const CImageBase< Derived > & | Image | ) |
| CImage<T,A>& mds::img::CImage< T, Allocator >::operator-= | ( | const CScalar< U > & | c | ) |
| CImage< T, A > & mds::img::CImage< T, A >::operator/= | ( | const CImageBase< Derived > & | Image | ) |
Pixel wise division.
| CImage< T, A > & mds::img::CImage< T, A >::operator/= | ( | const CScalar< U > & | c | ) |
Divides all pixels by scalar.
| CImage<T,A>& mds::img::CImage< T, Allocator >::operator/= | ( | const CImageBase< Derived > & | Image | ) |
| CImage<T,A>& mds::img::CImage< T, Allocator >::operator/= | ( | const CScalar< U > & | c | ) |
| CImage< T, A > & CImage::operator= | ( | const CImage< T, Allocator > & | Image | ) |
Assignment operator.
| Function mds::img::CImage< T, A >::pforEach | ( | Function | Func | ) |
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 |
Calls function object for every image pixel.
Reimplemented from mds::img::CImageBase< CImage< T, Allocator > >.
| Function mds::img::CImage< T, Allocator >::pforEach | ( | Function | Func | ) |
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 |
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 | ||
| ) |
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 |
| CImage< T, A >::tRect CImage::rect | ( | const CRange & | XRange, |
| const CRange & | YRange | ||
| ) |
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 |
| CImage< T, A > & CImage::replace | ( | const T & | Value, |
| const T & | NewValue | ||
| ) |
Replaces all pixels of a given value by a specified value.
| CImage< T, A >::tRow CImage::row | ( | tSize | y | ) |
Returns a specified row.
| const CImage< T, A >::tRow mds::img::CImage< T, A >::row | ( | tSize | y | ) | const |
| void mds::img::CImage< T, A >::serialize | ( | mds::mod::CChannelSerializer< S > & | Writer | ) |
Serializes all class members.
Reimplemented in mds::img::CSlice, and mds::img::CSlice.
| void mds::img::CImage< T, Allocator >::serialize | ( | mds::mod::CChannelSerializer< S > & | Writer | ) |
Reimplemented in mds::img::CSlice, and mds::img::CSlice.
| 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 | ||
| ) |
Sets the pixel at the position [x][y].
| CImage& mds::img::CImage< T, Allocator >::set | ( | tSize | i, |
| const T & | Value | ||
| ) |
Sets the subscripted voxel.
| CImage< T, A > & CImage::subSample | ( | const CImage< T, Allocator > & | Image, |
| tSize | k = 2, |
||
| tSize | l = 2 |
||
| ) |
Subsamples a given image and stores the result.
| tSize mds::img::CImage< T, Allocator >::width | ( | ) | const |
Returns the image size (dimensions).
Reimplemented from mds::img::CImageBase< CImage< T, Allocator > >.
tDataStorage mds::img::CImage< T, Allocator >::m_DataStorage [protected] |
Image data.
int mds::base::CObject::m_iHeapObject [mutable, protected, inherited] |
Flag initialized if the object is on the heap.
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] |
Image margin size.
CSize2i mds::img::CImage< T, Allocator >::m_Size [protected] |
Image dimensions.
tSize mds::img::CImage< T, Allocator >::m_YOffset [protected] |
Offset used by subscripting functions.
tSize mds::img::CImage< T, Allocator >::m_ZeroOffset [protected] |
Offset of the first pixel (0,0) from the beginning of data.
1.7.6.1