|
MeVisLab Toolbox Reference
|
DICOM palette container which is to be used for ML index image to RGB image voxel translation. More...
#include <mlDICOMTagPaletteTools.h>
Public Member Functions | |
| DicomPaletteInfo () | |
| Default constructor. | |
| ~DicomPaletteInfo () | |
| Default destructor. | |
| DicomPaletteInfo (const DicomPaletteInfo &inputInfo) | |
| Copy constructor. | |
| DicomPaletteInfo & | operator= (const DicomPaletteInfo &inputInfo) |
| Assignment operator. | |
| bool | operator== (const DicomPaletteInfo &inputInfo) const |
| Comparison operator, equals on content equality (arrays can have different pointers but need to have same content in valid areas). | |
| bool | operator!= (const DicomPaletteInfo &inputInfo) const |
| Comparison operator, returns false on content inequality (different array pointers are not handled as difference if they have same content in valid areas). | |
| bool | isValid () const |
| Returns true if the palette looks valid, otherwise false. | |
| void | reset () |
| Makes contents invalid, reset to default construction state. | |
Public Attributes | |
| MLDataType | dataType = ML_INVALID_DATA_TYPE |
| MLDataType of color table entries, MLuint8Type or MLuint16Type or ML_INVALID_DATA_TYPE if not defined. | |
| MLint32 | minVal = 0 |
| Minimum voxel value to map to a color, all smaller voxel values shall be clamped to it, or in case of a supplemental LUT, shall be mapped as normal grayscale image. | |
| MLint32 | maxVal = 0 |
| Maximum voxel value to map to a color, all larger voxel values shall be clamped to it. | |
| MLuint32 | numEntries = 0 |
| Number of valid table entries in rgbLUT, at most 65536. | |
| bool | usesAlpha = false |
| True if alpha channel is valid, otherwise false. | |
| bool | isSupplementalPaletteLUT = false |
| If true then the rgbaFloatLUT is used and has a meaning according to a Supplemental LUT according to DICOM standard, otherwise rgbaLUT is used. | |
| MLuint16 * | rgbaLUT = nullptr |
| Table of RGB[A] values as MLuint16 values if isSupplementalPaletteLUT is false, otherwise undefined. | |
| MLfloat * | rgbaFloatLUT = nullptr |
| Table of RGB[A] values as MLfloat values if isSupplementalPaletteLUT is true, otherwise undefined. | |
| MLuint16 | minLUTEntry = ML_UINT16_MAX |
| Minimum value found in all entries of LUT in any of the R, G, or B channels (but not Alpha even if it is valid); only valid if <= maxLUTEntry. | |
| MLuint16 | maxLUTEntry = ML_UINT16_MIN |
| Maximum value found in all entries of LUT in any of the R, G, or B channels (but not Alpha even if it is valid); only valid if >= minLUTEntry. | |
DICOM palette container which is to be used for ML index image to RGB image voxel translation.
Definition at line 35 of file mlDICOMTagPaletteTools.h.
|
inline |
Default constructor.
Definition at line 37 of file mlDICOMTagPaletteTools.h.
|
inline |
Default destructor.
Definition at line 43 of file mlDICOMTagPaletteTools.h.
|
inline |
Copy constructor.
Definition at line 49 of file mlDICOMTagPaletteTools.h.
|
inline |
Returns true if the palette looks valid, otherwise false.
Definition at line 101 of file mlDICOMTagPaletteTools.h.
References MLfloatType, MLuint16Type, and MLuint8Type.
|
inline |
Comparison operator, returns false on content inequality (different array pointers are not handled as difference if they have same content in valid areas).
Definition at line 95 of file mlDICOMTagPaletteTools.h.
References ml::operator==().
|
inline |
Assignment operator.
Definition at line 56 of file mlDICOMTagPaletteTools.h.
References dataType, isSupplementalPaletteLUT, maxLUTEntry, maxVal, minLUTEntry, minVal, numEntries, rgbaFloatLUT, rgbaLUT, and usesAlpha.
|
inline |
Comparison operator, equals on content equality (arrays can have different pointers but need to have same content in valid areas).
Definition at line 78 of file mlDICOMTagPaletteTools.h.
References dataType, isSupplementalPaletteLUT, maxLUTEntry, maxVal, minLUTEntry, minVal, numEntries, rgbaFloatLUT, rgbaLUT, and usesAlpha.
|
inline |
Makes contents invalid, reset to default construction state.
Definition at line 111 of file mlDICOMTagPaletteTools.h.
References ML_INVALID_DATA_TYPE, ML_UINT16_MAX, and ML_UINT16_MIN.
| MLDataType ml::DICOMTagTools::DicomPaletteInfo::dataType = ML_INVALID_DATA_TYPE |
MLDataType of color table entries, MLuint8Type or MLuint16Type or ML_INVALID_DATA_TYPE if not defined.
Definition at line 127 of file mlDICOMTagPaletteTools.h.
Referenced by operator=(), and operator==().
| bool ml::DICOMTagTools::DicomPaletteInfo::isSupplementalPaletteLUT = false |
If true then the rgbaFloatLUT is used and has a meaning according to a Supplemental LUT according to DICOM standard, otherwise rgbaLUT is used.
Definition at line 144 of file mlDICOMTagPaletteTools.h.
Referenced by operator=(), and operator==().
| MLuint16 ml::DICOMTagTools::DicomPaletteInfo::maxLUTEntry = ML_UINT16_MIN |
Maximum value found in all entries of LUT in any of the R, G, or B channels (but not Alpha even if it is valid); only valid if >= minLUTEntry.
Definition at line 156 of file mlDICOMTagPaletteTools.h.
Referenced by operator=(), and operator==().
| MLint32 ml::DICOMTagTools::DicomPaletteInfo::maxVal = 0 |
Maximum voxel value to map to a color, all larger voxel values shall be clamped to it.
Definition at line 134 of file mlDICOMTagPaletteTools.h.
Referenced by operator=(), and operator==().
| MLuint16 ml::DICOMTagTools::DicomPaletteInfo::minLUTEntry = ML_UINT16_MAX |
Minimum value found in all entries of LUT in any of the R, G, or B channels (but not Alpha even if it is valid); only valid if <= maxLUTEntry.
Definition at line 153 of file mlDICOMTagPaletteTools.h.
Referenced by operator=(), and operator==().
| MLint32 ml::DICOMTagTools::DicomPaletteInfo::minVal = 0 |
Minimum voxel value to map to a color, all smaller voxel values shall be clamped to it, or in case of a supplemental LUT, shall be mapped as normal grayscale image.
Definition at line 131 of file mlDICOMTagPaletteTools.h.
Referenced by operator=(), and operator==().
| MLuint32 ml::DICOMTagTools::DicomPaletteInfo::numEntries = 0 |
Number of valid table entries in rgbLUT, at most 65536.
Definition at line 137 of file mlDICOMTagPaletteTools.h.
Referenced by operator=(), and operator==().
| MLfloat* ml::DICOMTagTools::DicomPaletteInfo::rgbaFloatLUT = nullptr |
Table of RGB[A] values as MLfloat values if isSupplementalPaletteLUT is true, otherwise undefined.
Definition at line 150 of file mlDICOMTagPaletteTools.h.
Referenced by operator=(), and operator==().
| MLuint16* ml::DICOMTagTools::DicomPaletteInfo::rgbaLUT = nullptr |
Table of RGB[A] values as MLuint16 values if isSupplementalPaletteLUT is false, otherwise undefined.
Definition at line 147 of file mlDICOMTagPaletteTools.h.
Referenced by operator=(), and operator==().
| bool ml::DICOMTagTools::DicomPaletteInfo::usesAlpha = false |
True if alpha channel is valid, otherwise false.
Definition at line 140 of file mlDICOMTagPaletteTools.h.
Referenced by operator=(), and operator==().