![]() |
MDSTk Libraries
1.1.0
Medical Data Segmentation Toolkit
|
Base class for all images. More...
#include <mdsImageBase.h>

Public Types | |
| typedef I | tImage |
| Image type. | |
| typedef CImageTraits< I >::tPixel | tPixel |
| Pixel type. | |
Public Member Functions | |
| tPixel & | at (tSize x, tSize y) |
| Returns the subscripted Pixel [x][y]. | |
| const tPixel & | at (tSize x, tSize y) const |
| tPixel & | at (tSize i) |
| Returns the subscripted pixel. | |
| const tPixel & | at (tSize i) const |
| 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 pixel index. | |
| tImage & | getImpl () |
| Returns reference to the image implementation. | |
| const tImage & | getImpl () const |
| tSize | getMargin () const |
| Returns the image margin size in pixels. | |
| CSize2i & | getSize () |
| Returns size of the image. | |
| const CSize2i & | getSize () const |
| tSize | getXOffset () const |
| Returns offset between two neigbouring pixels in x-axis. | |
| tSize | getXSize () const |
| Returns the image size (dimensions). | |
| tSize | getYOffset () const |
| Returns offset between two neigbouring pixels in y-axis. | |
| tSize | getYSize () const |
| tSize | height () const |
| tPixel & | operator() (tSize x, tSize y) |
| Returns the subscripted pixel [x][y]. | |
| const tPixel & | operator() (tSize x, tSize y) const |
| tPixel & | operator() (tSize i) |
| Returns the subscripted pixel. | |
| const tPixel & | operator() (tSize i) const |
| 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. | |
| 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. | |
| tSize | width () const |
| Returns the image size (dimensions). | |
Protected Member Functions | |
| CImageBase () | |
| Default constructor. | |
| CImageBase (const CImageBase &) | |
| Copy constructor. | |
| CImageBase & | operator= (const CImageBase &) |
| Assignment operator. | |
Base class for all images.
| typedef I mds::img::CImageBase< I >::tImage |
Image type.
Reimplemented in mds::img::CRect< I >.
| typedef CImageTraits<I>::tPixel mds::img::CImageBase< I >::tPixel |
Pixel type.
Reimplemented in mds::img::CvImage< T >, mds::img::CImage< T, Allocator >, and mds::img::CRect< I >.
| mds::img::CImageBase< I >::CImageBase | ( | ) | [protected] |
Default constructor.
| mds::img::CImageBase< I >::CImageBase | ( | const CImageBase< I > & | ) | [protected] |
Copy constructor.
| tPixel& mds::img::CImageBase< I >::at | ( | tSize | x, |
| tSize | y | ||
| ) |
Returns the subscripted Pixel [x][y].
Reimplemented in mds::img::CvImage< T >, mds::img::CImage< T, Allocator >, and mds::img::CRect< I >.
| const tPixel& mds::img::CImageBase< I >::at | ( | tSize | x, |
| tSize | y | ||
| ) | const |
Reimplemented in mds::img::CvImage< T >, mds::img::CImage< T, Allocator >, and mds::img::CRect< I >.
| tPixel& mds::img::CImageBase< I >::at | ( | tSize | i | ) |
Returns the subscripted pixel.
Reimplemented in mds::img::CvImage< T >, mds::img::CImage< T, Allocator >, and mds::img::CRect< I >.
| const tPixel& mds::img::CImageBase< I >::at | ( | tSize | i | ) | const |
Reimplemented in mds::img::CvImage< T >, mds::img::CImage< T, Allocator >, and mds::img::CRect< I >.
| Function mds::img::CImageBase< I >::forEach | ( | Function | Func | ) |
Calls a function object for every image pixel.
Reimplemented in mds::img::CImage< T, Allocator >, mds::img::CvImage< T >, mds::img::CvImage< T >, mds::img::CImage< T, Allocator >, mds::img::CRect< I >, and mds::img::CRect< I >.
| Function mds::img::CImageBase< I >::forEach | ( | Function | Func | ) | const |
Calls a function object for every image pixel.
Reimplemented in mds::img::CImage< T, Allocator >, mds::img::CvImage< T >, mds::img::CvImage< T >, mds::img::CImage< T, Allocator >, mds::img::CRect< I >, and mds::img::CRect< I >.
| tSize mds::img::CImageBase< I >::getIdx | ( | tSize | x, |
| tSize | y | ||
| ) | const |
Calculates pixel index.
Reimplemented in mds::img::CvImage< T >, mds::img::CImage< T, Allocator >, and mds::img::CRect< I >.
| tImage& mds::img::CImageBase< I >::getImpl | ( | ) |
Returns reference to the image implementation.
| const tImage& mds::img::CImageBase< I >::getImpl | ( | ) | const |
| tSize mds::img::CImageBase< I >::getMargin | ( | ) | const |
Returns the image margin size in pixels.
Reimplemented in mds::img::CvImage< T >, mds::img::CImage< T, Allocator >, and mds::img::CRect< I >.
| CSize2i& mds::img::CImageBase< I >::getSize | ( | ) |
Returns size of the image.
Reimplemented in mds::img::CImage< T, Allocator >, and mds::img::CRect< I >.
| const CSize2i& mds::img::CImageBase< I >::getSize | ( | ) | const |
Reimplemented in mds::img::CvImage< T >, mds::img::CImage< T, Allocator >, and mds::img::CRect< I >.
| tSize mds::img::CImageBase< I >::getXOffset | ( | ) | const |
Returns offset between two neigbouring pixels in x-axis.
Reimplemented in mds::img::CvImage< T >, mds::img::CImage< T, Allocator >, and mds::img::CRect< I >.
| tSize mds::img::CImageBase< I >::getXSize | ( | ) | const |
Returns the image size (dimensions).
Reimplemented in mds::img::CvImage< T >, mds::img::CImage< T, Allocator >, and mds::img::CRect< I >.
| tSize mds::img::CImageBase< I >::getYOffset | ( | ) | const |
Returns offset between two neigbouring pixels in y-axis.
Reimplemented in mds::img::CvImage< T >, mds::img::CImage< T, Allocator >, and mds::img::CRect< I >.
| tSize mds::img::CImageBase< I >::getYSize | ( | ) | const |
Reimplemented in mds::img::CvImage< T >, mds::img::CImage< T, Allocator >, and mds::img::CRect< I >.
| tSize mds::img::CImageBase< I >::height | ( | ) | const |
Reimplemented in mds::img::CvImage< T >, mds::img::CImage< T, Allocator >, and mds::img::CRect< I >.
| tPixel& mds::img::CImageBase< I >::operator() | ( | tSize | x, |
| tSize | y | ||
| ) |
Returns the subscripted pixel [x][y].
Reimplemented in mds::img::CvImage< T >, mds::img::CImage< T, Allocator >, and mds::img::CRect< I >.
| const tPixel& mds::img::CImageBase< I >::operator() | ( | tSize | x, |
| tSize | y | ||
| ) | const |
Reimplemented in mds::img::CvImage< T >, mds::img::CImage< T, Allocator >, and mds::img::CRect< I >.
| tPixel& mds::img::CImageBase< I >::operator() | ( | tSize | i | ) |
Returns the subscripted pixel.
Reimplemented in mds::img::CvImage< T >, mds::img::CImage< T, Allocator >, and mds::img::CRect< I >.
| const tPixel& mds::img::CImageBase< I >::operator() | ( | tSize | i | ) | const |
Reimplemented in mds::img::CvImage< T >, mds::img::CImage< T, Allocator >, and mds::img::CRect< I >.
| CImageBase& mds::img::CImageBase< I >::operator= | ( | const CImageBase< I > & | ) | [protected] |
Assignment operator.
| Function mds::img::CImageBase< I >::pforEach | ( | Function | Func | ) |
Calls a function object for every image pixel.
Reimplemented in mds::img::CImage< T, Allocator >, mds::img::CvImage< T >, mds::img::CvImage< T >, mds::img::CImage< T, Allocator >, mds::img::CRect< I >, and mds::img::CRect< I >.
| Function mds::img::CImageBase< I >::pforEach | ( | Function | Func | ) | const |
Calls a function object for every image pixel.
Reimplemented in mds::img::CImage< T, Allocator >, mds::img::CvImage< T >, mds::img::CvImage< T >, mds::img::CImage< T, Allocator >, mds::img::CRect< I >, and mds::img::CRect< I >.
Sets the pixel at the position [x][y][z].
| tImage& mds::img::CImageBase< I >::set | ( | tSize | i, |
| const tPixel & | Value | ||
| ) |
Sets the subscripted pixel.
| tSize mds::img::CImageBase< I >::width | ( | ) | const |
Returns the image size (dimensions).
Reimplemented in mds::img::CvImage< T >, mds::img::CImage< T, Allocator >, and mds::img::CRect< I >.
1.7.6.1