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
280af826
Commit
280af826
authored
Feb 19, 2016
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #555 from SSteve:master
parents
7b2c6f83
b6573a7b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
7 deletions
+6
-7
aruco.hpp
modules/aruco/include/opencv2/aruco.hpp
+4
-4
aruco.cpp
modules/aruco/src/aruco.cpp
+2
-3
No files found.
modules/aruco/include/opencv2/aruco.hpp
View file @
280af826
...
...
@@ -268,16 +268,16 @@ class CV_EXPORTS_W GridBoard : public Board {
* @param markersX number of markers in X direction
* @param markersY number of markers in Y direction
* @param markerLength marker side length (normally in meters)
* @param markerSeparation separation between two markers (same unit
than markerLenght
)
* @param dictionary dictionary of markers indicating the type of markers
.
*
The first markersX*markersY markers in the dictionary are use
d.
* @param markerSeparation separation between two markers (same unit
as markerLength
)
* @param dictionary dictionary of markers indicating the type of markers
*
@param firstMarker id of first marker in dictionary to use on boar
d.
* @return the output GridBoard object
*
* This functions creates a GridBoard object given the number of markers in each direction and
* the marker size and marker separation.
*/
CV_WRAP
static
Ptr
<
GridBoard
>
create
(
int
markersX
,
int
markersY
,
float
markerLength
,
float
markerSeparation
,
Ptr
<
Dictionary
>
&
dictionary
);
float
markerSeparation
,
Ptr
<
Dictionary
>
&
dictionary
,
int
firstMarker
=
0
);
/**
*
...
...
modules/aruco/src/aruco.cpp
View file @
280af826
...
...
@@ -1329,11 +1329,10 @@ void GridBoard::draw(Size outSize, OutputArray _img, int marginSize, int borderB
}
/**
*/
Ptr
<
GridBoard
>
GridBoard
::
create
(
int
markersX
,
int
markersY
,
float
markerLength
,
float
markerSeparation
,
Ptr
<
Dictionary
>
&
dictionary
)
{
Ptr
<
Dictionary
>
&
dictionary
,
int
firstMarker
)
{
CV_Assert
(
markersX
>
0
&&
markersY
>
0
&&
markerLength
>
0
&&
markerSeparation
>
0
);
...
...
@@ -1351,7 +1350,7 @@ Ptr<GridBoard> GridBoard::create(int markersX, int markersY, float markerLength,
// fill ids with first identifiers
for
(
unsigned
int
i
=
0
;
i
<
totalMarkers
;
i
++
)
{
res
->
ids
[
i
]
=
i
;
res
->
ids
[
i
]
=
i
+
firstMarker
;
}
// calculate Board objPoints
...
...
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