Skip to content
Snippets Groups Projects
Commit 6c68c368 authored by Ben Boeckel's avatar Ben Boeckel
Browse files

vtkTesting: clamp negative SSIM values

parent f053b934
No related branches found
No related tags found
No related merge requests found
......@@ -746,6 +746,7 @@ int vtkTesting::RegressionTest(vtkAlgorithm* imageSource, double thresh, ostream
auto ssim = vtkImageSSIM::New();
ssim->SetInputToLab();
ssim->ClampNegativeValuesOn();
auto alg = vtkSmartPointer<vtkAlgorithm>::Take(ssim);
alg->SetInputConnection(pipeline1->GetOutputPort());
alg->SetInputConnection(1, pipeline2->GetOutputPort());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment