mColor.resize(3);
mColor[0] = mColor[1] = mColor[2] = 0;
mMeshIsUpToDate = false;
+ mBackgroundValue = 0;
+ mForegroundValue = 1;
}
//--------------------------------------------------------------------
//--------------------------------------------------------------------
+//--------------------------------------------------------------------
+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)
{
double GetBackgroundValueLabelImage() const;
void SetBackgroundValueLabelImage(double bg);
+ double GetForegroundValueLabelImage() const;
+ void SetForegroundValueLabelImage(double bg);
+
void SetImage(vvImage * im);
protected:
bool mMeshIsUpToDate;
vvImage::Pointer mImage;
double mBackgroundValue;
+ double mForegroundValue;
};
//--------------------------------------------------------------------