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
127 const std::string &fileName,
128 bool truncate =
false,
129 const std::string &compressorName =
"",
130 const MLImageFormatTagList &compressionTagList = MLImageFormatTagList::getDefaultEmptyTagList(),
133 const std::string &defaultVoxelValue =
"0",
134 bool rewritable =
true,
135 bool suppressReadCheckSumTests =
false);
142 bool truncate =
false,
143 const std::string &compressorName =
"",
144 const MLImageFormatTagList &compressionTagList = MLImageFormatTagList::getDefaultEmptyTagList(),
147 const std::string &defaultVoxelValue =
"0",
148 bool rewritable =
true,
149 bool suppressReadCheckSumTests =
false);
188 MLImageFormatNotifyCB *callback =
nullptr,
189 void *userData =
nullptr,
191 MLuint32 saveModeBits = DefaultSaveMode,
243 MLImageFormatNotifyCB *callback ,
246 MLuint32 saveModeBits = DefaultSaveMode,
274 MLImageFormatNotifyCB *callback ,
277 MLuint32 saveModeBits = DefaultSaveMode,
315 bool useFileDataType,
343 const std::string &fileName);
385 const size_t savedPageSizeInBytes,
386 const size_t expectedSizeInBytes,
436 MLImageFormatNotifyCB *callback,
439 bool replaceAreaToSave,
473 const bool isOutsideAreaToSave,
476 const bool replaceOnlyWrittenPageIds,
Abstract base class for ML data compression algorithms.
The class PagedImage, representing a fragmented image that manages properties and data of an image lo...
This class manages/represents a rectangular 6D image region that 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
Defines the standard SubImageBox type used in the ML. Its size varies with the size of the MLint type...