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
16
17// DICOM tree prototypes.
18#include <DCMTree_Lib.h>
19
20// ML includes
21#include <mlModuleIncludes.h>
22
24
25// Forwards
26class DicomMessageCollector;
27
28//----------------------------------------------------------------------------------
31//----------------------------------------------------------------------------------
32namespace DicomToMLTools {
33
49 DCMTree::Const_TreePtr alternativeDCMTree,
50 SubImage &outSubImg,
51 bool force,
52 DicomMessageCollector &dcmMsgCollector);
53
70 DCMTree::Const_TreePtr alternativeDCMTree,
72 DicomMessageCollector &dcmMsgCollector);
73
74};
75
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:716
Header of FileHandle class which should be used in DICOM importing modules to resolve the filename fo...
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
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...