MeVisLab Toolbox Reference
mlMLToROIContourSequence.h File Reference

Helper class converting CSOList and PagedImage to ROI Contour Sequence. More...

#include "MLDcmtkMLConvertersSystem.h"
#include "mlProgress.h"
#include <mlTypeDefs.h>
#include <DCMTree_Lib.h>
#include <map>
#include <utility>
#include <string>
#include <boost/function.hpp>
#include <mlPagedImage.h>
#include <CSOBase/CSOList.h>

Go to the source code of this file.

Classes

class  ml::MLToROIContourSequence
 

Namespaces

 ml
 Main documentation file for ML users and developers.
 

Detailed Description

Helper class converting CSOList and PagedImage to ROI Contour Sequence.

The following is set:

  • ROI Contour Sequence (3006,0039). For each input CSOList's CSOGroup (1..i..n, n - number of CSOGroups) an item0 is added:
    • item0's Referenced ROI Number (3006,0084) is set to i.
    • item0's ROI Display Color (3006,002A) is set to CSOGroup's path point color.
    • Contour Sequence (3006,0040) is added to the item0. For each CSOGroup's CSO (1..j..m, m - number of CSOs) an item1 is added:
      • item1's Contour Number (3006,0048) is set to j.
      • item1's Contour Geometric Type (3006,0042) is set to:
        • POINT if CSO is of CSO_TYPE_POINT sub type.
        • CLOSED_PLANAR if CSO is of SUB_TYPE_CLOSED_POLYLINE sub type and is closed.
        • OPEN_PLANAR if CSO is of SUB_TYPE_OPEN_POLYLINE sub type, is not closed and is in plane.
        • OPEN_NONPLANAR if CSO is of SUB_TYPE_OPEN_POLYLINE sub type, is not closed and is not in plane.
      • item1's Contour Slab Thickness (3006,0044) is set to input image's Slice Thickness (0018,0050).
      • item1's Number Of Contour Points (3006,0046) is set to CSO's total number of unique path points.
      • item1's Contour Data (3006,0050) is set to to coordinates of CSO's path points.
Author
Grzegorz Chlebus
Date
2014-08-19

Definition in file mlMLToROIContourSequence.h.