Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
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
Commits
7e5581cd
Commit
7e5581cd
authored
Apr 13, 2018
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #11286 from sturkmen72:update_rectangle
parents
7ae83df8
8b6a6d45
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
imgproc.hpp
modules/imgproc/include/opencv2/imgproc.hpp
+2
-2
drawing.cpp
modules/imgproc/src/drawing.cpp
+2
-3
No files found.
modules/imgproc/include/opencv2/imgproc.hpp
View file @
7e5581cd
...
...
@@ -4400,7 +4400,7 @@ CV_EXPORTS_W void rectangle(InputOutputArray img, Point pt1, Point pt2,
use `rec` parameter as alternative specification of the drawn rectangle: `r.tl() and
r.br()-Point(1,1)` are opposite corners
*/
CV_EXPORTS
void
rectangle
(
CV_IN_OUT
Mat
&
img
,
Rect
rec
,
CV_EXPORTS
_W
void
rectangle
(
InputOutputArray
img
,
Rect
rec
,
const
Scalar
&
color
,
int
thickness
=
1
,
int
lineType
=
LINE_8
,
int
shift
=
0
);
...
...
@@ -4494,7 +4494,7 @@ marker types are supported, see #MarkerTypes for more information.
@param line_type Type of the line, See #LineTypes
@param markerSize The length of the marker axis [default = 20 pixels]
*/
CV_EXPORTS_W
void
drawMarker
(
CV_IN_OUT
Mat
&
img
,
Point
position
,
const
Scalar
&
color
,
CV_EXPORTS_W
void
drawMarker
(
InputOutputArray
img
,
Point
position
,
const
Scalar
&
color
,
int
markerType
=
MARKER_CROSS
,
int
markerSize
=
20
,
int
thickness
=
1
,
int
line_type
=
8
);
...
...
modules/imgproc/src/drawing.cpp
View file @
7e5581cd
...
...
@@ -1737,7 +1737,7 @@ PolyLine( Mat& img, const Point2l* v, int count, bool is_closed,
/* ADDING A SET OF PREDEFINED MARKERS WHICH COULD BE USED TO HIGHLIGHT POSITIONS IN AN IMAGE */
/* ----------------------------------------------------------------------------------------- */
void
drawMarker
(
Mat
&
img
,
Point
position
,
const
Scalar
&
color
,
int
markerType
,
int
markerSize
,
int
thickness
,
int
line_type
)
void
drawMarker
(
InputOutputArray
img
,
Point
position
,
const
Scalar
&
color
,
int
markerType
,
int
markerSize
,
int
thickness
,
int
line_type
)
{
switch
(
markerType
)
{
...
...
@@ -1873,13 +1873,12 @@ void rectangle( InputOutputArray _img, Point pt1, Point pt2,
}
void
rectangle
(
Mat
&
img
,
Rect
rec
,
void
rectangle
(
InputOutputArray
img
,
Rect
rec
,
const
Scalar
&
color
,
int
thickness
,
int
lineType
,
int
shift
)
{
CV_INSTRUMENT_REGION
()
CV_Assert
(
0
<=
shift
&&
shift
<=
XY_SHIFT
);
if
(
rec
.
area
()
>
0
)
rectangle
(
img
,
rec
.
tl
(),
rec
.
br
()
-
Point
(
1
<<
shift
,
1
<<
shift
),
color
,
thickness
,
lineType
,
shift
);
...
...
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