MDSTk Libraries
1.1.0
Medical Data Segmentation Toolkit
|
Class containing a 1D convolution kernel. More...
#include <mdsKernel.h>
Public Types | |
typedef mds::base::CData < tConvKernelData > | data |
Kernel data. | |
typedef data::tConstDataPtr | tConstDataPtr |
Pointer to the constant data. | |
typedef data::tData | tData |
Data type. | |
typedef data::tDataPtr | tDataPtr |
Pointer to the data. | |
Public Member Functions | |
tData & | at (tSize i) |
Returns reference to the kernel coefficient [i]. | |
const tData & | at (tSize i) const |
CKernel1D (tSize Size) | |
Constructor that creates a new 1D convolution kernel. | |
CKernel1D (tConstDataPtr pData, tSize Size) | |
Constructor. | |
CKernel1D (const CKernel1D &k) | |
Copy constructor. | |
void | create (tSize Size) |
Creates a new 1D convolution kernel. | |
tDataPtr | getPtr (tSize i) |
Returns pointer to the kernel data. | |
tConstDataPtr | getPtr (tSize i) const |
tDataPtr | getPtr () |
Returns pointer to the kernel data. | |
tConstDataPtr | getPtr () const |
tSize | getSize () const |
Returns the kernel size. | |
tData & | operator() (tSize i) |
Returns subscripted kernel coefficient [i]. | |
const tData & | operator() (tSize i) const |
CKernel1D & | operator= (const CKernel1D &k) |
Assignment operator. | |
void | set (tSize i, const tData &Value) |
Sets the kernel data. | |
virtual | ~CKernel1D () |
Virtual destructor. | |
Protected Member Functions | |
CKernel1D () | |
Default constructor. | |
void | init (tSize Size) |
Allocates data of a given size. | |
Private Types | |
typedef CDataAllocator < tConvKernelData > | base |
typedef base::tConstData | tConstData |
Const data type. | |
Private Member Functions | |
CData & | create (tConstDataPtr pData, tSize Size) |
Allocates memory and copies the specified data. | |
CData & | create (const CData &Data) |
Allocates memory and copies the specified data. | |
CData & | fill (const tData &Value) |
Fills the entire data. | |
Function | forEach (Function Func) |
Calls function object for every element. | |
Function | forEach (Function Func) const |
Calls function object for every element. | |
Function | forRange (tSize i, tSize j, Function Func) |
Calls function object for all elements in the range <i, j>. | |
Function | forRange (tSize i, tSize j, Function Func) const |
Calls function object for all elements in the range <i, j>. | |
bool | isWithinBlock (tSize i, tSize j) const |
Returns true if the specified range of elements lie within a continuous block of memory. | |
CData & | set (tSize i, const tConvKernelData &Value) |
Sets the element of matrix at the position [i]. | |
Private Attributes | |
tDataPtr | m_pData |
Pointer to the allocated data. | |
tSize | m_Size |
Size of the allocated data. |
Class containing a 1D convolution kernel.
Kernel data.
Pointer to the constant data.
Reimplemented from mds::base::CData< tConvKernelData >.
Data type.
Reimplemented from mds::base::CData< tConvKernelData >.
Pointer to the data.
Reimplemented from mds::base::CData< tConvKernelData >.
mds::img::CKernel1D::CKernel1D | ( | tSize | Size | ) |
Constructor that creates a new 1D convolution kernel.
mds::img::CKernel1D::CKernel1D | ( | CKernel1D::tConstDataPtr | pData, |
tSize | Size | ||
) |
Constructor.
mds::img::CKernel1D::CKernel1D | ( | const CKernel1D & | k | ) |
Copy constructor.
virtual mds::img::CKernel1D::~CKernel1D | ( | ) | [virtual] |
Virtual destructor.
mds::img::CKernel1D::CKernel1D | ( | ) | [protected] |
Default constructor.
Returns reference to the kernel coefficient [i].
Reimplemented from mds::base::CData< tConvKernelData >.
const tData& mds::img::CKernel1D::at | ( | tSize | i | ) | const |
Reimplemented from mds::base::CData< tConvKernelData >.
void mds::img::CKernel1D::create | ( | tSize | Size | ) |
Creates a new 1D convolution kernel.
Reimplemented from mds::base::CData< tConvKernelData >.
Returns pointer to the kernel data.
Reimplemented from mds::base::CData< tConvKernelData >.
tConstDataPtr mds::img::CKernel1D::getPtr | ( | tSize | i | ) | const |
Reimplemented from mds::base::CData< tConvKernelData >.
Returns pointer to the kernel data.
Reimplemented from mds::base::CData< tConvKernelData >.
tConstDataPtr mds::img::CKernel1D::getPtr | ( | ) | const |
Reimplemented from mds::base::CData< tConvKernelData >.
tSize mds::img::CKernel1D::getSize | ( | ) | const |
Returns the kernel size.
Reimplemented from mds::base::CData< tConvKernelData >.
void mds::img::CKernel1D::init | ( | tSize | Size | ) | [protected] |
Allocates data of a given size.
Returns subscripted kernel coefficient [i].
Reimplemented from mds::base::CData< tConvKernelData >.
Reimplemented from mds::base::CData< tConvKernelData >.
void mds::img::CKernel1D::set | ( | tSize | i, |
const tData & | Value | ||
) |
Sets the kernel data.