Commit 7bb9237d authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #9060 from alalek:canny_inplace_bug

parents 11a726ce cdf2a59a
......@@ -972,6 +972,9 @@ void Canny( InputArray _src, OutputArray _dst,
const Size size = _src.size();
// we don't support inplace parameters in case with RGB/BGR src
CV_Assert((_dst.getObj() != _src.getObj() || _src.type() == CV_8UC1) && "Inplace parameters are not supported");
_dst.create(size, CV_8U);
if (!L2gradient && (aperture_size & CV_CANNY_L2_GRADIENT) == CV_CANNY_L2_GRADIENT)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment