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
fb5cd42c
Commit
fb5cd42c
authored
Oct 23, 2017
by
Rostislav Vasilikhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
enabled tests for fitEllipse since the issue is fixed
parent
bf418ba3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
test_fitellipse.cpp
modules/imgproc/test/test_fitellipse.cpp
+3
-3
No files found.
modules/imgproc/test/test_fitellipse.cpp
View file @
fb5cd42c
...
...
@@ -24,7 +24,7 @@ static bool check_pt_in_ellipse(const Point2f& pt, const RotatedRect& el) {
// Return true if mass center of fitted points lies inside ellipse
static
bool
fit_and_check_ellipse
(
const
vector
<
Point2f
>&
pts
)
{
RotatedRect
ellipse
=
fitEllipse
(
pts
);
RotatedRect
ellipse
=
fitEllipse
Direct
(
pts
);
// fitEllipseAMS() also works fine
Point2f
mass_center
;
for
(
size_t
i
=
0
;
i
<
pts
.
size
();
i
++
)
{
...
...
@@ -35,7 +35,7 @@ static bool fit_and_check_ellipse(const vector<Point2f>& pts) {
return
check_pt_in_ellipse
(
mass_center
,
ellipse
);
}
TEST
(
Imgproc_FitEllipse_Issue_4515
,
DISABLED_
accuracy
)
{
TEST
(
Imgproc_FitEllipse_Issue_4515
,
accuracy
)
{
vector
<
Point2f
>
pts
;
pts
.
push_back
(
Point2f
(
327
,
317
));
pts
.
push_back
(
Point2f
(
328
,
316
));
...
...
@@ -53,7 +53,7 @@ TEST(Imgproc_FitEllipse_Issue_4515, DISABLED_accuracy) {
EXPECT_TRUE
(
fit_and_check_ellipse
(
pts
));
}
TEST
(
Imgproc_FitEllipse_Issue_6544
,
DISABLED_
accuracy
)
{
TEST
(
Imgproc_FitEllipse_Issue_6544
,
accuracy
)
{
vector
<
Point2f
>
pts
;
pts
.
push_back
(
Point2f
(
924.784
f
,
764.160
f
));
pts
.
push_back
(
Point2f
(
928.388
f
,
615.903
f
));
...
...
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