MeVisLab Toolbox Reference
mlDicomTreeMinMaxTools.h
Go to the documentation of this file.
1 // Copyright (c) Fraunhofer MEVIS, Germany. All rights reserved.
2 // **InsertLicense** code
3 //----------------------------------------------------------------------------------
5 
10 //----------------------------------------------------------------------------------
11 #pragma once
12 
13 // Local includes
14 #include "MLDicomToMLToolsSystem.h"
15 
16 // ML includes
17 #include <mlModuleIncludes.h>
18 
19 // DICOM tree prototypes.
20 #include <DCMTree_Lib.h>
21 
22 ML_START_NAMESPACE
23 
24 // Forwards
25 class DicomMessageCollector;
26 
27 //----------------------------------------------------------------------------------
30 //----------------------------------------------------------------------------------
31 namespace DicomToMLTools {
32 
38 
40  };
41 
44 
55  DCMTree::Const_DictPtr dcmTreeDictPtr,
56  double smallestPixelValue,
57  double largestPixelValue,
58  DCMTree::TreePtr dcmTree);
59 
71  MLdouble &minPixVal,
72  MLdouble &maxPixVal,
73  DicomMessageCollector &dcmMsgCollector);
74 
93  MLint64 &minValInt64,
94  MLint64 &maxValInt64,
95  MLdouble &minValDbl,
96  MLdouble &maxValDbl,
97  DicomMessageCollector &dcmMsgCollector);
98 
104  PagedImage &pagedImg);
105 
106 };
107 
108 ML_END_NAMESPACE
Project global and OS specific declarations.
#define MLDICOM_TO_ML_TOOLS_EXPORT
DLL export macro definition.
Class to collect messages and errors related to a given frame handle.
Class which represents an image, which manages properties of an image and image data which is located...
Definition: mlPagedImage.h:70
double MLdouble
Definition: mlTypeDefs.h:223
INT64 MLint64
Include 64 bit integer support for Windows or Unix.
Definition: mlTypeDefs.h:500
boost::shared_ptr< const Tree > Const_TreePtr
Definition: DCMTree_Lib.h:73
boost::shared_ptr< const Dict > Const_DictPtr
Definition: DCMTree_Dict.h:53
boost::shared_ptr< Tree > TreePtr
shared pointer to a DCMTree::Tree
Definition: DCMTree_Lib.h:70
MLDICOM_TO_ML_TOOLS_EXPORT const char *const CalculateMinMaxFromDicomModesEnumStrings[NUM__CALC_MIN_MAX_FROM_DICOM_ENUMS]
Strings names corresponding to the selectable DplMinMaxEnums.
CalculateMinMaxFromDicomModes
Available selectable DPL configurations.
@ CalculateMinMaxMaxScanImageData
Pixel data tags are scanned regardless of SmallestPixelValue or LargestPixelValue tags.
@ NUM__CALC_MIN_MAX_FROM_DICOM_ENUMS
Number of available min/max calculation modes (no valid mode!).
@ CalculateMinMaxAutomatic
Automatically select either CalculateMinMaxOnlyFromDicomTags or CalculateMinMaxMaxScanImageData mode.
@ CalculateMinMaxOnlyFromDicomTags
Determine min/max values only from DICOM tags SmallestPixelValue or LargestPixelValue,...
MLDICOM_TO_ML_TOOLS_EXPORT bool guessMinMaxRangeFromDICOMTags(DCMTree::Const_TreePtr treePtr, MLdouble &minPixVal, MLdouble &maxPixVal, DicomMessageCollector &dcmMsgCollector)
Try to guess a min/max range from DICOM tags for the case that they cannot be determined in another w...
MLDICOM_TO_ML_TOOLS_EXPORT void calcImageDataMinMaxFromTag(DCMTree::Const_TreePtr &treePtr, MLint64 &minValInt64, MLint64 &maxValInt64, MLdouble &minValDbl, MLdouble &maxValDbl, DicomMessageCollector &dcmMsgCollector)
Traverse all pixel values in the first found pixel data tag in the tree given by treePtr and returns ...
MLDICOM_TO_ML_TOOLS_EXPORT void setUpMinMaxVoxelValues(std::string &errStr, DCMTree::Const_DictPtr dcmTreeDictPtr, double smallestPixelValue, double largestPixelValue, DCMTree::TreePtr dcmTree)
Set up DCMTree_SmallestImagePixelValue and DCMTree_LargestImagePixelValue tags in dcmTree; requires t...
MLDICOM_TO_ML_TOOLS_EXPORT void determineMinMaxValues(DCMTree::Const_TreePtr treePtr, PagedImage &pagedImg)
Update min/max voxel values of pagedImg from tags in treePtr if possible, otherwise these settings ar...