13 #ifndef ML_IMAGE_FORMAT_TOOLS_H
14 #define ML_IMAGE_FORMAT_TOOLS_H
31 class MLImageFormatInfos;
33 class MLImageFormatIdxTable;
42 friend class MLImageFormatSaveHandler;
47 AllowPartialPages = 1,
49 SaveOnlyDefaultValue = 2
126 const std::string &fileName,
127 bool truncate =
false,
128 const std::string &compressorName =
"",
129 const MLImageFormatTagList &compressionTagList = MLImageFormatTagList::getDefaultEmptyTagList(),
132 const std::string &defaultVoxelValue =
"0",
133 bool rewritable =
true,
134 bool suppressReadCheckSumTests =
false);
141 bool truncate =
false,
142 const std::string &compressorName =
"",
143 const MLImageFormatTagList &compressionTagList = MLImageFormatTagList::getDefaultEmptyTagList(),
146 const std::string &defaultVoxelValue =
"0",
147 bool rewritable =
true,
148 bool suppressReadCheckSumTests =
false);
187 MLImageFormatNotifyCB *callback =
nullptr,
188 void *userData =
nullptr,
190 MLuint32 saveModeBits = DefaultSaveMode,
242 MLImageFormatNotifyCB *callback ,
245 MLuint32 saveModeBits = DefaultSaveMode,
273 MLImageFormatNotifyCB *callback ,
276 MLuint32 saveModeBits = DefaultSaveMode,
314 bool useFileDataType,
342 const std::string &fileName);
384 const size_t savedPageSizeInBytes,
385 const size_t expectedSizeInBytes,
435 MLImageFormatNotifyCB *callback,
438 bool replaceAreaToSave,
472 const bool isOutsideAreaToSave,
475 const bool replaceOnlyWrittenPageIds,
Abstract base class for ML data compression algorithms.
Class which represents an image, which manages properties of an image and image data which is located...
This class manages/represents a rectangular 6d image region which is organized linearly in memory.
Class to measure precise time intervals.
MLint32 MLErrorCode
Type of an ML Error code.
unsigned char MLTypeData
This is the pointer type used to point to the data of MLType data instances.
MLint64 MLint
A signed ML integer type with at least 64 bits used for index calculations on very large images even ...
TScaleShiftData< MLdouble > ScaleShiftData
Double version of TScaleShiftData for maximum reasonable precision.
TSubImageBox< MLint > SubImageBox
Define the standard SubImageBox type used in the ML. Its size varies with the size of the MLint type.