xphoto fix inpaint fsr

pull/3336/head
Your Name 3 years ago
parent c5f4dffbe5
commit 4057993c1a
  1. 4
      modules/xphoto/src/inpainting_fsr.impl.hpp

@ -748,7 +748,7 @@ icvDetermineProcessingOrder(
static 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_Assert(algorithmType == xphoto::INPAINT_FSR_BEST || algorithmType == xphoto::INPAINT_FSR_FAST);
CV_Check(src.channels(), src.channels() == 1 || src.channels() == 3, ""); 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!"); CV_Error(Error::StsUnsupportedFormat, "Unsupported source image format!");
break; break;
} }
src.convertTo(src, CV_8U, 1/257.0); src.convertTo(src, CV_8U, 1/256.0);
break; break;
} }
case CV_32FC1: case CV_32FC1:

Loading…
Cancel
Save