]> Creatis software - clitk.git/commitdiff
FG and BG values
authordsarrut <dsarrut>
Wed, 30 Jun 2010 05:56:39 +0000 (05:56 +0000)
committerdsarrut <dsarrut>
Wed, 30 Jun 2010 05:56:39 +0000 (05:56 +0000)
common/clitkDicomRT_ROI.cxx
common/clitkDicomRT_ROI.h

index fb7b0ca21dec0739d6d1b90be03d041ccdbf2dfd..e9cc0d5190c19926705f1ecc0ae927b7f39ecc48 100644 (file)
@@ -29,6 +29,8 @@ clitk::DicomRT_ROI::DicomRT_ROI()
   mColor.resize(3);
   mColor[0] = mColor[1] = mColor[2] = 0;
   mMeshIsUpToDate = false;
+  mBackgroundValue = 0;
+  mForegroundValue = 1;
 }
 //--------------------------------------------------------------------
 
@@ -110,6 +112,22 @@ double clitk::DicomRT_ROI::GetBackgroundValueLabelImage() const
 //--------------------------------------------------------------------
 
 
+//--------------------------------------------------------------------
+void clitk::DicomRT_ROI::SetForegroundValueLabelImage(double bg)
+{
+  mForegroundValue = bg;
+}
+//--------------------------------------------------------------------
+
+
+//--------------------------------------------------------------------
+double clitk::DicomRT_ROI::GetForegroundValueLabelImage() const
+{
+  return mForegroundValue;
+}
+//--------------------------------------------------------------------
+
+
 //--------------------------------------------------------------------
 void clitk::DicomRT_ROI::Read(std::map<int, std::string> & rois, gdcm::SQItem * item)
 {
index 5a30df865490a5c9273f0fe569fdb074413886ef..77b5204e042a0fd6f66b6d2a6da41b300080199f 100644 (file)
@@ -52,6 +52,9 @@ namespace clitk {
     double GetBackgroundValueLabelImage() const;
     void SetBackgroundValueLabelImage(double bg);
     
+    double GetForegroundValueLabelImage() const;
+    void SetForegroundValueLabelImage(double bg);
+    
     void SetImage(vvImage * im);
     
   protected:
@@ -65,6 +68,7 @@ namespace clitk {
     bool mMeshIsUpToDate;
     vvImage::Pointer mImage;
     double mBackgroundValue;
+    double mForegroundValue;
   };
   //--------------------------------------------------------------------