MeVisLab Toolbox Reference
mlDicomPixelDataProcessingTools.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 
14 
15 // DCMTree File IO Support for saving/loading DCMTrees and other DCMTree operations.
16 #include <DCMTree_DicomTags.h>
17 #include <DCMTree_Exception.h>
18 
19 // DICOM classes.
20 #include <DCMTree_Tag.h>
21 #include <DCMTree_Tree.h>
22 
23 ML_START_NAMESPACE
24 
25 namespace DicomToMLTools {
26 
27 //----------------------------------------------------------------------------------
32 //----------------------------------------------------------------------------------
34 {
35 public:
39 
41  void print(std::ostream &ostr);
42 
50  size_t numVoxels,
51  void *dataPtr);
52 
56  int highBit;
61 
64 };
65 
66 };
67 
68 ML_END_NAMESPACE
#define MLDICOM_TO_ML_TOOLS_EXPORT
DLL export macro definition.
Tool class to retrieve the values of HightBit, BitsAllocated, BitsStored, and PixelRepresentation fro...
bool needsCorrection
Set to true if any processing on pixel data is required, otherwise false after construction.
NeedsSignednessCorrectionShiftingOrMasking(DCMTree::Const_TreePtr dcmTree)
Perform masking of retired overlay planes, sign extension, and shifting if necessary; for non-applica...
void print(std::ostream &ostr)
Print structure members into ostr.
int highBit
After construction the values of the corresponding tags in dcmTree or 0 if not retrievable or retriev...
void correctIfNecessary(MLDataType dType, size_t numVoxels, void *dataPtr)
Applies masking, shifting, and sign extension of DICOM pixel data if required according to upper memb...
MLint32 MLDataType
MLDataType.
Definition: mlTypeDefs.h:684
Collection of tool functions for copy operations from DICOM pixel data to ML SubImages.
boost::shared_ptr< const Tree > Const_TreePtr
Definition: DCMTree_Lib.h:73