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
e5bc40e6
Commit
e5bc40e6
authored
Aug 29, 2014
by
Daniel Angelov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Swapped CV_RGB macro to Scalar.
parent
93361768
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
ccalib.cpp
modules/ccalib/src/ccalib.cpp
+4
-5
No files found.
modules/ccalib/src/ccalib.cpp
View file @
e5bc40e6
...
@@ -48,7 +48,6 @@
...
@@ -48,7 +48,6 @@
#include <opencv2/core.hpp>
#include <opencv2/core.hpp>
#include <opencv2/core/types_c.h> // CV_TERM
#include <opencv2/core/types_c.h> // CV_TERM
#include <opencv2/core/core_c.h> // CV_RGB
#include <opencv2/imgproc.hpp>
#include <opencv2/imgproc.hpp>
#include <opencv2/calib3d.hpp>
#include <opencv2/calib3d.hpp>
#include <opencv2/features2d.hpp>
#include <opencv2/features2d.hpp>
...
@@ -122,7 +121,7 @@ bool CustomPattern::init(Mat& image, const float pixel_size, OutputArray output)
...
@@ -122,7 +121,7 @@ bool CustomPattern::init(Mat& image, const float pixel_size, OutputArray output)
if
(
output
.
needed
())
if
(
output
.
needed
())
{
{
Mat
out
;
Mat
out
;
drawKeypoints
(
img_roi
,
keypoints
,
out
,
CV_RGB
(
255
,
0
,
0
));
drawKeypoints
(
img_roi
,
keypoints
,
out
,
Scalar
(
0
,
0
,
255
));
out
.
copyTo
(
output
);
out
.
copyTo
(
output
);
}
}
...
@@ -480,9 +479,9 @@ void CustomPattern::drawOrientation(InputOutputArray image, InputArray tvec, Inp
...
@@ -480,9 +479,9 @@ void CustomPattern::drawOrientation(InputOutputArray image, InputArray tvec, Inp
projectPoints
(
axis
,
rvec
,
tvec
,
cameraMatrix
,
distCoeffs
,
proj_axis
);
projectPoints
(
axis
,
rvec
,
tvec
,
cameraMatrix
,
distCoeffs
,
proj_axis
);
Mat
img
=
image
.
getMat
();
Mat
img
=
image
.
getMat
();
line
(
img
,
proj_axis
[
0
],
proj_axis
[
1
],
CV_RGB
(
255
,
0
,
0
),
axis_width
);
line
(
img
,
proj_axis
[
0
],
proj_axis
[
1
],
Scalar
(
0
,
0
,
255
),
axis_width
);
// red
line
(
img
,
proj_axis
[
0
],
proj_axis
[
2
],
CV_RGB
(
0
,
255
,
0
),
axis_width
);
line
(
img
,
proj_axis
[
0
],
proj_axis
[
2
],
Scalar
(
0
,
255
,
0
),
axis_width
);
// green
line
(
img
,
proj_axis
[
0
],
proj_axis
[
3
],
CV_RGB
(
0
,
0
,
255
),
axis_width
);
line
(
img
,
proj_axis
[
0
],
proj_axis
[
3
],
Scalar
(
255
,
0
,
0
),
axis_width
);
// blue
img
.
copyTo
(
image
);
img
.
copyTo
(
image
);
}
}
...
...
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