]> Creatis software - clitk.git/blobdiff - common/clitkDicomRT_ROI.cxx
Romulo: changed rounding of image resampling to floor() because, from a clinical...
[clitk.git] / common / clitkDicomRT_ROI.cxx
index 6c9e9777bebfd372168c55d1dbee3caf8b0b21ab..6bb2e25c7ff4dd51bba141ce16846764f5657dfe 100644 (file)
@@ -39,7 +39,7 @@ clitk::DicomRT_ROI::DicomRT_ROI()
 //--------------------------------------------------------------------
 clitk::DicomRT_ROI::~DicomRT_ROI()
 {
-
+  mImage->Delete();
 }
 //--------------------------------------------------------------------
 
@@ -208,7 +208,7 @@ void clitk::DicomRT_ROI::ComputeMesh()
 
 
 //--------------------------------------------------------------------
-void clitk::DicomRT_ROI::SetFromBinaryImage(vvImage::Pointer image, int n,
+void clitk::DicomRT_ROI::SetFromBinaryImage(vvImage * image, int n,
                                            std::string name,
                                            std::vector<double> color, 
                                            std::string filename)
@@ -234,7 +234,7 @@ void clitk::DicomRT_ROI::SetFromBinaryImage(vvImage::Pointer image, int n,
 
 
 //--------------------------------------------------------------------
-const vvImage::Pointer clitk::DicomRT_ROI::GetImage() const
+vvImage * clitk::DicomRT_ROI::GetImage() const
 {
   return mImage;
 }