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
51
52class PagedImage;
53class CSOList;
54class CSO;
55class DcmDRTReferencedFrameOfReferenceSequenceInterface;
56class DcmDRTRTReferencedStudySequenceInterface;
57class DcmDRTRTReferencedSeriesSequenceInterface;
58class DcmDRTContourImageSequenceInterface;
59
61{
62public:
66 MLToReferencedFrameOfReferenceSequence(boost::function<void(float)> *setProgress);
67
75
76private:
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
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...
Class for setting progress.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
boost::shared_ptr< Tree > TreePtr
shared pointer to a DCMTree::Tree
Definition DCMTree_Lib.h:72