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
e0b7389d
Commit
e0b7389d
authored
Dec 08, 2015
by
songyuncen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove compile warnings in shapedescr.cpp
parent
a69eeb6b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
shapedescr.cpp
modules/imgproc/src/shapedescr.cpp
+3
-5
No files found.
modules/imgproc/src/shapedescr.cpp
View file @
e0b7389d
...
...
@@ -164,8 +164,8 @@ void findSecondPoint(const PT *pts, int i, Point2f ¢er, float &radius)
for
(
int
j
=
1
;
j
<
i
;
++
j
)
{
float
dx
=
center
.
x
-
(
float
)
pts
[
j
].
x
;
float
dy
=
center
.
y
-
(
float
)
pts
[
j
].
y
;
dx
=
center
.
x
-
(
float
)
pts
[
j
].
x
;
dy
=
center
.
y
-
(
float
)
pts
[
j
].
y
;
if
(
norm
(
Point2f
(
dx
,
dy
))
<
radius
)
{
continue
;
...
...
@@ -224,13 +224,11 @@ void cv::minEnclosingCircle( InputArray _points, Point2f& _center, float& _radiu
const
Point
*
ptsi
=
points
.
ptr
<
Point
>
();
const
Point2f
*
ptsf
=
points
.
ptr
<
Point2f
>
();
Point2f
pt
=
is_float
?
ptsf
[
0
]
:
Point2f
((
float
)
ptsi
[
0
].
x
,(
float
)
ptsi
[
0
].
y
);
// point count <= 3
if
(
count
<=
3
)
{
Point2f
ptsf3
[
3
];
for
(
size_
t
i
=
0
;
i
<
count
;
++
i
)
for
(
in
t
i
=
0
;
i
<
count
;
++
i
)
{
ptsf3
[
i
]
=
(
is_float
)
?
ptsf
[
i
]
:
Point2f
((
float
)
ptsi
[
i
].
x
,
(
float
)
ptsi
[
i
].
y
);
}
...
...
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