photo: fix InputArray -> CvMat

pull/7915/head
Alexander Alekhin 8 years ago
parent ca6beb9ca8
commit dc31ddc80a
  1. 3
      modules/photo/src/inpaint.cpp

@ -814,6 +814,7 @@ void cv::inpaint( InputArray _src, InputArray _mask, OutputArray _dst,
Mat src = _src.getMat(), mask = _mask.getMat(); Mat src = _src.getMat(), mask = _mask.getMat();
_dst.create( src.size(), src.type() ); _dst.create( src.size(), src.type() );
CvMat c_src = src, c_mask = mask, c_dst = _dst.getMat(); Mat dst = _dst.getMat();
CvMat c_src = src, c_mask = mask, c_dst = dst;
cvInpaint( &c_src, &c_mask, &c_dst, inpaintRange, flags ); cvInpaint( &c_src, &c_mask, &c_dst, inpaintRange, flags );
} }

Loading…
Cancel
Save