CV_EXPORTS void copyMakeBorder( const Mat& src, Mat& dst,
int top, int bottom, int left, int right,
- int borderType );
+ int borderType, const Scalar& value=Scalar() );
CV_EXPORTS void medianBlur( const Mat& src, Mat& dst, int ksize );
CV_EXPORTS void GaussianBlur( const Mat& src, Mat& dst, Size ksize,
{
void copyMakeBorder( const Mat& src, Mat& dst, int top, int bottom,
- int left, int right, int borderType )
+ int left, int right, int borderType, const Scalar& value )
{
dst.create( src.rows + top + bottom, src.cols + left + right, src.type() );
CvMat _src = src, _dst = dst;
- cvCopyMakeBorder( &_src, &_dst, Point(left, top), borderType );
+ cvCopyMakeBorder( &_src, &_dst, Point(left, top), borderType, value );
}
}