Alexander Alekhin
5ba9a089e1
core(persistence): avoid NULL pointer dereference
3 years ago
cudawarped
ecfbaa267d
Merge pull request #21374 from cudawarped:fix_cuda_event_flags
...
Allow cv::cuda::Event to accept combinations of flags
3 years ago
Vincent Rabaud
4db3a388dd
Fix a potential UBSAN error.
...
We only use that value as uint64_t below anyway.
3 years ago
Christoph Rackwitz
f3e0479a8f
kmeans: assertion "There can't be more clusters than elements"
3 years ago
Vincent Rabaud
bf5e09d5ab
Remove unnecessary use of ref-capture in code example.
3 years ago
Suleyman TURKMEN
0e6a2c0491
fix legacy constants
3 years ago
Joe Howse
c2209ad5e4
Doc warnings about experimental UMatUsageFlags
3 years ago
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)
3 years ago
Rostislav Vasilikhin
9d6f388809
Merge pull request #21018 from savuor:levmarqfromscratch
...
New LevMarq implementation
* Hash TSDF fix: apply volume pose when fetching pose
* DualQuat minor fix
* Pose Graph: getEdgePose(), getEdgeInfo()
* debugging code for pose graph
* add edge to submap
* pose averaging: DualQuats instead of matrix averaging
* overlapping ratio: rise it up; minor comment
* remove `Submap::addEdgeToSubmap`
* test_pose_graph: minor
* SparseBlockMatrix: support 1xN as well as Nx1 for residual vector
* small changes to old LMSolver
* new LevMarq impl
* Pose Graph rewritten to use new impl
* solvePnP(), findHomography() and findExtrinsicCameraParams2() use new impl
* estimateAffine...2D() use new impl
* calibration and stereo calibration use new impl
* BundleAdjusterBase::estimate() uses new impl
* new LevMarq interface
* PoseGraph: changing opt interface
* findExtrinsicCameraParams2(): opt interface updated
* HomographyRefine: opt interface updated
* solvePnPRefine opt interface fixed
* Affine2DRefine opt interface fixed
* BundleAdjuster::estimate() opt interface fixed
* calibration: opt interface fixed + code refactored a little
* minor warning fixes
* geodesic acceleration, Impl -> Backend rename
* calcFunc() always uses probe vars
* solveDecomposed, fixing negation
* fixing geodesic acceleration + minors
* PoseGraph exposes its optimizer now + its tests updated to check better convegence
* Rosenbrock test added for LevMarq
* LevMarq params upgraded
* Rosenbrock can do better
* fixing stereo calibration
* old implementation removed (as well as debug code)
* more debugging code removed
* fix warnings
* fixing warnings
* fixing Eigen dependency
* trying to fix Eigen deps
* debugging code for submat is now temporary
* trying to fix Eigen dependency
* relax sanity check for solvePnP
* relaxing sanity check even more
* trying to fix Eigen dependency
* warning fix
* Quat<T>: fixing warnings
* more warning fixes
* fixed warning
* fixing *KinFu OCL tests
* algo params -> struct Settings
* Backend moved to details
* BaseLevMarq -> LevMarqBase
* detail/pose_graph.hpp -> detail/optimizer.hpp
* fixing include stuff for details/optimizer.hpp
* doc fix
* LevMarqBase rework: Settings, pImpl, Backend
* Impl::settings and ::backend fix
* HashTSDFGPU fix
* fixing compilation
* warning fix for OdometryFrameImplTMat
* docs fix + compile warnings
* remake: new class LevMarq with pImpl and enums, LevMarqBase => detail, no Backend class, Settings() => .cpp, Settings==() removed, Settings.set...() inlines
* fixing warnings & whitespace
3 years ago
Alexander Alekhin
dad26339a9
release: OpenCV 4.5.5
3 years ago
Rostislav Vasilikhin
3048188b5b
Merge pull request #21319 from savuor:backport_levmarqfromscratch
...
Warning fixes for quaternion headers
* warning fixes for quaternion headers
* a/T(x) => a * T(1/x)
3 years ago
Alexander Alekhin
631126c77a
release: OpenCV 3.4.17
3 years ago
Alexander Alekhin
cdfa8a668b
python: use '((x,y), (w,h), angle)' in std::vector<RotatedRect>
3 years ago
Alexander Alekhin
c78a8dfd2d
fix 4.x links
3 years ago
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
3 years ago
Alexander Alekhin
c80b270678
cmake: force lowercase plugins internal names
3 years ago
Alexander Alekhin
07dca8cc03
pre: OpenCV 4.5.5 (version++)
3 years ago
Alexander Alekhin
60c093f086
pre: OpenCV 3.4.17 (version++)
3 years ago
rogday
692059e899
initialize members
3 years ago
Vincent Rabaud
6b4ea68bc7
Solve Rect overflow issues.
...
Fow now, it is possible to define valid rectangle for which some
functions overflow (e.g. br(), ares() ...).
This patch fixes the intersection operator so that it works with
any rectangle.
3 years ago
Alexander Alekhin
65392d5e6b
cmake: fix OPENGL_LIBRARIES handling
3 years ago
Baiyun-u-smartAI
b167115b5b
fixed an error ------Context::p is protected whinin this context
3 years ago
HAN Liutong
4935b14539
Merge pull request #21012 from hanliutong:rvv_clang
...
Update RVV backend for using Clang.
* Update cmake file of clang.
* Modify the RVV optimization on DNN to adapt to clang.
* Modify intrin_rvv: Disable some existing types.
* Modify intrin_rvv: Reinterpret instead of load&cast.
* Modify intrin_rvv: Update load&store without cast.
* Modify intrin_rvv: Rename vfredsum to fredosum.
* Modify intrin_rvv: Rewrite Check all/any by using vpopc.
* Modify intrin_rvv: Use reinterpret instead of c-style casting.
* Remove all macros which is not used in v_reinterpret
* Rename vpopc to vcpop according to spec.
3 years ago
rogday
f044037ec5
Merge pull request #20733 from rogday:argmaxnd
...
Implement ArgMax and ArgMin
* add reduceArgMax and reduceArgMin
* fix review comments
* address review concerns
3 years ago
Suleyman TURKMEN
4f0fe1de96
clean up c-api
3 years ago
yuki takehara
a6277370ca
Merge pull request #21107 from take1014:remove_assert_21038
...
resolves #21038
* remove C assert
* revert C header
* fix several points in review
* fix test_ds.cpp
3 years ago
Alexander Alekhin
61f1ee2d2d
core(logger): dump timestamp information with message
3 years ago
Alexander Alekhin
d228c5459d
core: avoid using of 'check' identifier
3 years ago
Piotr Kubaj
68e425f869
Add support for runtime CPU feature check on POWER on FreeBSD.
...
1. Code uses PPC_FEATURE_HAS_VSX, but it's not checked similarly to
PPC_FEATURE2_ARCH_3_00 and PPC_FEATURE2_ARCH_3_00 for availability. FreeBSD has
those macros in machine/cpu.h, but I went with the way chosen for
PPC_FEATURE2_ARCH_3_00 and PPC_FEATURE2_ARCH_3_00. Other than that, FreeBSD also
has sys/auxv.h and that's where elf_aux_info() is defined.
2. getauxval() is actually Linux-only, but code checked for __unix__. It won't
work on all UNIX, so change it back to __linux__. Add another code variant
strictly for FreeBSD.
3. Update comment. This commit adds code for FreeBSD, but recently there
appeared support for powerpc64 in OpenBSD.
3 years ago
Vincent Rabaud
ffd010767f
Only use fma functions when CV_FMA3 is set.
...
In practice, processors offering AVX2/AVX512 also FMA, that is why it got unnoticed.
3 years ago
Alexander Alekhin
40c748a2ae
python: properly handle step for multichannel case
3 years ago
Julie Bareeva
69d0bc8fd5
Added overflow handling during conversion from float to int for LinearFilter
3 years ago
Alexander Alekhin
a49cda6523
core: eliminate Winvalid-noreturn in base.hpp
3 years ago
Alexander Alekhin
d612c72405
build: fix MSVC-Clang warnings about unused parameters in stubs
3 years ago
Alexander Alekhin
75e2ba5af3
core(simd): fix compilation with MSVC-Clang
3 years ago
Alexander Alekhin
1726bb6c0d
build(icc): fix nodiscard attribute handling
3 years ago
Alexander Alekhin
bac1c6d12f
hotfix: repair Clang ABI
3 years ago
Alexander Alekhin
fce4a19d0d
5.x: cleanup compatibility code (2021-10)
3 years ago
Zhuo Zhang
7da51787b9
Merge pull request #20900 from zchrissirhcz:3.4-hwfeatures-support-qnx
...
* fix: correctly check neon flags for QNX platform
* refactor: change __QNXNTO__ to __QNX__
3 years ago
Alexander Alekhin
b5fcb06a76
core(SIMD): update int64 SSE constructor
3 years ago
Sergiu Deitsch
f8f9f3c438
fixed AVX compile error
...
Some older compilers do not allow to pass a `const int` as an immediate. Use an unnamed enum instead.
3 years ago
Alexander Alekhin
982503e9a8
core: ensure 'int' result from CV_POPCNT_U64(x)
3 years ago
Alexander Alekhin
8c7dc1f6b7
core: OPENCV_ABI_COMPATIBILITY=500
3 years ago
Alexander Alekhin
4223495e6c
release: OpenCV 4.5.4
3 years ago
Alexander Alekhin
39ee5c5a46
plugins: reverse candidates order to fetch higher versions first
3 years ago
Alexander Alekhin
b1cf550123
release: OpenCV 3.4.16
3 years ago
Alexander Alekhin
4985311d46
core(tls): avoid destruction of TlsAbstraction singleton
3 years ago
Alexander Alekhin
e75387f029
core: fix compilation of copy ctors/assignment operators with GCC 4.x
3 years ago
Alexander Alekhin
27545dcc86
core: add __NetBSD__ build fix in parallel.cpp
3 years ago
Alexander Alekhin
eab2b9dc09
core: ensure is_trivially_copyable for simple types
3 years ago