Skip to content

Commit c4027ab

Browse files
authored
Merge pull request #3336 from berak:xphoto_fix_inpaint_fsr
xphoto fix inpaint fsr
2 parents cef9724 + 4057993 commit c4027ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/xphoto/src/inpainting_fsr.impl.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,7 @@ icvDetermineProcessingOrder(
748748

749749

750750
static
751-
void inpaint_fsr(const Mat &src, const Mat &mask, Mat &dst, const int algorithmType)
751+
void inpaint_fsr(Mat src, const Mat &mask, Mat &dst, const int algorithmType)
752752
{
753753
CV_Assert(algorithmType == xphoto::INPAINT_FSR_BEST || algorithmType == xphoto::INPAINT_FSR_FAST);
754754
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
767767
CV_Error(Error::StsUnsupportedFormat, "Unsupported source image format!");
768768
break;
769769
}
770-
src.convertTo(src, CV_8U, 1/257.0);
770+
src.convertTo(src, CV_8U, 1/256.0);
771771
break;
772772
}
773773
case CV_32FC1:

0 commit comments

Comments
 (0)