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
15
16// ML includes
17#include <mlModuleIncludes.h>
18
19// DICOM tree prototypes.
20#include <DCMTree_Lib.h>
21
23
24// Forwards
25class DicomMessageCollector;
26
27//----------------------------------------------------------------------------------
30//----------------------------------------------------------------------------------
31namespace DicomToMLTools {
32
41
43 extern MLDICOM_TO_ML_TOOLS_EXPORT const char * const CalculateMinMaxFromDicomModesEnumStrings[NUM__CALC_MIN_MAX_FROM_DICOM_ENUMS];
44
56 double smallestPixelValue,
57 double largestPixelValue,
58 DCMTree::TreePtr dcmTree);
59
73 DicomMessageCollector &dcmMsgCollector);
74
97 DicomMessageCollector &dcmMsgCollector);
98
105
106};
107
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...
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
double MLdouble
Definition mlTypeDefs.h:217
INT64 MLint64
Include 64 bit integer support for Windows or Unix.
Definition mlTypeDefs.h:412
boost::shared_ptr< const Tree > Const_TreePtr
Definition DCMTree_Lib.h:73
boost::shared_ptr< const Dict > Const_DictPtr
boost::shared_ptr< Tree > TreePtr
shared pointer to a DCMTree::Tree
Definition DCMTree_Lib.h:72
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...