platform/upstream/opencv.git
2 years agoMerge pull request #21429 from alalek:dnn_api_explicit_const_3.4
Alexander Alekhin [Fri, 21 Jan 2022 20:04:58 +0000 (20:04 +0000)]
Merge pull request #21429 from alalek:dnn_api_explicit_const_3.4

2 years agoMerge pull request #21349 from alalek:cmake_link_no_undefined
Alexander Alekhin [Thu, 20 Jan 2022 19:56:17 +0000 (19:56 +0000)]
Merge pull request #21349 from alalek:cmake_link_no_undefined

2 years agoMerge pull request #21483 from alalek:cmake_highgui_opengl_update_3.4
Alexander Alekhin [Thu, 20 Jan 2022 14:37:08 +0000 (14:37 +0000)]
Merge pull request #21483 from alalek:cmake_highgui_opengl_update_3.4

2 years agoMerge pull request #21478 from VadimLevin:dev/vlevin/pysubmodules-initialization-fix
Alexander Alekhin [Thu, 20 Jan 2022 10:08:00 +0000 (10:08 +0000)]
Merge pull request #21478 from VadimLevin:dev/vlevin/pysubmodules-initialization-fix

2 years agocmake(link): add '-Wl,--no-undefined'
Alexander Alekhin [Sun, 26 Dec 2021 09:47:25 +0000 (09:47 +0000)]
cmake(link): add '-Wl,--no-undefined'

- avoid missing of necessary library dependencies

2 years agocmake(highgui): update handling of OpenGL libraries
Alexander Alekhin [Thu, 20 Jan 2022 02:27:57 +0000 (02:27 +0000)]
cmake(highgui): update handling of OpenGL libraries

2 years agofix: submodules creation and registration
Vadim Levin [Tue, 18 Jan 2022 21:07:50 +0000 (00:07 +0300)]
fix: submodules creation and registration

- Add special case handling when submodule has the same name as parent
- `PyDict_SetItemString` doesn't steal reference, so reference count
  should be explicitly decremented to transfer object life-time
  ownership
- Add sanity checks for module registration input

2 years agoMerge pull request #21468 from VadimLevin:dev/vlevin/handle-pymodule-add-object-result
Alexander Alekhin [Wed, 19 Jan 2022 11:27:06 +0000 (11:27 +0000)]
Merge pull request #21468 from VadimLevin:dev/vlevin/handle-pymodule-add-object-result

2 years agoMerge pull request #21470 from alalek:winpack_dldt_fix_21469
Alexander Alekhin [Tue, 18 Jan 2022 11:06:00 +0000 (11:06 +0000)]
Merge pull request #21470 from alalek:winpack_dldt_fix_21469

2 years agofix: handle possible PyModule_AddObject failure
Vadim Levin [Tue, 18 Jan 2022 06:44:45 +0000 (09:44 +0300)]
fix: handle possible PyModule_AddObject failure

Comment from Python documentation:
Unlike other functions that steal references, `PyModule_AddObject()` only
decrements the reference count of value on success.
This means that its return value must be checked, and calling code must
`Py_DECREF()` value manually on error.

2 years agobuild(winpack_dldt): repair build with MSVS 2019 (16.11.9)
Alexander Alekhin [Tue, 18 Jan 2022 08:15:12 +0000 (08:15 +0000)]
build(winpack_dldt): repair build with MSVS 2019 (16.11.9)

2 years agodnn: fix API - explicit ctors, const methods
Alexander Alekhin [Wed, 12 Jan 2022 03:46:13 +0000 (03:46 +0000)]
dnn: fix API - explicit ctors, const methods

2 years agoMerge pull request #21426 from alalek:dnn_simd_unaligned_weights_fix
Alexander Alekhin [Wed, 12 Jan 2022 13:11:45 +0000 (13:11 +0000)]
Merge pull request #21426 from alalek:dnn_simd_unaligned_weights_fix

2 years agodnn: don't use aligned load without alignment checks
Alexander Alekhin [Wed, 12 Jan 2022 04:14:48 +0000 (04:14 +0000)]
dnn: don't use aligned load without alignment checks

- weights are unaligned in dasiamprn sample (comes from numpy)

2 years agoMerge pull request #21421 from vrabaud:3.4size_t
Alexander Alekhin [Tue, 11 Jan 2022 18:27:17 +0000 (18:27 +0000)]
Merge pull request #21421 from vrabaud:3.4size_t

2 years agoFix a potential UBSAN error.
Vincent Rabaud [Tue, 11 Jan 2022 11:01:47 +0000 (12:01 +0100)]
Fix a potential UBSAN error.

We only use that value as uint64_t below anyway.

2 years agoMerge pull request #21416 from alalek:videoio_msmf_sourcereadercb_dtor_message_info
Alexander Alekhin [Mon, 10 Jan 2022 15:22:09 +0000 (15:22 +0000)]
Merge pull request #21416 from alalek:videoio_msmf_sourcereadercb_dtor_message_info

2 years agoMerge pull request #21405 from h6197627:3.4
h6197627 [Mon, 10 Jan 2022 11:51:07 +0000 (13:51 +0200)]
Merge pull request #21405 from h6197627:3.4

* Use c++ namespaces explicitly

* Add root cv c++ namespace

2 years agovideoio(msmf): use info message in SourceReaderCB destructor
Alexander Alekhin [Mon, 10 Jan 2022 09:16:01 +0000 (12:16 +0300)]
videoio(msmf): use info message in SourceReaderCB destructor

2 years agoMerge pull request #21412 from crackwitz:kmeans-N-ge-K-message
Alexander Alekhin [Sun, 9 Jan 2022 21:01:28 +0000 (21:01 +0000)]
Merge pull request #21412 from crackwitz:kmeans-N-ge-K-message

2 years agokmeans: assertion "There can't be more clusters than elements"
Christoph Rackwitz [Sat, 8 Jan 2022 22:42:21 +0000 (23:42 +0100)]
kmeans: assertion "There can't be more clusters than elements"

2 years agoMerge pull request #21394 from vrabaud:3.4_doc
Alexander Alekhin [Thu, 6 Jan 2022 08:44:04 +0000 (08:44 +0000)]
Merge pull request #21394 from vrabaud:3.4_doc

2 years agoRemove unnecessary use of ref-capture in code example.
Vincent Rabaud [Wed, 5 Jan 2022 12:42:55 +0000 (13:42 +0100)]
Remove unnecessary use of ref-capture in code example.

2 years agoMerge pull request #21382 from stal12:CCL_fix_4conn
Alexander Alekhin [Tue, 4 Jan 2022 13:21:25 +0000 (13:21 +0000)]
Merge pull request #21382 from stal12:CCL_fix_4conn

2 years agoMerge pull request #21375 from JoeHowse:3.4-umatusageflags-docs
Alexander Alekhin [Tue, 4 Jan 2022 13:08:10 +0000 (13:08 +0000)]
Merge pull request #21375 from JoeHowse:3.4-umatusageflags-docs

2 years agocopyright: 2022
Alexander Alekhin [Tue, 4 Jan 2022 12:48:27 +0000 (12:48 +0000)]
copyright: 2022

2 years agoFix #21366
Stefano Allegretti [Mon, 3 Jan 2022 17:15:09 +0000 (18:15 +0100)]
Fix #21366

2 years agoDoc warnings about experimental UMatUsageFlags
Joe Howse [Fri, 31 Dec 2021 17:49:33 +0000 (13:49 -0400)]
Doc warnings about experimental UMatUsageFlags

2 years agoMerge pull request #21360 from alalek:core_ocl_option_to_abort_on_kernel_build_error_3.4
Alexander Alekhin [Wed, 29 Dec 2021 15:11:18 +0000 (15:11 +0000)]
Merge pull request #21360 from alalek:core_ocl_option_to_abort_on_kernel_build_error_3.4

2 years agocore(ocl): add option to abort on OpenCL kernel build failure
Alexander Alekhin [Tue, 28 Dec 2021 12:43:42 +0000 (12:43 +0000)]
core(ocl): add option to abort on OpenCL kernel build failure

- exceptions are catched by fallback CPU path
- OPENCV_OPENCL_ABORT_ON_BUILD_ERROR (disabled by default)

2 years agoMerge pull request #21354 from alalek:samples_python_3.10
Alexander Alekhin [Tue, 28 Dec 2021 17:59:48 +0000 (17:59 +0000)]
Merge pull request #21354 from alalek:samples_python_3.10

2 years agosamples: query for Python 3.10 setup
Alexander Alekhin [Tue, 28 Dec 2021 11:49:55 +0000 (11:49 +0000)]
samples: query for Python 3.10 setup

2 years agoMerge tag '3.4.17'
Alexander Alekhin [Fri, 24 Dec 2021 16:45:05 +0000 (16:45 +0000)]
Merge tag '3.4.17'

2 years agorelease: OpenCV 3.4.17
Alexander Alekhin [Fri, 24 Dec 2021 16:39:15 +0000 (16:39 +0000)]
release: OpenCV 3.4.17

2 years agoMerge pull request #21341 from alalek:issue_20930_3.4
Alexander Alekhin [Fri, 24 Dec 2021 16:33:19 +0000 (16:33 +0000)]
Merge pull request #21341 from alalek:issue_20930_3.4

2 years agopython: use '((x,y), (w,h), angle)' in std::vector<RotatedRect>
Alexander Alekhin [Fri, 24 Dec 2021 14:51:01 +0000 (14:51 +0000)]
python: use '((x,y), (w,h), angle)' in std::vector<RotatedRect>

2 years agoMerge pull request #21329 from alalek:cmake_openexr_find_package
Alexander Alekhin [Fri, 24 Dec 2021 11:56:12 +0000 (11:56 +0000)]
Merge pull request #21329 from alalek:cmake_openexr_find_package

2 years agoMerge pull request #21327 from alalek:imgcodecs_openexr_runtime_disabled
Alexander Alekhin [Fri, 24 Dec 2021 11:55:55 +0000 (11:55 +0000)]
Merge pull request #21327 from alalek:imgcodecs_openexr_runtime_disabled

2 years agoMerge pull request #21320 from catree:solvePnP_doc_page
Alexander Alekhin [Fri, 24 Dec 2021 11:55:34 +0000 (11:55 +0000)]
Merge pull request #21320 from catree:solvePnP_doc_page

2 years agoMerge pull request #21306 from aBITnav:patch-1
Alexander Alekhin [Fri, 24 Dec 2021 10:49:09 +0000 (10:49 +0000)]
Merge pull request #21306 from aBITnav:patch-1

2 years agoMerge pull request #21336 from alalek:dnn_pooling_check_array_indexes
Alexander Alekhin [Fri, 24 Dec 2021 08:35:11 +0000 (08:35 +0000)]
Merge pull request #21336 from alalek:dnn_pooling_check_array_indexes

2 years agoMerge pull request #21335 from alalek:dnn_onnx_dump_input_output
Alexander Alekhin [Fri, 24 Dec 2021 08:34:47 +0000 (08:34 +0000)]
Merge pull request #21335 from alalek:dnn_onnx_dump_input_output

2 years agoMerge pull request #21325 from APrigarina:fix_asift_sample
Alexander Alekhin [Fri, 24 Dec 2021 08:26:16 +0000 (08:26 +0000)]
Merge pull request #21325 from APrigarina:fix_asift_sample

2 years agoFix: Grammatical mistake
ABHINAV JHA [Tue, 21 Dec 2021 20:43:19 +0000 (02:13 +0530)]
Fix: Grammatical mistake

2 years agocmake: use find_package(OpenEXR) to support OpenEXR 3+
Alexander Alekhin [Thu, 23 Dec 2021 10:39:43 +0000 (10:39 +0000)]
cmake: use find_package(OpenEXR) to support OpenEXR 3+

2 years agodnn: add checks in pooling layer implementation
Alexander Alekhin [Fri, 24 Dec 2021 00:14:17 +0000 (00:14 +0000)]
dnn: add checks in pooling layer implementation

- to avoid out of buffer access

2 years agodnn(onnx): debug dump of inputs/outputs/initializers in importer
Alexander Alekhin [Thu, 23 Dec 2021 16:00:52 +0000 (16:00 +0000)]
dnn(onnx): debug dump of inputs/outputs/initializers in importer

2 years agoMerge pull request #21331 from alalek:issue_21289
Alexander Alekhin [Thu, 23 Dec 2021 20:09:52 +0000 (20:09 +0000)]
Merge pull request #21331 from alalek:issue_21289

2 years agoMerge pull request #21330 from alalek:fix_highgui_gtk_mouse_callbacks
Alexander Alekhin [Thu, 23 Dec 2021 20:09:40 +0000 (20:09 +0000)]
Merge pull request #21330 from alalek:fix_highgui_gtk_mouse_callbacks

2 years agoMerge pull request #21322 from alalek:dnn_catch_errors
Alexander Alekhin [Thu, 23 Dec 2021 20:09:22 +0000 (20:09 +0000)]
Merge pull request #21322 from alalek:dnn_catch_errors

2 years agoSummarize PnP pose computation on a single separate page.
catree [Wed, 22 Dec 2021 20:29:50 +0000 (21:29 +0100)]
Summarize PnP pose computation on a single separate page.

2 years agoMerge pull request #21323 from alalek:dnn_do_not_rebuilt_network_in_setInput
Alexander Alekhin [Thu, 23 Dec 2021 15:45:28 +0000 (15:45 +0000)]
Merge pull request #21323 from alalek:dnn_do_not_rebuilt_network_in_setInput

2 years agodnn(onnx): emit error in Shape for dynamic input
Alexander Alekhin [Thu, 23 Dec 2021 02:01:03 +0000 (02:01 +0000)]
dnn(onnx): emit error in Shape for dynamic input

2 years agodnn(onnx): fix Resize inputs handling
Alexander Alekhin [Thu, 23 Dec 2021 01:59:34 +0000 (01:59 +0000)]
dnn(onnx): fix Resize inputs handling

2 years agodnn: improve debug messages, add ONNX opset version
Alexander Alekhin [Wed, 22 Dec 2021 23:33:57 +0000 (23:33 +0000)]
dnn: improve debug messages, add ONNX opset version

2 years agoMerge pull request #21321 from alalek:dnn_test_decompose_dynamic_axes
Alexander Alekhin [Thu, 23 Dec 2021 15:26:21 +0000 (15:26 +0000)]
Merge pull request #21321 from alalek:dnn_test_decompose_dynamic_axes

2 years agohighgui(gtk): repair scroll events
Alexander Alekhin [Thu, 23 Dec 2021 13:06:44 +0000 (13:06 +0000)]
highgui(gtk): repair scroll events

2 years agohighgui(gtk): fix onmouse event flags
Alexander Alekhin [Thu, 23 Dec 2021 12:15:14 +0000 (12:15 +0000)]
highgui(gtk): fix onmouse event flags

2 years agoimgcodecs: disable OpenEXR in runtime for 3rdparty source code
Alexander Alekhin [Thu, 23 Dec 2021 09:58:56 +0000 (09:58 +0000)]
imgcodecs: disable OpenEXR in runtime for 3rdparty source code

- builtin OpenEXR source code is outdated
- external OpenEXR distributions are allowed

2 years agoprevent index error in find_obj sample
APrigarina [Thu, 23 Dec 2021 07:00:25 +0000 (10:00 +0300)]
prevent index error in find_obj sample

2 years agodnn: do not try to rebuilt network during setInput()
Alexander Alekhin [Thu, 23 Dec 2021 02:37:45 +0000 (02:37 +0000)]
dnn: do not try to rebuilt network during setInput()

- this doesn't make sense in case of multiple inputs

2 years agodnn(test): decompose 'DynamicAxes' test
Alexander Alekhin [Thu, 23 Dec 2021 00:39:09 +0000 (00:39 +0000)]
dnn(test): decompose 'DynamicAxes' test

2 years agoMerge pull request #21313 from alalek:fix_links_3.4
Alexander Alekhin [Wed, 22 Dec 2021 15:53:02 +0000 (15:53 +0000)]
Merge pull request #21313 from alalek:fix_links_3.4

2 years agofix 3.4 links
Alexander Alekhin [Wed, 22 Dec 2021 12:38:21 +0000 (12:38 +0000)]
fix 3.4 links

2 years agoMerge pull request #21114 from dwardor:patch-1
dwardor [Wed, 22 Dec 2021 12:00:00 +0000 (13:00 +0100)]
Merge pull request #21114 from dwardor:patch-1

* Fix compile against lapack-3.10.0

Fix compilation against lapack >= 3.9.1 and 3.10.0 while not breaking older versions

OpenCVFindLAPACK.cmake & CMakeLists.txt: determine OPENCV_USE_LAPACK_PREFIX from LAPACK_VERSION

hal_internal.cpp : Only apply LAPACK_FUNC to functions whose number of inputs depends on LAPACK_FORTRAN_STR_LEN in lapack >= 3.9.1

lapack_check.cpp : remove LAPACK_FUNC which is not OK as function are not used with input parameters (so lapack.h preprocessing of "LAPACK_xxxx(...)" is not applicable with lapack >= 3.9.1
If not removed lapack_check fails so LAPACK is deactivated in build (not want we want)

use OCV_ prefix and don't use Global, instead generate OCV_LAPACK_FUNC depending on CMake Conditions

Remove CONFIG from find_package(LAPACK) and use LAPACK_GLOBAL and LAPACK_NAME to figure out if using netlib's reference LAPACK implementation and how to #define OCV_LAPACK_FUNC(f)

* Fix typos and grammar in comments

2 years agoMerge pull request #21302 from alalek:issue_21299_3.4
Alexander Alekhin [Tue, 21 Dec 2021 18:39:52 +0000 (18:39 +0000)]
Merge pull request #21302 from alalek:issue_21299_3.4

2 years agoMerge pull request #21297 from rogday:div_fix
Alexander Alekhin [Tue, 21 Dec 2021 15:48:40 +0000 (15:48 +0000)]
Merge pull request #21297 from rogday:div_fix

2 years agohighgui: fix Win32 with OPENGL=ON
Alexander Alekhin [Tue, 21 Dec 2021 15:44:59 +0000 (15:44 +0000)]
highgui: fix Win32 with OPENGL=ON

2 years agoMerge pull request #21295 from alalek:update_ffmpeg_3.4
Alexander Alekhin [Mon, 20 Dec 2021 18:11:41 +0000 (18:11 +0000)]
Merge pull request #21295 from alalek:update_ffmpeg_3.4

2 years agofix const/x in Div
rogday [Mon, 20 Dec 2021 16:53:37 +0000 (19:53 +0300)]
fix const/x in Div

2 years agoffmpeg/3.4: update FFmpeg wrapper 2021.12
Alexander Alekhin [Mon, 20 Dec 2021 15:32:05 +0000 (15:32 +0000)]
ffmpeg/3.4: update FFmpeg wrapper 2021.12

- FFmpeg 3.4.9

2 years agovideoio: fix ffmpeg standalone build
Alexander Alekhin [Mon, 20 Dec 2021 15:03:21 +0000 (15:03 +0000)]
videoio: fix ffmpeg standalone build

2 years agoMerge pull request #21280 from alalek:update_version_3.4.17-pre
Alexander Alekhin [Sat, 18 Dec 2021 13:46:29 +0000 (13:46 +0000)]
Merge pull request #21280 from alalek:update_version_3.4.17-pre

2 years agoMerge pull request #21275 from stal12:CCL_improvements
Stefano Allegretti [Fri, 17 Dec 2021 19:36:57 +0000 (20:36 +0100)]
Merge pull request #21275 from stal12:CCL_improvements

Improve CCL with new algorithms and tests

* Improve CCL with new algorithms and tests

* Split CCL test into dedicated tests cases

2 years agoMerge pull request #21283 from rogday:flatten_fix
Alexander Alekhin [Fri, 17 Dec 2021 14:27:40 +0000 (14:27 +0000)]
Merge pull request #21283 from rogday:flatten_fix

2 years agoMerge pull request #21258 from eplankin:fix_threshold_to_zero_ipp_bug
eplankin [Fri, 17 Dec 2021 13:31:37 +0000 (16:31 +0300)]
Merge pull request #21258 from eplankin:fix_threshold_to_zero_ipp_bug

Fixed threshold(THRESH_TOZERO) at imgproc(IPP)

* Fixed #16085: imgproc(IPP): wrong result from threshold(THRESH_TOZERO)

* 1. Added test cases with float where all bits of mantissa equal 1, min and max float as inputs
2. Used nextafterf instead of cast to hex

* Used float value in test instead of hex and casts

* Changed input value in test

2 years agofix Flatten layer
Smirnov Egor [Thu, 16 Dec 2021 19:41:47 +0000 (22:41 +0300)]
fix Flatten layer

2 years agopre: OpenCV 3.4.17 (version++)
Alexander Alekhin [Fri, 17 Dec 2021 10:05:52 +0000 (10:05 +0000)]
pre: OpenCV 3.4.17 (version++)

2 years agoMerge pull request #21277 from alalek:backport_21267
Alexander Alekhin [Thu, 16 Dec 2021 18:52:22 +0000 (18:52 +0000)]
Merge pull request #21277 from alalek:backport_21267

2 years ago(3.4) Fixed several issues found by static analysis
Maksim Shabunin [Wed, 15 Dec 2021 09:49:13 +0000 (12:49 +0300)]
(3.4) Fixed several issues found by static analysis

original commit: a079c2eb7cb74b4520c69b6f6c2ea79c7d410871

2 years agoMerge pull request #21271 from vrabaud:3.4_clip
Alexander Alekhin [Thu, 16 Dec 2021 11:19:53 +0000 (11:19 +0000)]
Merge pull request #21271 from vrabaud:3.4_clip

2 years agoUse NaN-safe clip function.
Vincent Rabaud [Thu, 16 Dec 2021 10:27:37 +0000 (11:27 +0100)]
Use NaN-safe clip function.

This is to prevent more NaN to int conversions like in #21111.

2 years agoMerge pull request #21269 from mshabunin:fix-hardening-o3
Alexander Alekhin [Thu, 16 Dec 2021 09:17:51 +0000 (09:17 +0000)]
Merge pull request #21269 from mshabunin:fix-hardening-o3

2 years agoDo not force -O2 flag in hardening-enabled builds
Maksim Shabunin [Thu, 16 Dec 2021 08:40:42 +0000 (11:40 +0300)]
Do not force -O2 flag in hardening-enabled builds

2 years agoMerge pull request #21261 from alalek:dnn_onnx_test_filter_update
Alexander Alekhin [Wed, 15 Dec 2021 16:24:03 +0000 (16:24 +0000)]
Merge pull request #21261 from alalek:dnn_onnx_test_filter_update

2 years agodnn(test): update ONNX conformance filters
Alexander Alekhin [Wed, 15 Dec 2021 08:57:50 +0000 (08:57 +0000)]
dnn(test): update ONNX conformance filters

2 years agoMerge pull request #21259 from rogday:random_fixes
Alexander Alekhin [Wed, 15 Dec 2021 10:26:49 +0000 (10:26 +0000)]
Merge pull request #21259 from rogday:random_fixes

2 years agoMerge pull request #21254 from alalek:build_opencv_winpack_dldt_2021.4.2
Alexander Alekhin [Wed, 15 Dec 2021 08:17:09 +0000 (08:17 +0000)]
Merge pull request #21254 from alalek:build_opencv_winpack_dldt_2021.4.2

2 years agofix max_unpool missing attributes, add default value of keepdims in reducemean/max...
Smirnov Egor [Tue, 14 Dec 2021 17:54:43 +0000 (20:54 +0300)]
fix max_unpool missing attributes, add default value of keepdims in reducemean/max/sum, add support for keepdims=true in full reduction branch, add new padding type to Pad

2 years agoMerge pull request #21257 from alalek:imgproc_cvtcolor_lab_fix_nan
Alexander Alekhin [Tue, 14 Dec 2021 16:59:07 +0000 (16:59 +0000)]
Merge pull request #21257 from alalek:imgproc_cvtcolor_lab_fix_nan

2 years agoMerge pull request #21256 from zchrissirhcz:fix-3.4-pyramid-tutorial
Alexander Alekhin [Tue, 14 Dec 2021 16:58:52 +0000 (16:58 +0000)]
Merge pull request #21256 from zchrissirhcz:fix-3.4-pyramid-tutorial

2 years agoMerge pull request #21088 from rogday:onnx_tests
rogday [Tue, 14 Dec 2021 16:58:06 +0000 (19:58 +0300)]
Merge pull request #21088 from rogday:onnx_tests

Onnx conformance tests

* Add ONNX conformance tests

* dnn(test): add filters for ONNX conformance tests

* add filter lists for OCV backend

* address review comments

* move test_clip_inbounds to all_denylist

* address clip issue

* avoid empty lists

Co-authored-by: Alexander Alekhin <alexander.a.alekhin@gmail.com>
2 years agoimgproc: catch NaNs in clip(), use table index debug check
Alexander Alekhin [Sat, 11 Dec 2021 17:28:21 +0000 (17:28 +0000)]
imgproc: catch NaNs in clip(), use table index debug check

- no NaN propagation guarantee

2 years agoMerge pull request #21251 from vrabaud:3.4_bayer
Alexander Alekhin [Tue, 14 Dec 2021 15:15:07 +0000 (15:15 +0000)]
Merge pull request #21251 from vrabaud:3.4_bayer

2 years agodocs: correct normalize factor in gaussian pyramid tutorial
Zhuo Zhang [Tue, 14 Dec 2021 13:06:02 +0000 (21:06 +0800)]
docs: correct normalize factor in gaussian pyramid tutorial

2 years agobuild: winpack_dldt with dldt 2021.4.2
Alexander Alekhin [Mon, 13 Dec 2021 19:10:02 +0000 (19:10 +0000)]
build: winpack_dldt with dldt 2021.4.2

2 years agoFix harmless signed integer overflow.
Vincent Rabaud [Mon, 13 Dec 2021 22:43:49 +0000 (23:43 +0100)]
Fix harmless signed integer overflow.

When computing:
t1 = (bayer[1] + bayer[bayer_step] + bayer[bayer_step+2] + bayer[bayer_step*2+1])*G2Y;
there is a T (unsigned short or char) multiplied by an int which can overflow.
Then again, it is stored to t1 which is unsigned so the overflow disappears.
Keeping all unsigned is safer.

2 years agoMerge pull request #21250 from alalek:videoio_msmf_update_camera_3.4
Alexander Alekhin [Mon, 13 Dec 2021 22:24:33 +0000 (22:24 +0000)]
Merge pull request #21250 from alalek:videoio_msmf_update_camera_3.4

2 years agovideoio(MSMF): add queue for async ReadSample()
Alexander Alekhin [Mon, 6 Dec 2021 06:54:48 +0000 (09:54 +0300)]
videoio(MSMF): add queue for async ReadSample()

2 years agoMerge pull request #21235 from jonay2000:fix-docs
Alexander Alekhin [Sat, 11 Dec 2021 15:14:43 +0000 (15:14 +0000)]
Merge pull request #21235 from jonay2000:fix-docs