itkNewMacro(Self);
void Print(std::ostream & os = std::cout) const;
- void SetFromBinaryImage(vvImage * image, int n,
+ void SetFromBinaryImage(vvImage::Pointer image, int n,
std::string name,
std::vector<double> color,
std::string filename);
double GetForegroundValueLabelImage() const;
void SetForegroundValueLabelImage(double bg);
- void SetImage(vvImage * im);
+ void SetImage(vvImage::Pointer im);
DicomRT_Contour* GetContour(int n);
// Compute a vtk mesh from the dicom contours
- void ComputeMesh();
+ void ComputeMeshFromContour();
+ void ComputeContoursFromImage();
// Indicate if the mesh is uptodate according to the dicom
void SetDicomUptodateFlag(bool b) { m_DicomUptodateFlag = b; }
#if GDCM_MAJOR_VERSION == 2
gdcm::Item * mItemInfo;
gdcm::Item * mItemContour;
+ gdcm::SmartPointer<gdcm::SequenceOfItems> mContoursSequenceOfItems;
#endif
private: