Fix issue in boxFilter with destination depth not equal to source depth.

pull/1934/head
Vladimir Bystricky 11 years ago
parent 968a898a1b
commit af6134b4b6
  1. 6
      modules/imgproc/src/smooth.cpp

@ -622,12 +622,14 @@ static bool ocl_boxFilter( InputArray _src, OutputArray _dst, int ddepth,
return false;//TODO
int sdepth = CV_MAT_DEPTH(type);
if( ddepth < 0 )
ddepth = sdepth;
else if (ddepth != sdepth)
return false;
if( anchor.x < 0 )
anchor.x = ksize.width / 2;
if( anchor.y < 0 )
anchor.y = ksize.height / 2;
if( ddepth < 0 )
ddepth = sdepth;
ocl::Kernel kernel;

Loading…
Cancel
Save