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++)
}
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
_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();