From 4057993c1a8d54484bcdc51225cda21d7c873310 Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 24 Aug 2022 12:02:26 +0200 Subject: [PATCH] xphoto fix inpaint fsr --- modules/xphoto/src/inpainting_fsr.impl.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/xphoto/src/inpainting_fsr.impl.hpp b/modules/xphoto/src/inpainting_fsr.impl.hpp index f47e2c79e17..b9ebb348fa2 100644 --- a/modules/xphoto/src/inpainting_fsr.impl.hpp +++ b/modules/xphoto/src/inpainting_fsr.impl.hpp @@ -748,7 +748,7 @@ icvDetermineProcessingOrder( static -void inpaint_fsr(const Mat &src, const Mat &mask, Mat &dst, const int algorithmType) +void inpaint_fsr(Mat src, const Mat &mask, Mat &dst, const int algorithmType) { CV_Assert(algorithmType == xphoto::INPAINT_FSR_BEST || algorithmType == xphoto::INPAINT_FSR_FAST); CV_Check(src.channels(), src.channels() == 1 || src.channels() == 3, ""); @@ -767,7 +767,7 @@ void inpaint_fsr(const Mat &src, const Mat &mask, Mat &dst, const int algorithmT CV_Error(Error::StsUnsupportedFormat, "Unsupported source image format!"); break; } - src.convertTo(src, CV_8U, 1/257.0); + src.convertTo(src, CV_8U, 1/256.0); break; } case CV_32FC1: