Commit Graph

13 Commits

Author SHA1 Message Date
Trishanth Mellimi
ef0e95e0d0 photo: drop unnecessary comments
Pre-empting review feedback: keeping the diff minimal, matching how
#29597 ended up after review (assert lines with no inline commentary).
2026-07-29 14:47:06 +05:30
Trishanth Mellimi
a0a2a1ca54 photo: fix OOB read in Domain_Filter::compute_NCfilter for degenerate masks
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
2026-07-29 13:45:43 +05:30
Alexander Alekhin
f0ffc52435 fix files permissions 2020-04-13 04:29:55 +00:00
Alexander Alekhin
4a297a2443 ts: refactor OpenCV tests
- 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
2018-02-03 19:39:47 +00:00
Rostislav Vasilikhin
70b984434d RGB2Lab_f and trilinear interpolation code are in separate branch; cubeRoot(x) instead of std::pow(x, 1.f/3.f)
file with internal accuracy&speed tests moved to lab_tetra branch
2017-07-17 21:59:54 +03:00
Adrien BAK
9972059476 suppress warnings 2014-10-14 19:07:15 +09:00
Adrien BAK
1c75fa7297 norm -> cvtest::norm 2014-10-14 16:08:45 +09:00
Adrien BAK
2f046ae873 fix grayscale loading 2014-10-14 16:08:43 +09:00
Adrien BAK
63715a899e fix regressiont ests npr 2014-10-14 16:08:43 +09:00
Ilya Lavrenov
926cab2baa fixed warnings 2013-12-06 15:20:29 +04:00
siddharth
33e6c07485 Removed build errors and removed test images
Removed conflict

Error fix 1

Error fix 2

Error fix 3

Error fix 3

Error fix 4

Error fix 5

Error fix 6

Error fix 7

Error fix 8

Error fix 9

Error fix 10

Error fix 11

Error fix 12

Errors fixed

Removed opencv_extra folder inside opencv folder
2013-12-04 19:18:00 +05:30
siddharth
f85a615f3f whitespaces removed and other minor changes to fix build error
Update 1

update 2

Update 3

Update 4

Update 5

update 6

Update 7

Update 8

Update 9

Update 10

Update 11

Update 12

Update 13

Update 14

Update 15

Update 16

Update 17

Update 18

Update 19

Update 20

Update 21

Update 22

Removed Headers

Update 23

Update 24

Update 25

Update 26

Update 27

Update 28
2013-12-04 19:17:59 +05:30
siddharth
56ab1c18e6 new filters added and all the 3 modules updated
All 3 modules Updated
2013-12-04 19:17:58 +05:30