fixed bug in cv::Sobel (ddepth < 0)

pull/13383/head
Vladislav Vinogradov 14 years ago
parent 58e26313dd
commit bf29b16d1d
  1. 2
      modules/imgproc/src/deriv.cpp

@ -474,6 +474,8 @@ void cv::Sobel( const InputArray& _src, OutputArray _dst, int ddepth, int dx, in
int ksize, double scale, double delta, int borderType )
{
Mat src = _src.getMat();
if (ddepth < 0)
ddepth = src.depth();
_dst.create( src.size(), CV_MAKETYPE(ddepth, src.channels()) );
Mat dst = _dst.getMat();

Loading…
Cancel
Save