54 static void allow(
bool allowUsage=
true);
82 bool loadFullImage=
false);
86 const std::string &outFileName,
87 const std::string &mliCompress,
88 bool updateMinMaxAfterSave);
102 const bool isDCMTiff,
103 bool loadFullImage=
false);
107 const std::string &outFileName);
111 const std::string &outFile,
113 bool useMiddleSlice=
true,
114 bool buildNoPreviewImageOnInvalidImage=
false);
124 std::string *metaDataDump=
nullptr,
125 bool loadFullImage=
false,
127 bool hideErrorPosts=
false,
145 std::string &fileFormat);
176 const std::string &moduleName,
177 const std::vector<std::string> &expectedFields,
Project global and OS specific declarations.
#define MLMODULE_LOADER_BACKENDS_EXPORT
DLL export macro definition.
static const MLuint64 ML_MODULE_LOADER_ITK_IMAGE_FILE_READER_BACKEND
itkImageFileReader backend bit.
static const MLuint64 ML_MODULE_LOADER_NO_BACKENDS
Bit masks describing all, none or specific (ORable) backends.
static const MLuint64 ML_MODULE_LOADER_ALL_BACKENDS
Bits of all backends.
static void allow(bool allowUsage=true)
static const MLuint64 ML_MODULE_LOADER_HISTO_LOAD_BACKEND
HistoLoad backend bit.
static MLuint64 getAllowed()
Returns the ORed-mask of allowed loader backends which can can be used, enabled bits denote.
static void setAllowed(const MLuint64 backendsMask=ML_MODULE_LOADER_ALL_BACKENDS)
ModuleLoaderBackendsControl()
Default constructor.
ML_MODULE_CLASS_HEADER(ModuleLoaderBackendsControl)
Implements interface for the runtime type system of the ML.
static const MLuint64 ML_MODULE_LOADER_ML_IMAGE_FORMAT_BACKEND
MLImageFormat backend bit.
static const MLuint64 ML_MODULE_LOADER_IMAGE_LOAD_BACKEND
ImageLoader backend bit.
~ModuleLoaderBackendsControl()
Denstructor.
Module(int numInputImages, int numOutputImages)
MLint32 MLErrorCode
Type of an ML Error code.
UINT64 MLuint64
Introduce platform-independent 64-bit unsigned integer type.
boost::shared_ptr< const Tree > Const_TreePtr
A collection of some tool functions loading files with modules or other backends.
MLMODULE_LOADER_BACKENDS_EXPORT void destroyMLImageFormatFileReaderInstance(MLImageFormat *&instance)
See corresponding function in ModuleLoaderBackends::CoreInterface.
MLMODULE_LOADER_BACKENDS_EXPORT MLErrorCode createAndSaveThumbNail(PagedImage &srcImg, const std::string &outFile, MLint ext, bool useMiddleSlice=true, bool buildNoPreviewImageOnInvalidImage=false)
See corresponding function in ModuleLoaderBackends::CoreInterface.
MLMODULE_LOADER_BACKENDS_EXPORT MLErrorCode getImagePropertiesWithMLImageFormatReader(const std::string &fileName, PagedImage &pImgProps)
See corresponding function in ModuleLoaderBackends::CoreInterface.
MLMODULE_LOADER_BACKENDS_EXPORT MLErrorCode saveAsMLImageFormat(PagedImage &imgToSave, const std::string &outFileName, const std::string &mliCompress, bool updateMinMaxAfterSave)
See corresponding function in ModuleLoaderBackends::CoreInterface.
MLMODULE_LOADER_BACKENDS_EXPORT std::string getPreferredLoader(const std::string &fileName)
MLMODULE_LOADER_BACKENDS_EXPORT std::string getImagePropertiesWithImgFileReader(const std::string &fileName, PagedImage &pImgProps, std::string &fileFormat)
See corresponding function in ModuleLoaderBackends::CoreInterface.
MLMODULE_LOADER_BACKENDS_EXPORT MLErrorCode saveSubImgInFile(const SubImage &srcSubImg, const std::string &outFileName)
See corresponding function in ModuleLoaderBackends::CoreInterface.
MLMODULE_LOADER_BACKENDS_EXPORT MLErrorCode loadWithHistoLoad(const std::string &fileName, SubImage &outSubImg, const ImageVector &corrOffset, Module **loaderToCreate, bool loadFullImage, PagedImage *pagedImg=nullptr, MLint level=0)
See corresponding function in ModuleLoaderBackends::CoreInterface.
MLMODULE_LOADER_BACKENDS_EXPORT void getDCMTreeFromMLImageFile(const std::string &mlImageFileName, DCMTree::Const_TreePtr &treePtr, size_t &numVols, MLErrorCode &fileLoadError, MLErrorCode &treeExtractError)
See corresponding function in ModuleLoaderBackends::CoreInterface.
MLMODULE_LOADER_BACKENDS_EXPORT MLErrorCode loadWithImgFileLoader(const std::string &pageFileName, SubImage &outSubImg, const ImageVector &corrOffset, MLint dcmTiffExtZ, const bool isDCMTiff, bool loadFullImage=false)
See corresponding function in ModuleLoaderBackends::CoreInterface.
MLMODULE_LOADER_BACKENDS_EXPORT MLErrorCode loadWithMLImageFormat(const std::string &pageFileName, SubImage &outSubImg, const ImageVector &corrOffset, MLImageFormat **loader, bool loadFullImage=false)
See corresponding function in ModuleLoaderBackends::CoreInterface.
MLMODULE_LOADER_BACKENDS_EXPORT MLErrorCode checkOrCreateReusableModule(const std::string &dllName, const std::string &moduleName, const std::vector< std::string > &expectedFields, Module **module, Module **moduleToUse)
@ InterleavedPlanarConfig
The MFL planar config enumerator kMFLfmtPcnfContig for "continuous" or interleaved such as RGBRGBRGB.
MLMODULE_LOADER_BACKENDS_EXPORT MLErrorCode loadWithMLItkImageFileReader(const std::string &pageFileName, SubImage &outSubImg, const ImageVector &corrOffset, MLDataType fileDataType, Module **loader, DCMTree::Const_TreePtr constTreePtr, bool dstIsRGB, std::string *metaDataDump=nullptr, bool loadFullImage=false, size_t itkLoadDim=3, bool hideErrorPosts=false, const SubImageBox &expectedImageExtent=SubImageBox())
See corresponding function in ModuleLoaderBackends::CoreInterface.
TSubImageBox< MLint > SubImageBox
Defines the standard SubImageBox type used in the ML. Its size varies with the size of the MLint type...
TImageVector< MLint > ImageVector
Defines the standard ImageVector type that is used by the ML for indexing and coordinates.