MeVisLab Toolbox Reference
Loading...
Searching...
No Matches
mlSubImage.h
Go to the documentation of this file.
1/*************************************************************************************
2**
3** Copyright 2007, MeVis Medical Solutions AG
4**
5** The user may use this file in accordance with the license agreement provided with
6** the Software or, alternatively, in accordance with the terms contained in a
7** written agreement between the user and MeVis Medical Solutions AG.
8**
9** For further information use the contact form at https://www.mevislab.de/contact
10**
11**************************************************************************************/
12
13#ifndef ML_SUB_IMAGE_H
14#define ML_SUB_IMAGE_H
15
19
20#include "mlInitSystemML.h"
21#include "mlImageProperties.h"
22
23#include "mlMemoryBlockHandle.h"
24#include "mlScaleShiftData.h"
25
26
28
29
30//-------------------------------------------------------------------------
33
73//-------------------------------------------------------------------------
75{
76
77public:
78 //---------------------------------------------------------------------------
81 //---------------------------------------------------------------------------
83 inline SubImage()
84 : //_box (),
85 _sourceImageExtent(0)
86 , _data(nullptr)
87 , _stride(0)
88 , _dataType(MLuint8Type)
89 , _dataTypeSize(1)
90 {}
91
92
95 inline SubImage(const SubImage& si)
96 : _box(si._box)
97 , _sourceImageExtent(si._sourceImageExtent)
98 , _data(si._data)
99 , _memoryBlock(si._memoryBlock)
100 , _stride(si._stride)
101 , _dataType(si._dataType)
102 , _dataTypeSize(si._dataTypeSize)
103 {}
104
108 inline SubImage(const SubImageBox& box, MLDataType datatype, void* data = nullptr)
109 : _box(box)
110 , _sourceImageExtent(0)
111 , _data(data)
112 , _stride(box.getExtent().getStrides())
113 , _dataType(datatype)
114 , _dataTypeSize(MLSizeOf(datatype))
115 {}
116
120 inline SubImage(const SubImage& si, const ImageVector& offset)
121 : _box(si._box)
122 , _sourceImageExtent(si._sourceImageExtent)
123 , _data(si._data)
124 , _memoryBlock(si._memoryBlock)
125 , _stride(si._stride)
126 , _dataType(si._dataType)
127 , _dataTypeSize(si._dataTypeSize)
128 {
129 _box.translate(offset);
130 }
131
133 inline virtual ~SubImage() = default;
134
138 {
139 if (this != &si) {
140 _box = si._box;
141 _sourceImageExtent = si._sourceImageExtent;
142 _data = si._data;
143 _memoryBlock = si._memoryBlock;
144 _stride = si._stride;
145 _dataType = si._dataType;
146 _dataTypeSize = si._dataTypeSize;
147 }
148 return *this;
149 }
151
152 //---------------------------------------------------------------------------
155 //---------------------------------------------------------------------------
158 inline void setBox(const SubImageBox& subImageBox)
159 {
160 _box = subImageBox;
161 _stride.set(subImageBox.getExtent().getStrides());
162 }
163
164
168 inline void setBox(const ImageVector& imageExtent)
169 {
170 _box = SubImageBox(imageExtent);
171 _stride.set(imageExtent.getStrides());
172 }
173
175 inline void translate(const ImageVector& offset)
176 {
177 _box.translate(offset);
178 }
179
181 inline const ImageVector& getOrigin() const
182 {
183 return _box.v1;
184 }
185
188 inline void setOrigin(const ImageVector& newOrigin)
189 {
190 ImageVector offset = _box.v2 - _box.v1;
191 _box.v1 = newOrigin;
192 _box.v2 = newOrigin + offset;
193 }
194
196 inline ImageVector getExtent() const
197 {
198 return _box.getExtent();
199 }
200
203 inline void setExtent(MLint x, MLint y, MLint z = 1, MLint c = 1, MLint t = 1, MLint u = 1)
204 {
205 setExtent(ImageVector(x, y, z, c, t, u));
206 }
207
209 inline void setExtent(const ImageVector& newExtent)
210 {
211 _box.v2 = _box.v1 + newExtent - 1;
212 _stride.set(newExtent.getStrides());
213 }
214
217 {
218 return SubImageBox(getExtent());
219 }
220
225 [[deprecated("Use getBoxFromExtent() instead.")]]
227 {
228 return getBoxFromExtent();
229 }
230
233 [[deprecated("Use getExtent() instead.")]]
235 {
236 return getExtent();
237 }
238
241 [[deprecated("Use setExtent() instead.")]]
243 {
244 setExtent(newExtent);
245 }
247
249 inline const SubImageBox& getBox() const
250 {
251 return _box;
252 }
253
256 inline void setSourceImageExtent(const ImageVector& extent)
257 {
258 _sourceImageExtent = extent;
259 }
260
264 {
265 return _sourceImageExtent;
266 }
267
274 {
275 SubImageBox sourceBox(_sourceImageExtent);
276 return SubImageBox::intersect(_box, sourceBox);
277 }
278
281 inline MLint getNumVoxels() const
282 {
283 return _box.getNumVoxels();
284 }
285
288 inline MLint getSizeInBytes() const
289 {
290 return getNumVoxels() * static_cast<MLint>(_dataTypeSize);
291 }
292
296 inline ImageVector getStride() const
297 {
298 return _stride;
299 }
300
302 inline MLint getOffset(const ImageVector& voxelPosition) const
303 {
304 return ImageVector::dot(voxelPosition, _stride);
305 }
307
308
309 //---------------------------------------------------------------------------
312 //---------------------------------------------------------------------------
313 inline void setDataType(MLDataType dataType)
314 {
315 _dataType = dataType;
316 _dataTypeSize = MLSizeOf(dataType);
317 }
318
320 inline MLDataType getDataType() const
321 {
322 return _dataType;
323 }
324
326 inline const MLTypeInfos* getDataTypeInfos() const
327 {
328 return MLGetTypeInfosForDataType(_dataType);
329 }
330
331
332 //---------------------------------------------------------------------------
335 //---------------------------------------------------------------------------
339 inline void* getSubImagePointer(const ImageVector& voxelPosition) const
340 {
341 // Use pointer arithmetic with one-byte sized data type, therefore we use a char pointer.
342 // (casting the offset to an unsigned type is ok - the resulting offset needs to be positive, and because of the
343 // wrap-around
344 // this would work for negative values anyway)
345 return static_cast<void*>(static_cast<char*>(_data) + static_cast<size_t>(ImageVector::dot(voxelPosition, _stride) *
346 static_cast<MLint>(_dataTypeSize)));
347 }
348
352 inline void* getSubImagePointer(MLint x, MLint y, MLint z) const
353 {
354 // Use pointer arithmetics with one-byte sized data type, therefore we use a char pointer.
355 // (casting the offset to an unsigned type is ok - the resulting offset needs to be positive, and because of the
356 // wrap-around
357 // this would work for negative values anyway)
358 return static_cast<void*>(
359 static_cast<char*>(_data) +
360 static_cast<size_t>((x * _stride.x + y * _stride.y + _stride.z * z) * static_cast<MLint>(_dataTypeSize)));
361 }
362
366 inline void* getImagePointer(const ImageVector& voxelPosition) const
367 {
368 return getSubImagePointer(voxelPosition - _box.v1);
369 }
370
374 inline void* getImagePointer(MLint x, MLint y, MLint z) const
375 {
376 return getSubImagePointer(x - _box.v1.x, y - _box.v1.y, z - _box.v1.z);
377 }
379
380
381 //---------------------------------------------------------------------------
384 //---------------------------------------------------------------------------
398
403
405
406 //---------------------------------------------------------------------------
409 //---------------------------------------------------------------------------
412 MLEXPORT bool isValid() const;
413
415 inline void* getData() const
416 {
417 return _data;
418 }
419
423 MLEXPORT void setData(void* data)
424 {
425 _memoryBlock.clear();
426 _data = data;
427 }
428
434 {
435 _memoryBlock = data;
436 _data = _memoryBlock.data();
437 }
438
443 {
444 return _memoryBlock;
445 }
446
447 //----------------------------------------------------------------------
452 //----------------------------------------------------------------------
453 MLEXPORT static MLint coordToIndex(MLint x, MLint y, MLint z, MLint c, MLint t, MLint u, const ImageVector& size);
454
455 //----------------------------------------------------------------------
459 //----------------------------------------------------------------------
460 MLEXPORT static MLint coordToIndex(const ImageVector& voxelPosition, const ImageVector& size);
461
462 //----------------------------------------------------------------------
466 //----------------------------------------------------------------------
467 MLEXPORT static ImageVector indexToCoord(MLint index, const ImageVector& extent);
469
470
471 //---------------------------------------------------------------------------
474 //---------------------------------------------------------------------------
479 inline bool isValidSubImagePosition(const ImageVector& voxelPosition) const
480 {
481 const ImageVector extent = getExtent();
482 return ((voxelPosition.x >= 0) && (voxelPosition.y >= 0) && (voxelPosition.z >= 0) && (voxelPosition.c >= 0) &&
483 (voxelPosition.t >= 0) && (voxelPosition.u >= 0) && voxelPosition.x < extent.x &&
484 voxelPosition.y < extent.y && voxelPosition.z < extent.z && voxelPosition.c < extent.c &&
485 voxelPosition.t < extent.t && voxelPosition.u < extent.u);
486 }
487
492 inline bool isValidSubImagePosition(MLint x, MLint y, MLint z) const
493 {
494 const ImageVector extent = getExtent();
495 return ((x >= 0) && (y >= 0) && (z >= 0) && (x < extent.x) && (y < extent.y) && (z < extent.z));
496 }
497
502 inline bool isValidImagePosition(const ImageVector& voxelPosition) const
503 {
504 return ((voxelPosition.x >= _box.v1.x) && (voxelPosition.y >= _box.v1.y) && (voxelPosition.z >= _box.v1.z) &&
505 (voxelPosition.c >= _box.v1.c) && (voxelPosition.t >= _box.v1.t) && (voxelPosition.u >= _box.v1.u) &&
506 (voxelPosition.x <= _box.v2.x) && (voxelPosition.y <= _box.v2.y) && (voxelPosition.z <= _box.v2.z) &&
507 (voxelPosition.c <= _box.v2.c) && (voxelPosition.t <= _box.v2.t) && (voxelPosition.u <= _box.v2.u));
508 }
509
514 inline bool isValidImagePosition(MLint x, MLint y, MLint z) const
515 {
516 return ((x >= _box.v1.x) && (y >= _box.v1.y) && (z >= _box.v1.z) && (x <= _box.v2.x) && (y <= _box.v2.y) &&
517 (z <= _box.v2.z));
518 }
520
521 //---------------------------------------------------------------------------
524 //---------------------------------------------------------------------------
541
544
554
555
556 //---------------------------------------------------------------------------
559 //---------------------------------------------------------------------------
560
561 //---------------------------------------------------------------------------
565 //---------------------------------------------------------------------------
566 MLEXPORT bool isOneValued() const;
567
568 //---------------------------------------------------------------------------
579 //---------------------------------------------------------------------------
581 const SubImageBox* const validBox = nullptr) const;
582
583 //---------------------------------------------------------------------------
606 //---------------------------------------------------------------------------
611
612
613 //-------------------------------------------------------------------------------------------
616 //-------------------------------------------------------------------------------------------
617
618 //---------------------------------------------------------------------------
620 //---------------------------------------------------------------------------
621 MLEXPORT void fill(MLdouble value);
622
623 //---------------------------------------------------------------------------
628 //---------------------------------------------------------------------------
630
631 //-------------------------------------------------------------------------------------------
636 //-------------------------------------------------------------------------------------------
638 //-------------------------------------------------------------------------------------------
639
640 //-------------------------------------------------------------------------------------------
647 //-------------------------------------------------------------------------------------------
649
650 //-------------------------------------------------------------------------------------------
659 //-------------------------------------------------------------------------------------------
661
662 //-------------------------------------------------------------------------------------------
669 //-------------------------------------------------------------------------------------------
671
675 {
676 fillBordersWithScalarValue(getValidRegion(), value);
677 }
678
682 {
683 fillBordersWithTypeData(getValidRegion(), value);
684 }
685
690 {
691 fillBordersWithBorderValues(getValidRegion());
692 }
693
695
696 //-------------------------------------------------------------------------------------------
700 //-------------------------------------------------------------------------------------------
702
703 //-------------------------------------------------------------------------------------------
708 //-------------------------------------------------------------------------------------------
710
711 // Debug output to std::ostream, unoptimized.
712 void toStream(std::ostream& ostr) const;
713
714protected:
715 //-------------------------------------------------------------------------------------------
732 //-------------------------------------------------------------------------------------------
737
740
743
746
749
751 void* _data;
752
755
760
763
764private:
767 size_t _dataTypeSize;
768};
769
771
772// Stream output for std::ostream
773namespace std
774{
776 MLEXPORT ostream& operator<<(ostream& s, const ML_NAMESPACE::SubImage& fc);
777} // namespace std
778
779#endif // of __mlSubImage_H
The strong handle of a MLMemoryBlock.
void * data() const
Returns the data of the memory block. If this handle is NULL, then NULL is returned.
This class represents basic image properties:
This class manages/represents a rectangular 6D image region that is organized linearly in memory.
Definition mlSubImage.h:75
const MLTypeInfos * _getDataTypeInfos(MLDataType dt) const
Returns MLTypeInfos for used datatypes, indicates error if the type dt is not registered.
void fillInvalidRegionWithScalarValue(MLdouble value)
Fills the invalid region (everything outside of getValidRegion()) with the given value.
Definition mlSubImage.h:674
SubImage & operator=(const SubImage &si)
Assignment operator to get identical copy.
Definition mlSubImage.h:137
ImageVector _stride
Stride vector to address the memory efficiently.
Definition mlSubImage.h:759
void * getSubImagePointer(const ImageVector &voxelPosition) const
Returns a pointer to voxel data of image voxel at 6D voxelPosition relative to the origin of the subi...
Definition mlSubImage.h:339
void setBox(const SubImageBox &subImageBox)
Sets a rectangular 6D region of the subimage to subImageBox.
Definition mlSubImage.h:158
MLEXPORT void compare(const SubImage &subImage2, bool *regionsMatch, bool *dataTypesMatch, bool *thisBoxIsPartOfRegion2, bool *region2IsPartOfThisBox, bool *overlapHasSameValues, ImageVector *firstMismatchPos) const
Compares two subimages with respect to their regions and their contents.
bool isValidSubImagePosition(const ImageVector &voxelPosition) const
Returns true if the 6D voxelPosition is a valid position within the subimage region,...
Definition mlSubImage.h:479
void * getImagePointer(const ImageVector &voxelPosition) const
Returns a pointer to voxel data of image voxel at 6D position voxelPosition relative to the origin of...
Definition mlSubImage.h:366
void fillInvalidRegionWithTypeData(const MLTypeData *value)
Fills the invalid region (everything outside of getValidRegion()) with the given value.
Definition mlSubImage.h:681
const SubImageBox & getBox() const
Returns the box describing the origin/extent of the subimage.
Definition mlSubImage.h:249
virtual ~SubImage()=default
Virtual destructor to suppress compiler warnings.
void setDataType(MLDataType dataType)
Override the inherited setDataType method to set type of data to dataType.
Definition mlSubImage.h:313
void translate(const ImageVector &offset)
Translates the box of the subimage by adding the vector offset.
Definition mlSubImage.h:175
MLEXPORT void allocateAsMemoryBlockHandle(MLMemoryErrorHandling handleFailure=ML_RETURN_NULL)
Allocates data using the ML memory manager. For failure handing, see SubImage::allocate().
MLDataType getDataType() const
Returns the type of image data.
Definition mlSubImage.h:320
MLEXPORT bool isOneValued() const
Returns true if all page voxels have the same value or if the page contains only one voxel.
SubImageBox getBoxFromImageExtent() const
Definition mlSubImage.h:226
SubImage(const SubImage &si, const ImageVector &offset)
Copy constructor to get identical copy.
Definition mlSubImage.h:120
MLMemoryBlockHandle _memoryBlock
Memory block used by this subimage.
Definition mlSubImage.h:754
SubImageBox _box
The box of the subimage.
Definition mlSubImage.h:745
void _calcFillAreaParams(const SubImageBox &box, const SubImageBox &maxValidInputRegion, ImageVector &boxV1, ImageVector &boxV2, ImageVector &outputTSubImageV1, ImageVector &outputTSubImageV2, MLint &fullLineLenX, MLint &fullLineLenXB, MLint &leftLineStartX, MLint &leftLineLenX, MLint &leftLineLenXB, MLint &rightLineStartX, MLint &rightLineLenX, MLint &rightLineLenXB)
Helper method to calculate important parameters for page based border filling.
void setExtent(const ImageVector &newExtent)
Sets the extent of the subimage to newExtent. This also changes the strides.
Definition mlSubImage.h:209
SubImage(const SubImage &si)
Copy constructor to get identical copy.
Definition mlSubImage.h:95
MLEXPORT MLint calculateMinMax(MLdouble &minValue, MLdouble &maxValue, const SubImageBox *const validBox=nullptr) const
Scans subimage and determines minimum and maximum values on region, which is part of subimage box and...
ImageVector getExtent() const
Returns the extent of the subimage, which is identical to getBox().getExtent().
Definition mlSubImage.h:196
ImageVector getStride() const
Returns a stride vector to address the memory efficiently.
Definition mlSubImage.h:296
const ImageVector & getOrigin() const
Returns the origin of the subimage, which is identical to getBox().v1.
Definition mlSubImage.h:181
SubImageBox getValidRegion() const
Returns the valid region of the SubImage, which is defined by the intersection of the SubImage::getBo...
Definition mlSubImage.h:273
void setExtent(MLint x, MLint y, MLint z=1, MLint c=1, MLint t=1, MLint u=1)
Sets the extent of the subimage to newExtent.
Definition mlSubImage.h:203
void _copySubImageGeneric(const SubImage &fromImage, const ScaleShiftData &scaleShiftData)
Generic, non-optimized version of copySubImage.
void toStream(std::ostream &ostr) const
MLEXPORT void free()
Frees data pointed to by getData() with MLFree().
MLEXPORT void allocate(MLMemoryErrorHandling handleFailure)
Allocates data with MLAlloc().
void setSourceImageExtent(const ImageVector &extent)
Sets the image extent of the source image that was used to create this SubImage to extent.
Definition mlSubImage.h:256
void * _data
Memory chunk managed by this subimage.
Definition mlSubImage.h:751
static MLEXPORT MLint coordToIndex(const ImageVector &voxelPosition, const ImageVector &size)
Converts the coordinate voxelPosition into the image with extents size to an index.
MLEXPORT void copySubImage(const SubImage &fromImage)
Implements a special case for void copySubImage(const TSubImage<FROM_DATATYPE> &typedFromImg,...
MLEXPORT void fillBordersWithInputValues(const SubImageBox &box, const SubImage &inputSubImage)
Fills all regions with values from inputSubImage which are not covered by box; however,...
static MLEXPORT MLint coordToIndex(MLint x, MLint y, MLint z, MLint c, MLint t, MLint u, const ImageVector &size)
Converts the coordinate (x, y, z, c, t,u) to an index into an image with 6D extents given by size.
MLEXPORT void fillBordersWithScalarValue(const SubImageBox &box, MLdouble fillValue)
Fills all regions with the fill value fillValue that are not covered by box.
void setOrigin(const ImageVector &newOrigin)
Sets the origin of the subimage, which moves the box of the subimage to newOrigin.
Definition mlSubImage.h:188
void fillInvalidRegionWithBorderValues()
Fills the invalid region.
Definition mlSubImage.h:689
SubImage(const SubImageBox &box, MLDataType datatype, void *data=nullptr)
Constructor for a rectangular 6D image region with position and extent given by box,...
Definition mlSubImage.h:108
MLint getOffset(const ImageVector &voxelPosition) const
Returns the array index offset from the origin (0,0,0,0,0,0) to the voxelPosition.
Definition mlSubImage.h:302
void * getData() const
Returns the memory address of the memory managed by the subimage.
Definition mlSubImage.h:415
bool isValidImagePosition(MLint x, MLint y, MLint z) const
Returns true if the 3D position p=(x, y, z) is a valid position within the subimage region,...
Definition mlSubImage.h:514
SubImage()
Constructor: Creates a subimage with no data.
Definition mlSubImage.h:83
bool isValidSubImagePosition(MLint x, MLint y, MLint z) const
Returns true if the 3D position p=(x, y, z) is a valid position within the subimage region,...
Definition mlSubImage.h:492
MLEXPORT bool isValid() const
Returns 1 (=true) if image region and data is valid.
SubImageBox getBoxFromExtent() const
Returns the size of image as box with origin 0.
Definition mlSubImage.h:216
MLint getSizeInBytes() const
Returns number of potential bytes in (sub)image.
Definition mlSubImage.h:288
ImageVector getSourceImageExtent() const
Returns the image extent of the source image that was used to create this SubImage.
Definition mlSubImage.h:263
void * getImagePointer(MLint x, MLint y, MLint z) const
Returns a pointer to voxel data of image voxel at 3D position p=(x, y, z) relative to the origin of t...
Definition mlSubImage.h:374
bool isValidImagePosition(const ImageVector &voxelPosition) const
Returns true if the 6D voxelPosition is a valid position within the subimage region,...
Definition mlSubImage.h:502
void setImageExtent(const ImageVector &newExtent)
Definition mlSubImage.h:242
MLEXPORT void setFromImageProperties(const ImageProperties &imageProperties)
Sets the image box and data type from the imageProperties extent and data type.
MLEXPORT void fillBordersWithTypeData(const SubImageBox &box, const MLTypeData *fillValue)
Fills all regions with the fill value fillValue which are not covered by box.
const MLMemoryBlockHandle & getMemoryBlockHandle() const
Returns the memory block handle that manages the data of this SubImage if it has been set via setData...
Definition mlSubImage.h:442
MLEXPORT ImageProperties toImageProperties() const
Converts the Subimage's data type and extend to an ImageProperties object.
MLint getNumVoxels() const
Returns number of voxels in (sub)image.
Definition mlSubImage.h:281
MLEXPORT void fillWithTypeData(const MLTypeData *value)
Fills the subimage with a value given as MLTypeData.
MLEXPORT void fill(MLdouble value)
Fills the subimage with a value that is cast to the data type of the subimage.
MLEXPORT void setDataFromMemoryBlockHandle(const MLMemoryBlockHandle &data)
Sets the managed data from a given MLMemoryBlockHandle, the subimage will store this handle and thus ...
Definition mlSubImage.h:433
ImageVector getImageExtent() const
Definition mlSubImage.h:234
static MLEXPORT ImageVector indexToCoord(MLint index, const ImageVector &extent)
Converts an index into an array with extents extent to a coordinate.
const MLTypeInfos * getDataTypeInfos() const
Returns MLTypeInfos for image data type.
Definition mlSubImage.h:326
void * getSubImagePointer(MLint x, MLint y, MLint z) const
Returns a pointer to voxel data of image voxel at 3D position p=(x,y,z) relative to the origin of the...
Definition mlSubImage.h:352
MLEXPORT void fillBordersWithBorderValues(const SubImageBox &box)
Each voxel that is not inside box is filled with the voxel value of the nearest voxel that is inside ...
MLEXPORT void copySubImage(const SubImage &fromImage, const ScaleShiftData &scaleShiftData)
Copies image data from the subimage fromImage into the overlapping region of this subimage.
MLEXPORT void setData(void *data)
Sets data as a new memory block for the subimage.
Definition mlSubImage.h:423
void setBox(const ImageVector &imageExtent)
Sets a rectangular 6D region of the subimage to imageExtent.
Definition mlSubImage.h:168
ImageVector _sourceImageExtent
The extent of the source image, which is used for getValidRegion().
Definition mlSubImage.h:748
MLDataType _dataType
Data type of the image.
Definition mlSubImage.h:762
MLEXPORT size_t MLSizeOf(MLDataType dataType)
Returns the size of the data type dataType in bytes.
MLint32 MLDataType
MLDataType.
Definition mlTypeDefs.h:592
@ MLuint8Type
Enumerator for the unsigned 8-bit ML integer type.
Definition mlTypeDefs.h:617
MLEXPORT MLTypeInfos * MLGetTypeInfosForDataType(MLDataType dataType)
Returns the MLTypeInfos for the data type dataType, or NULL on non-registered or invalid type.
#define MLEXPORT
To export symbols from a DLL/shared object, we need to mark them with the MLEXPORT symbol.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
MLMemoryErrorHandling
Enumerator to specify memory error handling.
Definition mlTypeDefs.h:727
@ ML_RETURN_NULL
On allocation failure, NULL is returned without error handling.
Definition mlTypeDefs.h:728
double MLdouble
Definition mlTypeDefs.h:217
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 ...
Definition mlTypeDefs.h:489
std::ostream & operator<<(std::ostream &out, const ml::Variant &variant)
Definition mlVariant.h:231
STL namespace.
Structure containing all data type features and pointers to all functions needed to implement operati...