]> Creatis software - creaMaracasVisu.git/commitdiff
*** empty log message ***
authorEduardo Davila <Eduardo.Davila@creatis.insa-lyon.fr>
Tue, 24 Apr 2012 05:45:15 +0000 (05:45 +0000)
committerEduardo Davila <Eduardo.Davila@creatis.insa-lyon.fr>
Tue, 24 Apr 2012 05:45:15 +0000 (05:45 +0000)
lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/ColorLayerImageView.cxx
lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/LayerImageBase.cxx

index 0e8d56333186eb8717f15f1d138952819abc7cce..3591375c9f0d003dec7265233ec54fd496e820ce 100644 (file)
@@ -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
index ea912f370f24b89fc98ff0180e781dcaffd58919..0f3bdf67f2f52f0b66df7e97b3d526f407dfbce0 100644 (file)
@@ -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();