16 #if !defined(__mlRankFilter_H)
17 #define __mlRankFilter_H
105 NUM_RANK_FILTER_TYPES
111 static const char*
const RankFilterNames[];
169 template <
typename DATATYPE>
Field to encapsulate a boolean value.
Field to encapsulate an enumerated value.
Base class for all fields used in the ML.
Field to encapsulate an integer value.
The typically used convenience class to apply a kernel to an image.
The class PagedImage, representing a fragmented image that manages properties and data of an image lo...
The class to apply rank based kernel filters images.
void activateAttachments() override
Called when loading has finished.
void calcRow(MLsoffset *indexTab, size_t indexTabSize, MLsoffset srcVoxelOffset, size_t numVox, DATATYPE *inCursor, DATATYPE *outCursor, const ImageVector &)
In this virtual template method the filtering of one row needs to be implemented.
RankFilterTypes
The following rank based filters are available to filter line in an image:
EnumField * getRankFilterFld()
Specifies the rank based filter algorithm. Default is mlMedian.
void calculateOutputImageProperties(int outputIndex, PagedImage *outputImage) override
Computes the output image properties (e.g. the extents) for output outIndex.
void handleNotification(Field *field) override
Called when a parameter field is changed.
IntField * getRankFld()
Specifies the rank level for the 'Rank' algorithm. Default is 0.
CALC_ROW_H()
The implementation of the calculateOutputSubImage() method overloaded from Module is done in this mac...
#define ML_MODULE_CLASS_HEADER(className)
Similar to ML_CLASS_HEADER for the usage of derived classes from Module.
#define MLKERNELEXPORT
Includes files used in many parts of the dll, defined dll-specific macros and controls any system dep...
MLint MLsoffset
Signed ML offset type that is a 32-bit signed integer on 32-bit platforms and a 64-bit integer on 64-...