From: Eduardo Davila Date: Tue, 24 Apr 2012 05:45:15 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: v1.0.4~25 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=91dff2fda3bda6f53a57812e82a5d36f4b61322d;p=creaMaracasVisu.git *** empty log message *** --- diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/ColorLayerImageView.cxx b/lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/ColorLayerImageView.cxx index 0e8d563..3591375 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/ColorLayerImageView.cxx +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/ColorLayerImageView.cxx @@ -86,7 +86,8 @@ void ColorLayerImageView::ConfigLookupTable() // virtual double delta0=delta*0; double delta1=delta*1; double delta2=delta*2; - double delta3=delta*3; +// double delta3=delta*3; + double delta3=maxTot; for(i = minTot; i <= maxTot; i++) @@ -110,7 +111,7 @@ void ColorLayerImageView::ConfigLookupTable() // virtual } if ((ii>=delta2) && (ii<=delta3)) // iRed { - thresholdTable->SetTableValue( i , (delta-iRed)/delta, 0 , 0 , 1); + thresholdTable->SetTableValue( i , 1, (delta-iRed)/delta , 0 , 1); iRed++; } } // for diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/LayerImageBase.cxx b/lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/LayerImageBase.cxx index ea912f3..0f3bdf6 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/LayerImageBase.cxx +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/LayerImageBase.cxx @@ -185,7 +185,8 @@ void LayerImageBase::onThreshold() _imageReslicer->SetInformationInput( GetImage() ); _imageReslicer->SetResliceAxesDirectionCosines(1,0,0, 0,1,0 ,0,0,1); _imageReslicer->SetOutputDimensionality(2); - _imageReslicer->SetInterpolationModeToLinear(); +// _imageReslicer->SetInterpolationModeToLinear(); + _imageReslicer->SetInterpolationModeToNearestNeighbor(); _imageReslicer->SetResliceAxesOrigin(0,0,z); vtkImageData *img = _imageReslicer->GetOutput();