16#if !defined(__mlKernelLineApplicatorBase_H)
17#define __mlKernelLineApplicatorBase_H
29#define ML_DEBUG_ENV_NAME "ML_KERNELLINEAPPLICATORBASE"
110 return _kernel ? _kernel->getNegativeExtent() :
ImageVector(0);
114 return _kernel ? _kernel->getPositiveExtent() :
ImageVector(0);
167 virtual void _clearIndices();
207template <
typename DATATYPE,
typename KDATATYPE>
220template <
typename DATATYPE,
typename KDATATYPE>
248template <
typename DATATYPE,
typename KDATATYPE>
261 _indexTab =
new MLsoffset[_indexTabSize];
264 "Not enough memory. Cannot complete assignment operator correctly!");
284template <
typename DATATYPE,
typename KDATATYPE>
291 _indexTab = KernelTools::createIndexTab(
inSubImg.getStride(), *_kernel);
294 _srcVoxOffset = KernelTools::calcSrcVoxelOffset(
inSubImg.getStride(), _kernel->getNegativeExtent());
297 _indexTabSize = _kernel->getTabSize();
319#undef ML_DEBUG_ENV_NAME
The KernelLineApplicatorBase class is designed to implement new kernel based filters to be applied to...
void applyToLine(TSubImageWithCursor< DATATYPE > *inSubImg, TSubImageWithCursor< DATATYPE > *, size_t) override
Applies the kernel to a row of the input subimage.
~KernelLineApplicatorBase() override
Destructor. Frees dynamic members.
ImageVector getNegativeExtent() const override
Returns the negative extent of a kernel used for filtering.
KernelLineApplicatorBase()
Default constructor.
MLsoffset _srcVoxOffset
Offset from origin of kernel in input image to the voxel under the replaced voxel in output image.
size_t _indexTabSize
Size of _indexTab. Default is 0.
const TKernel< KDATATYPE > * _kernel
Pointer to the kernel used to filter an input page.
ImageVector getPositiveExtent() const override
Returns the positive extent of a kernel used for filtering.
void setKernel(const TKernel< KDATATYPE > &kernel)
const TKernel< KDATATYPE > & getKernel() const
MLsoffset * _indexTab
Table and variables defined temporarily while filtering a page.
The LineApplicator class provides pure virtual functions used by the old applyFiltering functions fro...
This class manages/represents a rectangular 6D image region that is organized linearly in memory.
Class to manage a filtering kernel for images.
A class that offers a TSubImage with a TSubImageCursor.
#define ML_NO_MEMORY
The system does not have enough memory to perform the desired operation; try to reduce application da...
#define ML_PRINT_FATAL_ERROR(FUNC_NAME, REASON, HANDLING)
Like ML_PRINT_FATAL_ERROR_DUMP(FUNC_NAME, REASON, HANDLING, RT_OBJ) without a runtime object to be du...
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
MLint MLsoffset
Signed ML offset type that is a 32-bit signed integer on 32-bit platforms and a 64-bit integer on 64-...