MeVisLab Toolbox Reference
mlDMFileReaderTools.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
15
17#include <mlDMFileReaderDefs.h>
18
19ML_START_NAMESPACE
20
23
26
30
33
41 MLuint64 dataPos,
43 MLuint64 byteOffset=0);
44
52 MLuint64 dataPos,
54 MLuint64 byteOffset=0);
55
63 MLuint64 dataPos,
65 MLuint64 byteOffset=0);
67 MLDMFileReader_EXPORT DMTagPtr DMGetTag(const std::string &label,
68 const DMTagPtrVector &tagVec);
69
72 const DMTagPtrVector &tagVec);
73
78 MLDMFileReader_EXPORT DMTagPtrVector DMGetTags(const std::string &groupTagName1,
79 const std::string &groupTagName2,
80 const DMTagPtrVector &tagVec);
81
87 MLDMFileReader_EXPORT DMTagPtrVector DMGetTags(const std::string &groupTagName1,
88 const std::string &groupTagName2,
89 const std::string &groupTagName3,
90 const DMTagPtrVector &tagVec);
91
96 MLDMFileReader_EXPORT DMTagPtr DMGetTag(const std::string &groupTagName1,
97 const std::string &tagName,
98 const DMTagPtrVector &tagVec);
99
105 MLDMFileReader_EXPORT DMTagPtr DMGetTag(const std::string &groupTagName1,
106 const std::string &groupTagName2,
107 const std::string &tagName,
108 const DMTagPtrVector &tagVec);
109
116 MLDMFileReader_EXPORT DMTagPtr DMGetTag(const std::string &groupTagName1,
117 const std::string &groupTagName2,
118 const std::string &groupTagName3,
119 const std::string &tagName,
120 const DMTagPtrVector &tagVec);
121
123 MLDMFileReader_EXPORT std::vector<DMImageDataStructPtr> DMSetUpImageStructs(DMFileReader &reader);
124
125ML_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.
MLint32 MLDataType
MLDataType.
Definition mlTypeDefs.h:595
Project wide definitions.
UINT64 MLuint64
Introduce platform-independent 64-bit unsigned integer type.
Definition mlTypeDefs.h:424
INT64 MLint64
Include 64-bit integer support for Windows or Unix.
Definition mlTypeDefs.h:411
MLDMFileReader_EXPORT std::vector< DMImageDataStructPtr > DMSetUpImageStructs(DMFileReader &reader)
Search all image data structures in the open reader and return them as list.
MLDMFileReader_EXPORT MLuint64 DMGetEncodedSimpleTypeByteSize(DMEncodedStructureType encType)
Returns the byte size of the encoded simple, on arrays, structs or bad types it returns 0.
boost::shared_ptr< DMTag > DMTagPtr
Boost shared-pointer type definitions for DMTagEntry.
MLDMFileReader_EXPORT MLDataType DMPixelDataTypeToMLType(DMEncodedVoxelDataType encType)
Converts a DM pixel data type to the corresponding MLDataType or to ML_INVALID_DATA_TYPE if not possi...
MLDMFileReader_EXPORT std::string DMGetDataTypeAsString(DMEncodedStructureType encType)
Returns a human readable string version for the provided encType.
MLDMFileReader_EXPORT DMTagPtrVector DMGetTags(const std::string &label, const DMTagPtrVector &tagVec)
Returns all tags with label in tagVec or an empty vector if not found.
MLDMFileReader_EXPORT MLint64 DMGetSimpleEncodedMemoryValueAsMLint64(DMFileReader &reader, MLuint64 dataPos, DMEncodedStructureType encType, MLuint64 byteOffset=0)
MLDMFileReader_EXPORT double DMGetSimpleEncodedMemoryValueAsDouble(DMFileReader &reader, MLuint64 dataPos, DMEncodedStructureType encType, MLuint64 byteOffset=0)
DMEncodedVoxelDataType
Enumerator describing the DMReader encoded voxel data type; the enumerator value corresponds to the v...
std::vector< DMTagPtr > DMTagPtrVector
Vector of shared pointers to DMTags.
MLDMFileReader_EXPORT MLDataType DMEncodedStructureTypeToMLType(DMEncodedStructureType encType)
Converts encType to the corresponding MLDataType or to ML_INVALID_DATA_TYPE if not possible.
MLDMFileReader_EXPORT DMTagPtr DMGetTag(const std::string &label, const DMTagPtrVector &tagVec)
Returns the first tag with label in tagVec or nullptr if not found.
MLDMFileReader_EXPORT MLuint64 DMGetSimpleEncodedMemoryValueAsMLuint64(DMFileReader &reader, MLuint64 dataPos, DMEncodedStructureType encType, MLuint64 byteOffset=0)
DMEncodedStructureType
Enumerator describing the encoded type; the enumerator value is the same as the stored value in file.