cv::stylization always drives Domain_Filter::filter() with NORMCONV_FILTER,
which calls compute_NCfilter on the working matrix and its transpose each
iteration. When either has a single column, the summed-area-table index
math can produce a negative offset that reads past the box_filter buffer.
A single column has no neighbor to convolve across, so the correct result
is an unchanged output -- exactly what compute_Rfilter already does for
w==1 via its no-op loop bounds. Return early instead of running the
box-filter math in that case.
Fixing compute_NCfilter directly (rather than guarding cv::stylization's
input, as suggested in the issue) also covers cv::edgePreservingFilter
when called with NORMCONV_FILTER, and covers single-row inputs, which hit
the identical bug through the internal transposed pass.
Closes#29614
- removed tr1 usage (dropped in C++17)
- moved includes of vector/map/iostream/limits into ts.hpp
- require opencv_test + anonymous namespace (added compile check)
- fixed norm() usage (must be from cvtest::norm for checks) and other conflict functions
- added missing license headers