mirror of
https://github.com/opencv/opencv.git
synced 2025-06-26 22:31:22 +08:00
Merge pull request #8915 from sovrasov:deniose_add_assert
This commit is contained in:
commit
26e9b42a44
@ -116,6 +116,7 @@ void cv::fastNlMeansDenoising( InputArray _src, OutputArray _dst, const std::vec
|
|||||||
CV_INSTRUMENT_REGION()
|
CV_INSTRUMENT_REGION()
|
||||||
|
|
||||||
int hn = (int)h.size(), type = _src.type(), depth = CV_MAT_DEPTH(type), cn = CV_MAT_CN(type);
|
int hn = (int)h.size(), type = _src.type(), depth = CV_MAT_DEPTH(type), cn = CV_MAT_CN(type);
|
||||||
|
CV_Assert(!_src.empty());
|
||||||
CV_Assert(hn == 1 || hn == cn);
|
CV_Assert(hn == 1 || hn == cn);
|
||||||
|
|
||||||
Size src_size = _src.size();
|
Size src_size = _src.size();
|
||||||
|
Loading…
Reference in New Issue
Block a user