MDSTk Libraries
1.1.0
Medical Data Segmentation Toolkit
|
General convolution filter. More...
#include <mdsConvolution.h>
Public Types | |
enum | { TEMPLATE_PARAMETER_IS_NOT_IMAGE = I::CLASS_IMAGE } |
Check that I is an image. More... | |
typedef CNormImageFilter< I, N > | base |
Image filter base. | |
typedef mds::base::CData < tConvKernelData > | data |
Data base. | |
typedef data::tConstDataPtr | tConstDataPtr |
Pointer to the constant data. | |
typedef data::tData | tData |
Data type. | |
typedef data::tDataPtr | tDataPtr |
Pointer to the data. | |
typedef base::tImage | tImage |
Image type. | |
typedef base::tPixel | tPixel |
Image pixel type. | |
typedef base::tResult | tResult |
Filter response type. | |
Public Member Functions | |
tData & | at (tSize x, tSize y) |
Returns reference to the kernel coefficient [x][y]. | |
const tData & | at (tSize x, tSize y) const |
CConvolutionFilter (tSize Size) | |
Constructor that creates a new 2D convolution kernel. | |
CConvolutionFilter (tConstDataPtr pData, tSize Size) | |
Constructor. | |
CConvolutionFilter (const CKernel2D &k) | |
Constructor. | |
void | create (tSize Size) |
Creates a new 2D convolution kernel. | |
tDataPtr | getPtr (tSize x, tSize y) |
Returns pointer to a specified kernel coefficient [x][y]. | |
tConstDataPtr | getPtr (tSize x, tSize y) const |
tDataPtr | getPtr () |
Returns pointer to the kernel data. | |
tConstDataPtr | getPtr () const |
tResult | getResponse (const tImage &SrcImage, tSize x, tSize y) |
Returns filter response at specified image point. | |
tSize | getSize () const |
Returns the kernel size. | |
bool | operator() (const tImage &SrcImage, tImage &DstImage) |
Filtering of input/source image. | |
virtual bool | operator() (const tImage &SrcImage, tImage &DstImage)=0 |
Filtering of input/source image. | |
tData & | operator() (tSize i) |
Returns reference to the subscripted element [i]. | |
const tData & | operator() (tSize i) const |
tData & | operator() (tSize x, tSize y) |
Returns reference to the kernel coefficient [x][y]. | |
const tData & | operator() (tSize x, tSize y) const |
void | set (tSize x, tSize y, const tData &Value) |
Sets the kernel data. | |
~CConvolutionFilter () | |
Destructor. | |
Protected Member Functions | |
void | init (tSize Size) |
Allocates data of a given size. | |
Protected Attributes | |
tSize | m_YOffset |
Kernel size in y-dimension. |
General convolution filter.
typedef CNormImageFilter<I,N> mds::img::CConvolutionFilter< I, N >::base |
Image filter base.
Reimplemented from mds::img::CNormImageFilter< I, N >.
typedef mds::base::CData<tConvKernelData> mds::img::CKernel2D::data [inherited] |
Data base.
typedef data::tConstDataPtr mds::img::CKernel2D::tConstDataPtr [inherited] |
Pointer to the constant data.
Reimplemented from mds::base::CData< tConvKernelData >.
typedef data::tData mds::img::CKernel2D::tData [inherited] |
Data type.
Reimplemented from mds::base::CData< tConvKernelData >.
typedef data::tDataPtr mds::img::CKernel2D::tDataPtr [inherited] |
Pointer to the data.
Reimplemented from mds::base::CData< tConvKernelData >.
typedef base::tImage mds::img::CConvolutionFilter< I, N >::tImage |
Image type.
Reimplemented from mds::img::CNormImageFilter< I, N >.
typedef base::tPixel mds::img::CConvolutionFilter< I, N >::tPixel |
Image pixel type.
Reimplemented from mds::img::CNormImageFilter< I, N >.
typedef base::tResult mds::img::CConvolutionFilter< I, N >::tResult |
Filter response type.
Reimplemented from mds::img::CNormImageFilter< I, N >.
anonymous enum [inherited] |
mds::img::CConvolutionFilter< I, N >::CConvolutionFilter | ( | tSize | Size | ) |
Constructor that creates a new 2D convolution kernel.
mds::img::CConvolutionFilter< I, N >::CConvolutionFilter | ( | tConstDataPtr | pData, |
tSize | Size | ||
) |
Constructor.
mds::img::CConvolutionFilter< I, N >::CConvolutionFilter | ( | const CKernel2D & | k | ) |
Constructor.
mds::img::CConvolutionFilter< I, N >::~CConvolutionFilter | ( | ) |
Destructor.
tData& mds::img::CKernel2D::at | ( | tSize | x, |
tSize | y | ||
) | [inherited] |
Returns reference to the kernel coefficient [x][y].
const tData& mds::img::CKernel2D::at | ( | tSize | x, |
tSize | y | ||
) | const [inherited] |
void mds::img::CKernel2D::create | ( | tSize | Size | ) | [inherited] |
Creates a new 2D convolution kernel.
Reimplemented from mds::base::CData< tConvKernelData >.
tDataPtr mds::img::CKernel2D::getPtr | ( | tSize | x, |
tSize | y | ||
) | [inherited] |
Returns pointer to a specified kernel coefficient [x][y].
tConstDataPtr mds::img::CKernel2D::getPtr | ( | tSize | x, |
tSize | y | ||
) | const [inherited] |
tDataPtr mds::img::CKernel2D::getPtr | ( | ) | [inherited] |
Returns pointer to the kernel data.
Reimplemented from mds::base::CData< tConvKernelData >.
tConstDataPtr mds::img::CKernel2D::getPtr | ( | ) | const [inherited] |
Reimplemented from mds::base::CData< tConvKernelData >.
tResult mds::img::CConvolutionFilter< I, N >::getResponse | ( | const tImage & | SrcImage, |
tSize | x, | ||
tSize | y | ||
) |
Returns filter response at specified image point.
tSize mds::img::CKernel2D::getSize | ( | ) | const [inherited] |
Returns the kernel size.
Reimplemented from mds::base::CData< tConvKernelData >.
Reimplemented in mds::img::CGaussFilter< I >, mds::img::CGaussFilter< tImage >, and mds::img::CGaussFilter< CFImage >.
void mds::img::CKernel2D::init | ( | tSize | Size | ) | [protected, inherited] |
Allocates data of a given size.
bool CConvolutionFilter::operator() | ( | const tImage & | SrcImage, |
tImage & | DstImage | ||
) |
Filtering of input/source image.
Point filter responses are written to the destination image.
virtual bool mds::img::CNormImageFilter< I, N >::operator() | ( | const tImage & | SrcImage, |
tImage & | DstImage | ||
) | [pure virtual, inherited] |
tData& mds::base::CData< tConvKernelData >::operator() | ( | tSize | i | ) | [inherited] |
Returns reference to the subscripted element [i].
Reimplemented in mds::img::CKernel1D.
const tData& mds::base::CData< tConvKernelData >::operator() | ( | tSize | i | ) | const [inherited] |
Reimplemented in mds::img::CKernel1D.
Returns reference to the kernel coefficient [x][y].
void mds::img::CKernel2D::set | ( | tSize | x, |
tSize | y, | ||
const tData & | Value | ||
) | [inherited] |
Sets the kernel data.
tSize mds::img::CKernel2D::m_YOffset [protected, inherited] |
Kernel size in y-dimension.