16#if !defined(__mlKernelLineApplicatorBase_H)
17#define __mlKernelLineApplicatorBase_H
29#define ML_DEBUG_ENV_NAME "ML_KERNELLINEAPPLICATORBASE"
62 template <
typename DATATYPE,
typename KDATATYPE>
142 virtual void _defineIndices(
const SubImage &inSubImg);
147 virtual void _clearIndices();
193 template <
typename DATATYPE,
typename KDATATYPE>
197 *
this=kernLineAppBase;
205 template <
typename DATATYPE,
typename KDATATYPE>
218 template <
typename DATATYPE,
typename KDATATYPE>
234 template <
typename DATATYPE,
typename KDATATYPE>
240 if (
this != &kernLineAppBase){
251 ML_NO_MEMORY,
"Not enough memory. Cannot complete assignment operator correctly!");
269 template <
typename DATATYPE,
typename KDATATYPE>
289 template <
typename DATATYPE,
typename KDATATYPE>
306#undef ML_DEBUG_ENV_NAME
void applyToLine(TSubImageWithCursor< DATATYPE > *inSubImg, TSubImageWithCursor< DATATYPE > *, size_t) override
virtual void _clearIndices()
Removes the current _indexTab.
~KernelLineApplicatorBase() override
Destructor. Frees dynamic members.
ImageVector getNegativeExtent() const override
Returns the negative extent of a kernel used for filtering.
KernelLineApplicatorBase()
size_t _indexTabSize
Size of _indexTab. Default is 0.
const TKernel< KDATATYPE > * _kernel
Pointer to the kernel used to filter an input page.
void _init()
Initialization the current instance of mlKernelApplicatorBase. To be called by constructors.
ImageVector getPositiveExtent() const override
Returns the positive extent of a kernel used for filtering.
virtual void _defineIndices(const SubImage &inSubImg)
void setKernel(const TKernel< KDATATYPE > &kernel)
const TKernel< KDATATYPE > & getKernel() const
ImageVector getStride() const
#define ML_PRINT_FATAL_ERROR(FUNC_NAME, REASON, HANDLING)
MLint MLsoffset
Signed ML offset type that is a 32-bit signed integer on 32-bit platforms and a 64-bit integer on 64-...
TImageVector< MLint > ImageVector
Defines the standard ImageVector type that is used by the ML for indexing and coordinates.