Alexander Alekhin [Wed, 23 Mar 2022 19:13:12 +0000 (19:13 +0000)]
Merge pull request #21759 from pkubaj:patch-1
Alexander Alekhin [Mon, 21 Mar 2022 17:10:11 +0000 (17:10 +0000)]
Merge pull request #21739 from mshabunin:fix-cart-polar
Maksim Shabunin [Thu, 17 Mar 2022 13:14:38 +0000 (16:14 +0300)]
cartToPolar/polarToCart: disable inplace mode
Maksim Shabunin [Mon, 21 Mar 2022 13:04:33 +0000 (16:04 +0300)]
ts: fix some EXPECT_MAT macros
pkubaj [Mon, 21 Mar 2022 02:05:05 +0000 (02:05 +0000)]
Fix build with LLVM 13 on ppc64le
/wrkdirs/usr/ports/graphics/opencv/work/opencv-4.5.5/modules/core/include/opencv2/core/vsx_utils.hpp:352:12: warning: 'vec_permi' macro redefined [-Wmacro-redefined]
# define vec_permi(a, b, c) vec_xxpermdi(b, a, (3 ^ (((c) & 1) << 1 | (c) >> 1)))
^
/usr/lib/clang/13.0.0/include/altivec.h:13077:9: note: previous definition is here
#define vec_permi(__a, __b, __c) \
^
/wrkdirs/usr/ports/graphics/opencv/work/opencv-4.5.5/modules/core/include/opencv2/core/vsx_utils.hpp:370:25: error: redefinition of 'vec_promote'
VSX_FINLINE(vec_dword2) vec_promote(long long a, int b)
^
/usr/lib/clang/13.0.0/include/altivec.h:14604:1: note: previous definition is here
vec_promote(signed long long __a, int __b) {
^
/wrkdirs/usr/ports/graphics/opencv/work/opencv-4.5.5/modules/core/include/opencv2/core/vsx_utils.hpp:377:26: error: redefinition of 'vec_promote'
VSX_FINLINE(vec_udword2) vec_promote(unsigned long long a, int b)
^
/usr/lib/clang/13.0.0/include/altivec.h:14611:1: note: previous definition is here
vec_promote(unsigned long long __a, int __b) {
^
/wrkdirs/usr/ports/graphics/opencv/work/opencv-4.5.5/modules/core/include/opencv2/core/hal/intrin_vsx.hpp:1045:22: error: call to 'vec_rsqrt' is ambiguous
{ return v_float32x4(vec_rsqrt(x.val)); }
^~~~~~~~~
/usr/lib/clang/13.0.0/include/altivec.h:8472:34: note: candidate function
static vector float __ATTRS_o_ai vec_rsqrt(vector float __a) {
^
/wrkdirs/usr/ports/graphics/opencv/work/opencv-4.5.5/modules/core/include/opencv2/core/vsx_utils.hpp:362:29: note: candidate function
VSX_FINLINE(vec_float4) vec_rsqrt(const vec_float4& a)
^
/wrkdirs/usr/ports/graphics/opencv/work/opencv-4.5.5/modules/core/include/opencv2/core/hal/intrin_vsx.hpp:1047:22: error: call to 'vec_rsqrt' is ambiguous
{ return v_float64x2(vec_rsqrt(x.val)); }
^~~~~~~~~
/usr/lib/clang/13.0.0/include/altivec.h:8477:35: note: candidate function
static vector double __ATTRS_o_ai vec_rsqrt(vector double __a) {
^
/wrkdirs/usr/ports/graphics/opencv/work/opencv-4.5.5/modules/core/include/opencv2/core/vsx_utils.hpp:365:30: note: candidate function
VSX_FINLINE(vec_double2) vec_rsqrt(const vec_double2& a)
^
1 warning and 4 errors generated.
The specific functions were added to altivec.h in LLVM's
1ff93618e58df210def48d26878c20a1b414d900,
c3da07d216dd20fbdb7302fd085c0a59e189ae3d and
10cc5bcd868c433f9a781aef82178b04e98bd098.
rogday [Tue, 15 Mar 2022 06:14:05 +0000 (09:14 +0300)]
Merge pull request #21522 from rogday:lstm
Fix LSTM support in ONNX
* fix LSTM and add peephole support
* disable old tests
* turn lambdas into functions
* more hacks for c++98
* add assertions
* slice fixes
* backport of cuda-related fixes
* address review comments
Alexander Alekhin [Fri, 11 Mar 2022 18:03:35 +0000 (18:03 +0000)]
Merge pull request #21684 from vrabaud:34_vec
Vincent Rabaud [Fri, 4 Mar 2022 10:57:14 +0000 (11:57 +0100)]
Allow Matx static function to work with Vec.
Alexander Alekhin [Wed, 2 Mar 2022 18:44:00 +0000 (18:44 +0000)]
Merge pull request #21488 from VadimLevin:dev/vlevin/scope-for-classes
Vadim Levin [Thu, 20 Jan 2022 12:21:47 +0000 (15:21 +0300)]
feature: submodule or a class scope for exported classes
All classes are registered in the scope that corresponds to C++
namespace or exported class.
Example:
`cv::ml::Boost` is exported as `cv.ml.Boost`
`cv::SimpleBlobDetector::Params` is exported as
`cv.SimpleBlobDetector.Params`
For backward compatibility all classes are registered in the global
module with their mangling name containing scope information.
Example:
`cv::ml::Boost` has `cv.ml_Boost` alias to `cv.ml.Boost` type
Alexander Alekhin [Mon, 28 Feb 2022 22:38:24 +0000 (22:38 +0000)]
Merge pull request #21542 from rogday:split_expand
Egor Smirnov [Thu, 17 Feb 2022 17:30:44 +0000 (20:30 +0300)]
fix slice and expand
Alexander Alekhin [Mon, 21 Feb 2022 16:34:10 +0000 (16:34 +0000)]
Merge pull request #21646 from zchrissirhcz:seamless_cloning-remove-const
Zhuo Zhang [Mon, 21 Feb 2022 12:39:41 +0000 (20:39 +0800)]
remove const in seamless_cloding APIs for better semantics
Alexander Alekhin [Sat, 19 Feb 2022 20:58:57 +0000 (20:58 +0000)]
Merge pull request #21639 from georgthegreat:patch-1
Alexander Alekhin [Sat, 19 Feb 2022 20:58:35 +0000 (20:58 +0000)]
Merge pull request #21598 from KaurkerDevourer:patch-1
KaurkerDevourer [Fri, 11 Feb 2022 11:38:48 +0000 (14:38 +0300)]
Fix DpSeamFinder::hasOnlyOneNeighbor
std::lower_bound is linear for set
https://en.cppreference.com/w/cpp/algorithm/lower_bound
Artem Saratovtsev [Fri, 18 Feb 2022 14:58:58 +0000 (17:58 +0300)]
Merge pull request #21635 from DumDereDum:issue_21595_3.4
Issue 21595 fix 3.4 branch
* bug fix; add test
* rewrite tests avoiding vector in tests
Yuriy Chernyshov [Fri, 18 Feb 2022 14:57:46 +0000 (17:57 +0300)]
Аix -Winvalid-noreturn under clang-cl
Alexander Alekhin [Tue, 15 Feb 2022 18:19:51 +0000 (18:19 +0000)]
Merge pull request #21622 from alalek:imgcodecs_checks_3.4
Alexander Alekhin [Tue, 15 Feb 2022 11:48:09 +0000 (11:48 +0000)]
imgcodecs: add runtime checks to validate input
backport of commit:
f9b1dbe2ac3da4ed87647ea27d9060879acc20fe
Alexander Alekhin [Tue, 15 Feb 2022 15:31:23 +0000 (15:31 +0000)]
Merge pull request #21614 from alalek:fix_build_power8_vec_absd
Alexander Alekhin [Tue, 15 Feb 2022 13:11:59 +0000 (13:11 +0000)]
Merge pull request #21617 from mshabunin:disable-onnx-tests-34
Maksim Shabunin [Tue, 8 Feb 2022 17:32:55 +0000 (20:32 +0300)]
Update filters in ONNX tests
Alexander Alekhin [Tue, 15 Feb 2022 04:23:32 +0000 (07:23 +0300)]
core(vsx): update vec_absd() workaround condition
Alexander Alekhin [Mon, 14 Feb 2022 14:14:30 +0000 (14:14 +0000)]
Merge pull request #21606 from sturkmen72:hog_update
Suleyman TURKMEN [Sun, 13 Feb 2022 08:18:30 +0000 (11:18 +0300)]
update HOGDescriptor documentation
Alexander Alekhin [Fri, 11 Feb 2022 16:46:55 +0000 (16:46 +0000)]
Merge pull request #21599 from alalek:winpack_dldt_force_cmake_config
Alexander Alekhin [Fri, 11 Feb 2022 12:13:09 +0000 (15:13 +0300)]
build(winpack_dldt): force using CMake config for InferenceEngine
Alexander Alekhin [Thu, 10 Feb 2022 21:47:30 +0000 (21:47 +0000)]
Merge pull request #21591 from alalek:dnn_drop_legacy_ie
Vincent Rabaud [Thu, 10 Feb 2022 16:44:14 +0000 (17:44 +0100)]
Merge pull request #21594 from vrabaud:3.4_msan
* Fix harmless MSAN error.
This is similar to https://github.com/opencv/opencv/pull/21527
A macro is also created to simplify the code.
* Declare fallback only once.
Alexander Alekhin [Wed, 9 Feb 2022 14:25:08 +0000 (14:25 +0000)]
dnn: drop legacy Inference Engine NN builder API
Alexander Alekhin [Wed, 9 Feb 2022 18:49:41 +0000 (18:49 +0000)]
Merge pull request #21590 from berak:patch-1
Alexander Alekhin [Wed, 9 Feb 2022 18:49:24 +0000 (18:49 +0000)]
Merge pull request #21582 from gfiumara:3.4
Greg Fiumara [Tue, 8 Feb 2022 21:21:53 +0000 (16:21 -0500)]
Fix cv::FileStorage::Mode::Memory doxygen layout
berak [Wed, 9 Feb 2022 16:14:05 +0000 (17:14 +0100)]
Update text_detection.py
there is a recent change, how `std::vector<int>` is wrapped in python,
it used to be a 2d array (requirig that weird `[0]` indexing), now it is only 1d
Alexander Alekhin [Tue, 8 Feb 2022 13:30:29 +0000 (13:30 +0000)]
Merge pull request #21577 from sturkmen72:upd_floodfill
Suleyman TURKMEN [Tue, 8 Feb 2022 05:37:04 +0000 (08:37 +0300)]
fix cv::floodfill() for calling it with an empty mask
Alexander Alekhin [Mon, 7 Feb 2022 17:55:12 +0000 (17:55 +0000)]
Merge pull request #21573 from lamm45:lineiterator-doc
lamm45 [Sun, 6 Feb 2022 23:42:26 +0000 (18:42 -0500)]
Update LineIterator documentation
Alexander Alekhin [Sun, 6 Feb 2022 16:06:23 +0000 (16:06 +0000)]
Merge pull request #21564 from alalek:dnn_fix_openvino_outputs
Alexander Alekhin [Sun, 6 Feb 2022 16:04:38 +0000 (16:04 +0000)]
Merge pull request #21569 from alalek:fixup_18031
Alexander Alekhin [Sat, 5 Feb 2022 16:16:45 +0000 (16:16 +0000)]
dnn(ngraph): fix output names
Alexander Alekhin [Sat, 5 Feb 2022 02:51:44 +0000 (02:51 +0000)]
dnn(ngraph): fix outputs handling, drop 'unconnected' logic
Alexander Alekhin [Sat, 5 Feb 2022 14:36:57 +0000 (14:36 +0000)]
dnn(ngraph): add debuging messages
Alexander Alekhin [Thu, 3 Feb 2022 20:23:17 +0000 (20:23 +0000)]
dnn: don't fuse 'outputs' with OpenVINO backend
Alexander Alekhin [Sat, 5 Feb 2022 03:31:39 +0000 (03:31 +0000)]
dnn(test): re-enable ONNX split tests for OpenVINO
Alexander Alekhin [Sat, 5 Feb 2022 03:28:36 +0000 (03:28 +0000)]
dnn(ngraph): fixup get_output_as_single_output_node() replacement patch
Alexander Alekhin [Thu, 3 Feb 2022 19:18:26 +0000 (19:18 +0000)]
Merge pull request #21562 from alalek:cmake_carotene_use_cv_disable_optimization
Alexander Alekhin [Thu, 3 Feb 2022 17:25:52 +0000 (17:25 +0000)]
cmake(carotene): disable with CV_DISABLE_OPTIMIZATION
Alexander Alekhin [Wed, 2 Feb 2022 18:04:50 +0000 (18:04 +0000)]
Merge pull request #21551 from alalek:cmake_dnn_backport_3.4
Maksim Shabunin [Fri, 14 Jan 2022 21:53:19 +0000 (00:53 +0300)]
3.4: Use modern OpenVINO package interface
original commit:
437af37b1341e5cef90aa1a4ce60210feacc6c8a
Ilya Lavrenov [Thu, 9 Sep 2021 07:56:34 +0000 (10:56 +0300)]
3.4: Support of OpenVINO interface libraries
original commit:
c703f1eed6c3da4f14b37cc151e03463bb4ff54f
Alexander Alekhin [Mon, 31 Jan 2022 12:46:14 +0000 (12:46 +0000)]
Merge pull request #21540 from alalek:dnn_support_outputs_registration_3.4
Alexander Alekhin [Sat, 29 Jan 2022 19:58:46 +0000 (19:58 +0000)]
dnn(test): fix outputs handling in ONNX conformance
- ONNX output is 1 tensor per defined output instead of N tensors from outputs of "output" layer
Alexander Alekhin [Sat, 29 Jan 2022 19:11:58 +0000 (19:11 +0000)]
dnn: support outputs registration under new names
- fixed ONNX importer
Vincent Rabaud [Fri, 28 Jan 2022 15:35:47 +0000 (16:35 +0100)]
Merge pull request #21527 from vrabaud:3.4_msan
* Fix wrong MSAN errors.
Because Fortran is called in Lapack, MSAN does not think the memory
has been written even though it is the case.
MSAN does no support well cross-language memory analysis.
* Make a dedicated check.
Alexander Alekhin [Fri, 28 Jan 2022 15:31:43 +0000 (15:31 +0000)]
Merge pull request #21521 from alalek:dnn_ignore_denormals
Alexander Alekhin [Thu, 27 Jan 2022 10:15:21 +0000 (10:15 +0000)]
Merge pull request #21525 from VadimLevin:dev/vlevin/pysubmodules-refcounter-fix
Vadim Levin [Thu, 27 Jan 2022 09:04:56 +0000 (12:04 +0300)]
fix: wrong reference counter after module initialization
Alexander Alekhin [Wed, 26 Jan 2022 17:51:52 +0000 (17:51 +0000)]
Merge pull request #21517 from alalek:cmake_dont_force_werror
Alexander Alekhin [Wed, 26 Jan 2022 17:37:51 +0000 (17:37 +0000)]
Merge pull request #21499 from sturkmen72:update_documentation
Alexander Alekhin [Wed, 26 Jan 2022 15:18:07 +0000 (15:18 +0000)]
Merge pull request #21490 from rogday:optional_outputs
Alexander Alekhin [Wed, 26 Jan 2022 05:00:47 +0000 (05:00 +0000)]
dnn: apply hint to ignore denormals processing
Alexander Alekhin [Wed, 26 Jan 2022 08:52:27 +0000 (08:52 +0000)]
Merge pull request #21506 from alalek:core_fp_denormals
Alexander Alekhin [Mon, 24 Jan 2022 05:39:45 +0000 (05:39 +0000)]
core(parallel): propagate FP denormals mode
Alexander Alekhin [Tue, 11 Jan 2022 03:06:43 +0000 (03:06 +0000)]
core: FP denormals hints support
Alexander Alekhin [Wed, 26 Jan 2022 04:34:51 +0000 (04:34 +0000)]
cmake: don't force -Werror=...
- improve compatibility with further compiler versions
- warnings are not errors by default
Alexander Alekhin [Tue, 25 Jan 2022 18:44:26 +0000 (18:44 +0000)]
Merge pull request #21514 from pkubaj:patch-1
Alexander Alekhin [Tue, 25 Jan 2022 13:42:49 +0000 (13:42 +0000)]
Merge pull request #21512 from vrabaud:3.4_ub_drawing
pkubaj [Tue, 25 Jan 2022 13:35:22 +0000 (13:35 +0000)]
Fix VSX detection on FreeBSD
hwcap should actually be long.
Vincent Rabaud [Tue, 25 Jan 2022 10:37:39 +0000 (11:37 +0100)]
Fix undefined behavior in line drawing.
Left shift of negative values is undefined.
Alexander Alekhin [Mon, 24 Jan 2022 14:04:14 +0000 (14:04 +0000)]
Merge pull request #21501 from sturkmen72:update_samples
Alexander Alekhin [Mon, 24 Jan 2022 12:35:54 +0000 (12:35 +0000)]
Merge pull request #21505 from georgthegreat:patch-1
Yuriy Chernyshov [Mon, 24 Jan 2022 08:23:34 +0000 (11:23 +0300)]
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.
Suleyman TURKMEN [Sat, 22 Jan 2022 08:27:01 +0000 (11:27 +0300)]
Update python samples
Alexander Alekhin [Sun, 23 Jan 2022 14:00:55 +0000 (14:00 +0000)]
Merge pull request #21497 from alalek:fix_build_gcc12_3.4
Suleyman TURKMEN [Fri, 14 Jan 2022 20:42:37 +0000 (23:42 +0300)]
Update imgcodecs.hpp
Alexander Alekhin [Sat, 22 Jan 2022 11:48:44 +0000 (11:48 +0000)]
build: fix GCC12 compilation
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
Smirnov Egor [Fri, 21 Jan 2022 09:31:46 +0000 (12:31 +0300)]
add optional outputs support and fix graph links
Alexander Alekhin [Thu, 20 Jan 2022 19:56:17 +0000 (19:56 +0000)]
Merge pull request #21349 from alalek:cmake_link_no_undefined
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
Alexander Alekhin [Thu, 20 Jan 2022 10:08:00 +0000 (10:08 +0000)]
Merge pull request #21478 from VadimLevin:dev/vlevin/pysubmodules-initialization-fix
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
Alexander Alekhin [Thu, 20 Jan 2022 02:27:57 +0000 (02:27 +0000)]
cmake(highgui): update handling of OpenGL libraries
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
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
Alexander Alekhin [Tue, 18 Jan 2022 11:06:00 +0000 (11:06 +0000)]
Merge pull request #21470 from alalek:winpack_dldt_fix_21469
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.
Alexander Alekhin [Tue, 18 Jan 2022 08:15:12 +0000 (08:15 +0000)]
build(winpack_dldt): repair build with MSVS 2019 (16.11.9)
Alexander Alekhin [Wed, 12 Jan 2022 03:46:13 +0000 (03:46 +0000)]
dnn: fix API - explicit ctors, const methods
Alexander Alekhin [Wed, 12 Jan 2022 13:11:45 +0000 (13:11 +0000)]
Merge pull request #21426 from alalek:dnn_simd_unaligned_weights_fix
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)
Alexander Alekhin [Tue, 11 Jan 2022 18:27:17 +0000 (18:27 +0000)]
Merge pull request #21421 from vrabaud:3.4size_t
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.
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
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
Alexander Alekhin [Mon, 10 Jan 2022 09:16:01 +0000 (12:16 +0300)]
videoio(msmf): use info message in SourceReaderCB destructor
Alexander Alekhin [Sun, 9 Jan 2022 21:01:28 +0000 (21:01 +0000)]
Merge pull request #21412 from crackwitz:kmeans-N-ge-K-message