MeVisLab Toolbox Reference
mlDcmtkMLConvertersTools.h
Go to the documentation of this file.
1 // Copyright (c) Fraunhofer MEVIS, Germany. All rights reserved.
2 // **InsertLicense** code
3 //----------------------------------------------------------------------------------
5 
10 //----------------------------------------------------------------------------------
11 #ifndef __mlDcmtkMLConvertersTools_H
12 #define __mlDcmtkMLConvertersTools_H
13 
15 
16 #include <mlTypeDefs.h>
17 #include <DCMTree_Lib.h>
18 
19 ML_START_NAMESPACE
20 
21 class PagedImage;
22 class CSO;
23 
24 namespace DcmtkMLConvertersTools
25 {
32 
37 std::string getFrameSpecificTagValueFromImage(DCMTree::RawTagId tagId, int frameIndex,
38  PagedImage *image);
39 
44 bool getSliceRangeOfCSO(const CSO& cso, const PagedImage& image, int &minSlice, int &maxSlice);
45 
48 }
49 
50 ML_END_NAMESPACE
51 
52 #endif
Project global and OS specific declarations.
#define MLDCMTKMLCONVERTERS_EXPORT
The CSO represents a contour segmentation object.
Definition: CSO.h:44
Class which represents an image, which manages properties of an image and image data which is located...
Definition: mlPagedImage.h:70
unsigned int RawTagId
Definition: DCMTree_Lib.h:147
MLDCMTKMLCONVERTERS_EXPORT std::string getFrameSpecificTagValueFromImage(DCMTree::RawTagId tagId, int frameIndex, PagedImage *image)
Returns tag value of a tag with given ID associated with given frame of input image.
MLDCMTKMLCONVERTERS_EXPORT void throwIfShouldAbort()
Function throwing std::runtime_error if a global abort was requested.
MLDCMTKMLCONVERTERS_EXPORT bool getSliceRangeOfCSO(const CSO &cso, const PagedImage &image, int &minSlice, int &maxSlice)
Returns range of slices on which CSO lays.
MLDCMTKMLCONVERTERS_EXPORT std::string getTagValueFromImage(DCMTree::RawTagId tagId, PagedImage *image)
Returns tag value of first tag with given ID found in the DICOM tree associated with given image.