MeVisLab Toolbox Reference
mlDicomToMLSubImageTools.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"
16 
17 // DICOM tree prototypes.
18 #include <DCMTree_Lib.h>
19 
20 // ML includes
21 #include <mlModuleIncludes.h>
22 
23 ML_START_NAMESPACE
24 
25 // Forwards
26 class DicomMessageCollector;
27 
28 //----------------------------------------------------------------------------------
31 //----------------------------------------------------------------------------------
32 namespace DicomToMLTools {
33 
49  DCMTree::Const_TreePtr alternativeDCMTree,
50  SubImage &outSubImg,
51  bool force,
52  DicomMessageCollector &dcmMsgCollector);
53 
70  DCMTree::Const_TreePtr alternativeDCMTree,
71  SubImage &subImage,
72  DicomMessageCollector &dcmMsgCollector);
73 
74 };
75 
76 ML_END_NAMESPACE
77 
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.
This class manages/represents a rectangular 6d image region which is organized linearly in memory.
Definition: mlSubImage.h:75
MLint32 MLErrorCode
Type of an ML Error code.
Definition: mlTypeDefs.h:818
Header of FileHandle class which should be used in DICOM importing modules to resolve the filename fo...
boost::shared_ptr< const Tree > Const_TreePtr
Definition: DCMTree_Lib.h:73
MLDICOM_TO_ML_TOOLS_EXPORT MLErrorCode copyFromDCMTreeToSubImg(const DICOMCachedIOFileHandle &dcmFileHandle, DCMTree::Const_TreePtr alternativeDCMTree, SubImage &outSubImg, bool force, DicomMessageCollector &dcmMsgCollector)
Tries to fill the given output subimage outSubImg with pixel data from the DICOM tree given by either...
MLDICOM_TO_ML_TOOLS_EXPORT MLErrorCode convertDCMTreeToSubImage(const DICOMCachedIOFileHandle &dcmFrameHandle, DCMTree::Const_TreePtr alternativeDCMTree, SubImage &subImage, DicomMessageCollector &dcmMsgCollector)
Reads the DICOM file given by dcmFrameHandle via the MLDICOMCachedIOTreeCache (or uses alternativeDCM...