Base class for an image processing module of the ML.
MLint32 MLErrorCode
Type of an ML Error code.
#define mlModule
A macro name for a void pointer to a ml::Module in the ML to make pointer more readable.
#define MLITK_SUPPORT_EXPORT
When included by other libraries MLITK_SUPPORT_EXPORT is compiled as import symbol.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
MLint64 MLint
A signed ML integer type with at least 64 bits used for index calculations on very large images even ...
MLITK_SUPPORT_EXPORT MLErrorCode setAndConnectDefaultModuleWithNotify(Module &thisOp, const std::string &dataTypeName="float", const ImageVector &imgExt=ImageVector(16, 16, 1, 1, 1, 1), MLint minIdx=0, MLint maxIdx=ML_INT32_MAX, const ImageVector &pageExt=ImageVector(16, 16, 1, 1, 1, 1))
This function takes the default module (if it still does not exist then it's created),...
MLITK_SUPPORT_EXPORT mlModule * getDefaultModule(bool create=true)
Returns the default module instance.
MLITK_SUPPORT_EXPORT MLErrorCode setUpDefaultModuleAndApply(const std::string &dataTypeName, const ImageVector &imgExt, const ImageVector &pageExt, bool performOutputUpdate)
This function takes the default module (a TestPattern from BasicModules) (if it still does not exist ...
MLITK_SUPPORT_EXPORT void disconnectAllInputs(Module &thisOp)
Disconnects all connected inputs from thisOp.
MLITK_SUPPORT_EXPORT void destoyDefaultInstance()
Destroys the default module instance.