Commit a83b78e2 authored by LaurentBerger's avatar LaurentBerger Committed by Alexander Alekhin

Merge pull request #1709 from LaurentBerger/BM3D_STEPALL

* Process InputOutputArray when BM3D_STEPALL is set

* Step1 created if needed- noArray in test
parent e38c5505
......@@ -148,6 +148,8 @@ void bm3dDenoising(
_dst.create(srcSize, type);
break;
case BM3D_STEPALL:
if (_basic.needed())
_basic.create(srcSize, type);
_dst.create(srcSize, type);
break;
default:
......
......@@ -76,7 +76,7 @@ namespace opencv_test { namespace {
// BM3D: two different calls doing exactly the same thing
cv::Mat result, resultSec;
cv::xphoto::bm3dDenoising(original, cv::Mat(), resultSec, 10, 4, 16, 2500, 400, 8, 1, 0.0f, cv::NORM_L2, cv::xphoto::BM3D_STEPALL);
cv::xphoto::bm3dDenoising(original, noArray(), resultSec, 10, 4, 16, 2500, 400, 8, 1, 0.0f, cv::NORM_L2, cv::xphoto::BM3D_STEPALL);
cv::xphoto::bm3dDenoising(original, result, 10, 4, 16, 2500, 400, 8, 1, 0.0f, cv::NORM_L2, cv::xphoto::BM3D_STEPALL);
DUMP(result, expected_path + ".res.png");
......
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