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
24
25namespace DicomToMLTools {
26
27//----------------------------------------------------------------------------------
32//----------------------------------------------------------------------------------
65
66};
67
#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:596
Collection of tool functions for copy operations from DICOM pixel data to ML SubImages.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
boost::shared_ptr< const Tree > Const_TreePtr
Definition DCMTree_Lib.h:73