Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv_contrib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv_contrib
Commits
ddf2610b
Commit
ddf2610b
authored
Aug 18, 2017
by
Cristian Duguet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
making minRepDistance not quadratically dependent on the image pizel size anymore
parent
83cfc88a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
charuco.cpp
modules/aruco/src/charuco.cpp
+2
-2
No files found.
modules/aruco/src/charuco.cpp
View file @
ddf2610b
...
...
@@ -738,7 +738,7 @@ void detectCharucoDiamond(InputArray _image, InputArrayOfArrays _markerCorners,
CV_Assert
(
_markerIds
.
total
()
>
0
&&
_markerIds
.
total
()
==
_markerCorners
.
total
());
const
float
minRepDistanceRate
=
0.12
f
;
const
float
minRepDistanceRate
=
1.302455
f
;
// create Charuco board layout for diamond (3x3 layout)
Ptr
<
Dictionary
>
dict
=
getPredefinedDictionary
(
PREDEFINED_DICTIONARY_NAME
(
0
));
...
...
@@ -771,7 +771,7 @@ void detectCharucoDiamond(InputArray _image, InputArrayOfArrays _markerCorners,
perimeterSq
+=
edge
.
x
*
edge
.
x
+
edge
.
y
*
edge
.
y
;
}
// maximum reprojection error relative to perimeter
float
minRepDistance
=
perimeterSq
*
minRepDistanceRate
*
minRepDistanceRate
;
float
minRepDistance
=
sqrt
(
perimeterSq
)
*
minRepDistanceRate
;
int
currentId
=
_markerIds
.
getMat
().
at
<
int
>
(
i
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment