33#ifndef __mlMLToROIContourSequence_H
34#define __mlMLToROIContourSequence_H
44#include <boost/function.hpp>
50typedef std::map<std::string, std::string>
TStrStrMap;
51typedef std::pair<std::string, std::string>
TStrStrPair;
57class DcmDRTROIContourSequenceInterface;
58class DcmDRTContourSequenceInterface;
59class DcmDRTContourImageSequenceInterface;
83 ReferenceImageIfOneSlice
99 std::string getContourGeometricType(
const CSO &cso);
100 std::string getContourData(
const CSO &cso,
size_t& numPoints);
103 bool isCollinear(
const CSO& cso)
const;
109 bool _treatCollinearAsPlanar;
110 ImageReferenceMode _imageReferenceMode;
A CSOGroup comprises a number of CSOs, which themselves can be in a number of different CSOGroups.
A CSOList comprises a number of CSOs and CSOGroups and is the central object for contour segmentation...
The CSO represents a contour segmentation object.
Class to provide access to DRTContourImageSequence.
Class to provide access to DRTContourSequence.
Class to provide access to DRTROIContourSequence.
DCMTree::TreePtr convert(PagedImage *image, CSOList *csoList, int precision)
Converter function.
ImageReferenceMode imageReferenceMode() const
MLToROIContourSequence(boost::function< void(float)> *setProgress)
Constructor.
void setTreatCollinearAsPlanar(bool collinearIsPlanar)
Set treatCollinearAsPlanar option.
@ RequireExactlyOneSlice
always reference one image slice, print an error if the CSO does not lie in exactly one existing slic...
@ DoNotReferenceImage
never reference image
void setImageReferenceMode(ImageReferenceMode mode)
Set image reference mode, which tells the MLToROIContourSequence when to create a reference to an ima...
Class which represents an image, which manages properties of an image and image data which is located...
std::map< std::string, std::string > TStrStrMap
std::pair< std::string, std::string > TStrStrPair
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