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
8af2d0ac
Commit
8af2d0ac
authored
Nov 30, 2010
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed recent failures in shape-convhull & shape-minarearect
parent
b1722352
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
14 deletions
+2
-14
contours.cpp
modules/imgproc/src/contours.cpp
+1
-1
geometry.cpp
modules/imgproc/src/geometry.cpp
+1
-13
No files found.
modules/imgproc/src/contours.cpp
View file @
8af2d0ac
...
...
@@ -1728,7 +1728,7 @@ void cv::convexHull( const Mat& points,
void
cv
::
convexHull
(
const
Mat
&
points
,
vector
<
Point2f
>&
hull
,
bool
clockwise
)
{
int
nelems
=
points
.
checkVector
(
2
,
CV_32
S
);
int
nelems
=
points
.
checkVector
(
2
,
CV_32
F
);
CV_Assert
(
nelems
>=
0
);
hull
.
resize
(
nelems
);
CvMat
_points
=
Mat
(
points
),
_hull
=
Mat
(
hull
);
...
...
modules/imgproc/src/geometry.cpp
View file @
8af2d0ac
...
...
@@ -86,21 +86,9 @@ cvMaxRect( const CvRect* rect1, const CvRect* rect2 )
CV_IMPL
void
cvBoxPoints
(
CvBox2D
box
,
CvPoint2D32f
pt
[
4
]
)
{
double
angle
=
box
.
angle
*
CV_PI
/
180.
;
float
a
=
(
float
)
cos
(
angle
)
*
0.5
f
;
float
b
=
(
float
)
sin
(
angle
)
*
0.5
f
;
if
(
!
pt
)
CV_Error
(
CV_StsNullPtr
,
"NULL vertex array pointer"
);
pt
[
0
].
x
=
box
.
center
.
x
-
a
*
box
.
size
.
height
-
b
*
box
.
size
.
width
;
pt
[
0
].
y
=
box
.
center
.
y
+
b
*
box
.
size
.
height
-
a
*
box
.
size
.
width
;
pt
[
1
].
x
=
box
.
center
.
x
+
a
*
box
.
size
.
height
-
b
*
box
.
size
.
width
;
pt
[
1
].
y
=
box
.
center
.
y
-
b
*
box
.
size
.
height
-
a
*
box
.
size
.
width
;
pt
[
2
].
x
=
2
*
box
.
center
.
x
-
pt
[
0
].
x
;
pt
[
2
].
y
=
2
*
box
.
center
.
y
-
pt
[
0
].
y
;
pt
[
3
].
x
=
2
*
box
.
center
.
x
-
pt
[
1
].
x
;
pt
[
3
].
y
=
2
*
box
.
center
.
y
-
pt
[
1
].
y
;
cv
::
RotatedRect
(
box
).
points
((
cv
::
Point2f
*
)
pt
);
}
...
...
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