MeVisLab Toolbox Reference
mlDMImageDataStruct.h
Go to the documentation of this file.
1 // Copyright (c) Fraunhofer MEVIS, Germany. All rights reserved.
2 // **InsertLicense** code
3 //----------------------------------------------------------------------------------
5 
10 //----------------------------------------------------------------------------------
11 
12 #pragma once
13 
14 #include "MLDMFileReaderSystem.h"
15 
17 #include <mlDMFileReaderDefs.h>
18 #include <mlLinearAlgebra.h>
19 
20 ML_START_NAMESPACE
21 
22 //----------------------------------------------------------------------------------
24 //----------------------------------------------------------------------------------
26  public:
29  DMImageDataStruct(DMTagPtr imageDataGroup,
30  DMFileReader &reader);
31 
34 
37 
40 
43 
46 
49 
52 
54  bool isInverted;
55 
58 
60  bool isUsableAsMLImage() const;
61 
64  std::string getAsString(std::string prefix="",
65  const std::string &sep=", ") const;
66 
67  private:
69  DMImageDataStruct &operator=(const DMImageDataStruct &);
70 
73 };
74 
76 MLDMFileReader_EXPORT std::ostream& operator<<(std::ostream& os, const DMImageDataStruct &obj);
77 
78 ML_END_NAMESPACE
Project global and OS specific declarations.
#define MLDMFileReader_EXPORT
If included by external modules, exported symbols are declared as import symbols.
A tool classes to load Digital Microscopy files.
Representation for the DM file as data structure.
MLuint64 dmDataType
Corresponding ML data type.
bool isUsableAsMLImage() const
Return true if the image seems to be a usable ML image, otherwise false.
Vector3 pixelSize
Pixel scaling.
MLuint64 pixelDepth
Number of bytes per pixel.
MLint dimensionY
Image extents-Y.
MLint dimensionX
Image extents-X.
DMTagPtr dataPtr
Tag pointer with the image data.
std::string getAsString(std::string prefix="", const std::string &sep=", ") const
Convert content to a human readable string with the prefix prefix before all lines and separator sep ...
bool isInverted
True if the data shall be displayed inverted.
Vector3 origin
World origin of image.
DMImageDataStruct(DMTagPtr imageDataGroup, DMFileReader &reader)
Constructor initializing the data structure from the tag which is expected to be an ImageDataGroup.
MLDataType mlDataType
Corresponding ML data type.
MLint32 MLDataType
MLDataType.
Definition: mlTypeDefs.h:684
Project wide definitions.
UINT64 MLuint64
Introduce platform independent 64 bit unsigned integer type.
Definition: mlTypeDefs.h:513
MLint64 MLint
A signed ML integer type with at least 64 bits used for index calculations on very large images even ...
Definition: mlTypeDefs.h:578
boost::shared_ptr< DMTag > DMTagPtr
Boost shared-pointer type definitions for DMTagEntry.
MLDMFileReader_EXPORT std::ostream & operator<<(std::ostream &os, const DMImageDataStruct &obj)
Output to std::ostream.