MeVisLab Toolbox Reference
mlMLToReferencedFrameOfReferenceSequence.h
Go to the documentation of this file.
1 // Copyright (c) Fraunhofer MEVIS, Germany. All rights reserved.
2 // **InsertLicense** code
3 //----------------------------------------------------------------------------------
31 
36 //----------------------------------------------------------------------------------
37 #ifndef __mlMLToReferencedFrameOfReferenceSequence_H
38 #define __mlMLToReferencedFrameOfReferenceSequence_H
39 
41 #include "mlProgress.h"
42 
43 #include <mlTypeDefs.h>
44 #include <DCMTree_Tree.h>
45 #include <set>
46 #include <string>
47 #include <boost/function.hpp>
48 #include <MLCSOIncludes.h>
49 
50 ML_START_NAMESPACE
51 
52 class PagedImage;
53 class CSOList;
54 class CSO;
55 class DcmDRTReferencedFrameOfReferenceSequenceInterface;
56 class DcmDRTRTReferencedStudySequenceInterface;
57 class DcmDRTRTReferencedSeriesSequenceInterface;
58 class DcmDRTContourImageSequenceInterface;
59 
61 {
62 public:
66  MLToReferencedFrameOfReferenceSequence(boost::function<void(float)> *setProgress);
67 
74  DCMTree::TreePtr convert(PagedImage *image, CSOList *csoList, bool referenceAllImageSlices);
75 
76 private:
77  void calculateSliceIndexesWhereCSOsLie();
78  void populateReferencedFrameOfReferenceSequence(DcmDRTReferencedFrameOfReferenceSequenceInterface *seq);
79  void populateRTReferencedStudySequence(DcmDRTRTReferencedStudySequenceInterface *seq);
80  void populateRTReferencedSeriesSequence(DcmDRTRTReferencedSeriesSequenceInterface *seq);
81  void populateContourImageSequence(DcmDRTContourImageSequenceInterface *seq);
82  void addContourImage(DcmDRTContourImageSequenceInterface *seq, const int sliceIndex);
84  std::vector<int> getSortedSliceIndiciesForContourImageSequence();
85 
86  std::map<int, CSOIdVector> _sliceIndexToCSOIdMap;
87  PagedImage *_image;
88  CSOList *_csoList;
89  bool _referenceAllImageSlices;
90  Progress _progress;
91 };
92 
93 ML_END_NAMESPACE
94 
95 #endif
Project global and OS specific declarations.
#define MLDCMTKMLCONVERTERS_EXPORT
A CSOList comprises a number of CSOs and CSOGroups and is the central object for contour segmentation...
Definition: CSOList.h:61
Class to provide access to DRTContourImageSequence.
Class to provide access to DRTRTReferencedSeriesSequence.
Class to provide access to DRTRTReferencedStudySequence.
Class to provide access to DRTReferencedFrameOfReferenceSequence.
DCMTree::TreePtr convert(PagedImage *image, CSOList *csoList, bool referenceAllImageSlices)
Converter function.
MLToReferencedFrameOfReferenceSequence(boost::function< void(float)> *setProgress)
Constructor.
Class which represents an image, which manages properties of an image and image data which is located...
Definition: mlPagedImage.h:70
Class for setting progress.
boost::shared_ptr< Tree > TreePtr
shared pointer to a DCMTree::Tree
Definition: DCMTree_Lib.h:70