From: David Sarrut Date: Fri, 29 Jun 2012 12:18:56 +0000 (+0200) Subject: Correct always white contour bug. X-Git-Tag: v1.3.0~27^2~1 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=acc12b611512da786f37438c0dc01add400c1510;p=clitk.git Correct always white contour bug. --- diff --git a/vv/vvROIActor.cxx b/vv/vvROIActor.cxx index 88ce281..e7f82f6 100644 --- a/vv/vvROIActor.cxx +++ b/vv/vvROIActor.cxx @@ -166,6 +166,10 @@ void vvROIActor::Initialize(double depth, bool IsVisible) { mImageContour.push_back(vvImageContour::New()); mImageContour[i]->SetSlicer(mSlicerManager->GetSlicer(i)); mImageContour[i]->SetImage(mROI->GetImage()); + // Color of the contour is "complement" of roi color + mContourColor[0] = 1-mROI->GetDisplayColor()[0]; + mContourColor[1] = 1-mROI->GetDisplayColor()[1]; + mContourColor[2] = 1-mROI->GetDisplayColor()[2]; mImageContour[i]->SetColor(mContourColor[0], mContourColor[1], mContourColor[2]); mImageContour[i]->SetLineWidth(mContourWidth); mImageContour[i]->SetPreserveMemoryModeEnabled(true);