Skip to content

Commit 5e986d0

Browse files
committed
Update OpenCV to 4.12.0
1 parent 18e652d commit 5e986d0

File tree

358 files changed

+1036
-178
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

358 files changed

+1036
-178
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ SerialPrograms/*.lib
5252
Resources/*
5353
Packages/
5454
SerialPrograms/CMakeLists.txt.user
55-
opencv_world4110d.dll
55+
opencv_world4120.dll
56+
opencv_world4120d.dll
5657

5758
# Python cache
5859
__pycache__

3rdParty/opencv-4.11.0/opencv2/calib3d.hpp renamed to 3rdParty/opencv-4.12.0/opencv2/calib3d.hpp

Lines changed: 268 additions & 33 deletions
Large diffs are not rendered by default.
File renamed without changes.
File renamed without changes.
Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -805,6 +805,11 @@ Possible usage with some positive example data:
805805
normalize(positiveData, normalizedData_minmax, 1.0, 0.0, NORM_MINMAX);
806806
@endcode
807807
808+
@note Due to rounding issues, min-max normalization can result in values outside provided boundaries.
809+
If exact range conformity is needed, following workarounds can be used:
810+
- use double floating point precision (dtype = CV_64F)
811+
- manually clip values (`cv::max(res, left_bound, res)`, `cv::min(res, right_bound, res)` or `np.clip`)
812+
808813
@param src input array.
809814
@param dst output array of the same size as src .
810815
@param alpha norm value to normalize to or the lower range boundary in case of the range
@@ -2004,8 +2009,8 @@ The function solveCubic finds the real roots of a cubic equation:
20042009
20052010
The roots are stored in the roots array.
20062011
@param coeffs equation coefficients, an array of 3 or 4 elements.
2007-
@param roots output array of real roots that has 1 or 3 elements.
2008-
@return number of real roots. It can be 0, 1 or 2.
2012+
@param roots output array of real roots that has 0, 1, 2 or 3 elements.
2013+
@return number of real roots. It can be -1 (all real numbers), 0, 1, 2 or 3.
20092014
*/
20102015
CV_EXPORTS_W int solveCubic(InputArray coeffs, OutputArray roots);
20112016

File renamed without changes.
File renamed without changes.

3rdParty/opencv-4.11.0/opencv2/core/base.hpp renamed to 3rdParty/opencv-4.12.0/opencv2/core/base.hpp

Lines changed: 67 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -263,8 +263,72 @@ enum DftFlags {
263263
DCT_ROWS = DFT_ROWS
264264
};
265265

266-
//! Various border types, image boundaries are denoted with `|`
267-
//! @see borderInterpolate, copyMakeBorder
266+
/*! Various border types, image boundaries are denoted with the `|` character in the table below, when describing each method.
267+
268+
The following examples show the result of the @ref copyMakeBorder call according to different methods.
269+
Input image is `6x4` (width x height) size and the @ref copyMakeBorder function is used with a border size of 2 pixels
270+
in each direction, giving a resulting image of `10x8` resolution.
271+
272+
@code
273+
Input image:
274+
[[ 0 1 2 3 4 5]
275+
[ 6 7 8 9 10 11]
276+
[12 13 14 15 16 17]
277+
[18 19 20 21 22 23]]
278+
279+
Border type: BORDER_CONSTANT (a constant value of 255 is used)
280+
[[255 255 255 255 255 255 255 255 255 255]
281+
[255 255 255 255 255 255 255 255 255 255]
282+
[255 255 0 1 2 3 4 5 255 255]
283+
[255 255 6 7 8 9 10 11 255 255]
284+
[255 255 12 13 14 15 16 17 255 255]
285+
[255 255 18 19 20 21 22 23 255 255]
286+
[255 255 255 255 255 255 255 255 255 255]
287+
[255 255 255 255 255 255 255 255 255 255]]
288+
289+
Border type: BORDER_REPLICATE
290+
[[ 0 0 0 1 2 3 4 5 5 5]
291+
[ 0 0 0 1 2 3 4 5 5 5]
292+
[ 0 0 0 1 2 3 4 5 5 5]
293+
[ 6 6 6 7 8 9 10 11 11 11]
294+
[12 12 12 13 14 15 16 17 17 17]
295+
[18 18 18 19 20 21 22 23 23 23]
296+
[18 18 18 19 20 21 22 23 23 23]
297+
[18 18 18 19 20 21 22 23 23 23]]
298+
299+
Border type: BORDER_REFLECT
300+
[[ 7 6 6 7 8 9 10 11 11 10]
301+
[ 1 0 0 1 2 3 4 5 5 4]
302+
[ 1 0 0 1 2 3 4 5 5 4]
303+
[ 7 6 6 7 8 9 10 11 11 10]
304+
[13 12 12 13 14 15 16 17 17 16]
305+
[19 18 18 19 20 21 22 23 23 22]
306+
[19 18 18 19 20 21 22 23 23 22]
307+
[13 12 12 13 14 15 16 17 17 16]]
308+
309+
Border type: BORDER_WRAP
310+
[[16 17 12 13 14 15 16 17 12 13]
311+
[22 23 18 19 20 21 22 23 18 19]
312+
[ 4 5 0 1 2 3 4 5 0 1]
313+
[10 11 6 7 8 9 10 11 6 7]
314+
[16 17 12 13 14 15 16 17 12 13]
315+
[22 23 18 19 20 21 22 23 18 19]
316+
[ 4 5 0 1 2 3 4 5 0 1]
317+
[10 11 6 7 8 9 10 11 6 7]]
318+
319+
Border type: BORDER_REFLECT_101
320+
[[14 13 12 13 14 15 16 17 16 15]
321+
[ 8 7 6 7 8 9 10 11 10 9]
322+
[ 2 1 0 1 2 3 4 5 4 3]
323+
[ 8 7 6 7 8 9 10 11 10 9]
324+
[14 13 12 13 14 15 16 17 16 15]
325+
[20 19 18 19 20 21 22 23 22 21]
326+
[14 13 12 13 14 15 16 17 16 15]
327+
[ 8 7 6 7 8 9 10 11 10 9]]
328+
@endcode
329+
330+
@see borderInterpolate, copyMakeBorder
331+
*/
268332
enum BorderTypes {
269333
BORDER_CONSTANT = 0, //!< `iiiiii|abcdefgh|iiiiiii` with some specified `i`
270334
BORDER_REPLICATE = 1, //!< `aaaaaa|abcdefgh|hhhhhhh`
@@ -386,7 +450,7 @@ It does not throw exception, but terminates the application.
386450

387451
//! @endcond
388452

389-
#if defined _DEBUG || defined CV_STATIC_ANALYSIS
453+
#if !defined(NDEBUG) || defined(CV_STATIC_ANALYSIS)
390454
# define CV_DbgAssert(expr) CV_Assert(expr)
391455
#else
392456
/** replaced with CV_Assert(expr) in Debug configuration */

3rdParty/opencv-4.11.0/opencv2/core/bindings_utils.hpp renamed to 3rdParty/opencv-4.12.0/opencv2/core/bindings_utils.hpp

File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)