X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vv%2FvvSlicer.cxx;h=43583571456b3d12d6253bc27e7fb17449eb893a;hb=9abaa6b134ff9d8d87ec6752faa1152cc8869c07;hp=74f2fc570fa9e160d84b68b0d9171d061fce1ae5;hpb=a79509f4d3341ffe986a70aed2bd4565b3c416e7;p=clitk.git diff --git a/vv/vvSlicer.cxx b/vv/vvSlicer.cxx index 74f2fc5..4358357 100644 --- a/vv/vvSlicer.cxx +++ b/vv/vvSlicer.cxx @@ -172,7 +172,7 @@ vvBlendImageActor* vvSlicer::GetOverlayActor() //------------------------------------------------------------------------------ -vtkImageMapToWindowLevelColors* vvSlicer::GetFusionMapper() +vtkImageMapToColors* vvSlicer::GetFusionMapper() { return mFusionMapper.GetPointer(); } @@ -408,7 +408,14 @@ void vvSlicer::SetFusion(vvImage::Pointer fusion) mFusionReslice->SetInput(0, mFusion->GetFirstVTKImageData()); if (!mFusionMapper) - mFusionMapper = vtkSmartPointer::New(); + mFusionMapper = vtkSmartPointer::New(); + + vtkSmartPointer lut = vtkLookupTable::New(); + lut->SetRange(0, 1); + lut->SetValueRange(0, 1); + lut->SetSaturationRange(0, 0); + lut->Build(); + mFusionMapper->SetLookupTable(lut); mFusionMapper->SetInput(mFusionReslice->GetOutput()); if (!mFusionActor) {