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
13
#include "
mlDicomToMLSubImageTools.h
"
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
//----------------------------------------------------------------------------------
33
class
MLDICOM_TO_ML_TOOLS_EXPORT
NeedsSignednessCorrectionShiftingOrMasking
34
{
35
public
:
38
NeedsSignednessCorrectionShiftingOrMasking
(
DCMTree::Const_TreePtr
dcmTree);
39
41
void
print
(std::ostream &
ostr
);
42
49
void
correctIfNecessary
(
MLDataType
dType
,
50
size_t
numVoxels,
51
void
*dataPtr);
52
56
int
highBit
;
57
int
bitsAllocated
;
58
int
bitsStored
;
59
int
pixelRepresentation
;
61
63
bool
needsCorrection
;
64
};
65
66
};
67
68
ML_END_NAMESPACE
DCMTree_DicomTags.h
DCMTree_Exception.h
DCMTree_Tag.h
DCMTree_Tree.h
MLDICOM_TO_ML_TOOLS_EXPORT
#define MLDICOM_TO_ML_TOOLS_EXPORT
DLL export macro definition.
Definition
MLDicomToMLToolsSystem.h:21
ml::DicomToMLTools::NeedsSignednessCorrectionShiftingOrMasking
Tool class to retrieve the values of HightBit, BitsAllocated, BitsStored, and PixelRepresentation fro...
Definition
mlDicomPixelDataProcessingTools.h:34
ml::DicomToMLTools::NeedsSignednessCorrectionShiftingOrMasking::needsCorrection
bool needsCorrection
Set to true if any processing on pixel data is required, otherwise false after construction.
Definition
mlDicomPixelDataProcessingTools.h:63
ml::DicomToMLTools::NeedsSignednessCorrectionShiftingOrMasking::NeedsSignednessCorrectionShiftingOrMasking
NeedsSignednessCorrectionShiftingOrMasking(DCMTree::Const_TreePtr dcmTree)
Perform masking of retired overlay planes, sign extension, and shifting if necessary; for non-applica...
ml::DicomToMLTools::NeedsSignednessCorrectionShiftingOrMasking::pixelRepresentation
int pixelRepresentation
Definition
mlDicomPixelDataProcessingTools.h:59
ml::DicomToMLTools::NeedsSignednessCorrectionShiftingOrMasking::print
void print(std::ostream &ostr)
Print structure members into ostr.
ml::DicomToMLTools::NeedsSignednessCorrectionShiftingOrMasking::highBit
int highBit
After construction the values of the corresponding tags in dcmTree or 0 if not retrievable or retriev...
Definition
mlDicomPixelDataProcessingTools.h:56
ml::DicomToMLTools::NeedsSignednessCorrectionShiftingOrMasking::correctIfNecessary
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...
ml::DicomToMLTools::NeedsSignednessCorrectionShiftingOrMasking::bitsStored
int bitsStored
Definition
mlDicomPixelDataProcessingTools.h:58
ml::DicomToMLTools::NeedsSignednessCorrectionShiftingOrMasking::bitsAllocated
int bitsAllocated
Definition
mlDicomPixelDataProcessingTools.h:57
MLDataType
MLint32 MLDataType
MLDataType.
Definition
mlTypeDefs.h:596
mlDicomToMLSubImageTools.h
Collection of tool functions for copy operations from DICOM pixel data to ML SubImages.
mlrange_cast
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
Definition
mlRangeCasts.h:332
DCMTree::Const_TreePtr
boost::shared_ptr< const Tree > Const_TreePtr
Definition
DCMTree_Lib.h:73
FMEstable
ReleaseMeVis
Projects
DICOM
MLDicomToMLTools
Sources
mlDicomPixelDataProcessingTools.h
Generated by
1.10.0