Yuriy Chernyshov
d1b533d399
Disable -Wreturn-type-c-linkage under clang-cl
...
clang-cl defines both __clang__ and _MSC_VER, yet uses `#pragma GCC` to disable certain diagnostics.
At the time `-Wreturn-type-c-linkage` was reported by clang-cl.
This PR fixes this behavior by reordering defines.
2022-01-24 11:42:02 +03:00
Alexander Alekhin
3f2377017c
Merge pull request #21497 from alalek:fix_build_gcc12_3.4
2022-01-23 14:00:55 +00:00
Alexander Alekhin
302d14adef
build: fix GCC12 compilation
2022-01-22 11:48:44 +00:00
Alexander Alekhin
f811ba8777
Merge pull request #21429 from alalek:dnn_api_explicit_const_3.4
2022-01-21 20:04:58 +00:00
Alexander Alekhin
ca5258f140
Merge pull request #21483 from alalek:cmake_highgui_opengl_update_3.4
2022-01-20 14:37:09 +00:00
Alexander Alekhin
82818e7324
cmake(highgui): update handling of OpenGL libraries
2022-01-20 02:31:15 +00:00
Vadim Levin
eca2d92791
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
2022-01-19 18:06:58 +03:00
Vadim Levin
76e34d6f2c
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.
2022-01-18 11:38:33 +03:00
Alexander Alekhin
b304730225
dnn: fix API - explicit ctors, const methods
2022-01-17 21:45:29 +00:00
Alexander Alekhin
5e327af327
Merge pull request #21426 from alalek:dnn_simd_unaligned_weights_fix
2022-01-12 13:11:45 +00:00
Alexander Alekhin
80d9f624d0
dnn: don't use aligned load without alignment checks
...
- weights are unaligned in dasiamprn sample (comes from numpy)
2022-01-12 05:11:18 +00:00
Vincent Rabaud
4db3a388dd
Fix a potential UBSAN error.
...
We only use that value as uint64_t below anyway.
2022-01-11 12:01:47 +01:00
Alexander Alekhin
1ba7c2f276
Merge pull request #21416 from alalek:videoio_msmf_sourcereadercb_dtor_message_info
2022-01-10 15:22:09 +00:00
h6197627
649f747f8a
Merge pull request #21405 from h6197627:3.4
...
* Use c++ namespaces explicitly
* Add root cv c++ namespace
2022-01-10 14:51:07 +03:00
Alexander Alekhin
05dbaf7672
videoio(msmf): use info message in SourceReaderCB destructor
2022-01-10 12:16:01 +03:00
Christoph Rackwitz
f3e0479a8f
kmeans: assertion "There can't be more clusters than elements"
2022-01-08 23:42:21 +01:00
Vincent Rabaud
bf5e09d5ab
Remove unnecessary use of ref-capture in code example.
2022-01-05 13:42:55 +01:00
Alexander Alekhin
53b89e1ee4
Merge pull request #21382 from stal12:CCL_fix_4conn
2022-01-04 13:21:25 +00:00
Stefano Allegretti
c685293297
Fix #21366
2022-01-03 18:15:09 +01:00
Joe Howse
c2209ad5e4
Doc warnings about experimental UMatUsageFlags
2021-12-31 13:51:06 -04:00
Alexander Alekhin
c5a86c22a4
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)
2021-12-29 00:04:45 +00:00
Alexander Alekhin
523c3cd50b
Merge tag '3.4.17'
2021-12-24 16:45:05 +00:00
Alexander Alekhin
631126c77a
release: OpenCV 3.4.17
2021-12-24 16:39:15 +00:00
Alexander Alekhin
cdfa8a668b
python: use '((x,y), (w,h), angle)' in std::vector<RotatedRect>
2021-12-24 15:01:45 +00:00
Alexander Alekhin
92651d228d
Merge pull request #21329 from alalek:cmake_openexr_find_package
2021-12-24 11:56:12 +00:00
Alexander Alekhin
90e3692603
Merge pull request #21327 from alalek:imgcodecs_openexr_runtime_disabled
2021-12-24 11:55:55 +00:00
Alexander Alekhin
3a8316ab93
Merge pull request #21320 from catree:solvePnP_doc_page
2021-12-24 11:55:34 +00:00
Alexander Alekhin
cdd4354256
Merge pull request #21336 from alalek:dnn_pooling_check_array_indexes
2021-12-24 08:35:11 +00:00
Alexander Alekhin
f43fec7ee6
cmake: use find_package(OpenEXR) to support OpenEXR 3+
2021-12-24 00:21:48 +00:00
Alexander Alekhin
6385511e88
dnn: add checks in pooling layer implementation
...
- to avoid out of buffer access
2021-12-24 00:15:30 +00:00
Alexander Alekhin
ed4becf007
dnn(onnx): debug dump of inputs/outputs/initializers in importer
2021-12-23 21:11:40 +00:00
Alexander Alekhin
f11ab4c569
Merge pull request #21331 from alalek:issue_21289
2021-12-23 20:09:52 +00:00
Alexander Alekhin
b12c2c76d1
Merge pull request #21330 from alalek:fix_highgui_gtk_mouse_callbacks
2021-12-23 20:09:40 +00:00
Alexander Alekhin
f5589445b9
Merge pull request #21322 from alalek:dnn_catch_errors
2021-12-23 20:09:22 +00:00
catree
032a61b197
Summarize PnP pose computation on a single separate page.
2021-12-23 19:52:14 +01:00
Alexander Alekhin
011ed380aa
Merge pull request #21323 from alalek:dnn_do_not_rebuilt_network_in_setInput
2021-12-23 15:45:28 +00:00
Alexander Alekhin
88a18c8b6a
dnn(onnx): emit error in Shape for dynamic input
2021-12-23 15:42:59 +00:00
Alexander Alekhin
51e65db715
dnn(onnx): fix Resize inputs handling
2021-12-23 15:42:59 +00:00
Alexander Alekhin
cc02fcd889
dnn: improve debug messages, add ONNX opset version
2021-12-23 15:42:59 +00:00
Alexander Alekhin
36bd2a65e3
highgui(gtk): repair scroll events
2021-12-23 13:06:44 +00:00
Alexander Alekhin
85d4e56bb1
highgui(gtk): fix onmouse event flags
2021-12-23 12:15:14 +00:00
Alexander Alekhin
381d9bafdf
imgcodecs: disable OpenEXR in runtime for 3rdparty source code
...
- builtin OpenEXR source code is outdated
- external OpenEXR distributions are allowed
2021-12-23 10:41:18 +00:00
Alexander Alekhin
c408157a4d
dnn: do not try to rebuilt network during setInput()
...
- this doesn't make sense in case of multiple inputs
2021-12-23 02:40:33 +00:00
Alexander Alekhin
6e299b582a
dnn(test): decompose 'DynamicAxes' test
2021-12-23 00:47:27 +00:00
Alexander Alekhin
b1a57c4cb2
fix 3.4 links
2021-12-22 12:38:21 +00:00
dwardor
54c180092d
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
2021-12-22 12:00:00 +00:00
Alexander Alekhin
6e733b65ae
Merge pull request #21302 from alalek:issue_21299_3.4
2021-12-21 18:39:52 +00:00
Alexander Alekhin
947d610309
Merge pull request #21297 from rogday:div_fix
2021-12-21 15:48:40 +00:00
Alexander Alekhin
3e01a387ba
highgui: fix Win32 with OPENGL=ON
2021-12-21 15:44:59 +00:00
rogday
0a178a687a
fix const/x in Div
2021-12-20 19:53:37 +03:00