mIsSelected = false;
mContourWidth = 1;
mContourColor.resize(3);
+ m_modeBG = true;
}
//------------------------------------------------------------------------------
mImageContour[i]->HideActors();
mOverlayActors.push_back(new vvBinaryImageOverlayActor);
- mOverlayActors[i]->SetImage(mROI->GetImage(), mROI->GetBackgroundValueLabelImage());
+
+ // BG or FG
+ if (m_modeBG) {
+ mOverlayActors[i]->SetImage(mROI->GetImage(), mROI->GetBackgroundValueLabelImage());
+ }
+ else {
+ mOverlayActors[i]->SetImage(mROI->GetImage(), mROI->GetForegroundValueLabelImage(), false);
+ }
+
+
mOverlayActors[i]->SetColor(mROI->GetDisplayColor()[0],
mROI->GetDisplayColor()[1],
mROI->GetDisplayColor()[2]);
int GetContourWidth() { return mContourWidth; }
void SetContourColor(double r, double v, double b);
std::vector<double> & GetContourColor();
+ void SetBGMode(bool b) { m_modeBG = b; }
public slots:
void UpdateSlice(int slicer, int slices);
bool mIsSelected;
int mContourWidth;
std::vector<double> mContourColor;
+ bool m_modeBG;
}; // end class vvROIActor
//------------------------------------------------------------------------------