diff --git a/CLTool/src/compare.cpp b/CLTool/src/compare.cpp index 93e1a8d..46c91db 100644 --- a/CLTool/src/compare.cpp +++ b/CLTool/src/compare.cpp @@ -77,8 +77,8 @@ int main(int argc, char **argv) { return 1; } - FasTC::Image<> img1(*img1f.GetImage()); - FasTC::Image<> img2(*img2f.GetImage()); + FasTC::Image<> &img1 = *img1f.GetImage(); + FasTC::Image<> &img2 = *img2f.GetImage(); double PSNR = img1.ComputePSNR(&img2); if(PSNR > 0.0) {