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
43e4946c
Commit
43e4946c
authored
Jul 01, 2014
by
Ilya Lavrenov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix for fisheye
parent
070be56e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
15 deletions
+2
-15
test_fisheye.cpp
modules/calib3d/test/test_fisheye.cpp
+2
-15
No files found.
modules/calib3d/test/test_fisheye.cpp
View file @
43e4946c
...
...
@@ -60,8 +60,6 @@ protected:
protected
:
std
::
string
combine
(
const
std
::
string
&
_item1
,
const
std
::
string
&
_item2
);
std
::
string
combine_format
(
const
std
::
string
&
item1
,
const
std
::
string
&
item2
,
...);
cv
::
Mat
mergeRectification
(
const
cv
::
Mat
&
l
,
const
cv
::
Mat
&
r
);
};
...
...
@@ -427,10 +425,10 @@ TEST_F(fisheyeTest, rectify)
cv
::
Mat
rectification
=
mergeRectification
(
lundist
,
rundist
);
cv
::
Mat
correct
=
cv
::
imread
(
combine
_format
(
datasets_repository_path
,
"rectification_AB_%03d.png"
,
i
));
cv
::
Mat
correct
=
cv
::
imread
(
combine
(
datasets_repository_path
,
cv
::
format
(
"rectification_AB_%03d.png"
,
i
)
));
if
(
correct
.
empty
())
cv
::
imwrite
(
combine
_format
(
datasets_repository_path
,
"rectification_AB_%03d.png"
,
i
),
rectification
);
cv
::
imwrite
(
combine
(
datasets_repository_path
,
cv
::
format
(
"rectification_AB_%03d.png"
,
i
)
),
rectification
);
else
EXPECT_MAT_NEAR
(
correct
,
rectification
,
1e-10
);
}
...
...
@@ -599,17 +597,6 @@ std::string fisheyeTest::combine(const std::string& _item1, const std::string& _
return
item1
+
(
last
!=
'/'
?
"/"
:
""
)
+
item2
;
}
std
::
string
fisheyeTest
::
combine_format
(
const
std
::
string
&
item1
,
const
std
::
string
&
item2
,
...)
{
std
::
string
fmt
=
combine
(
item1
,
item2
);
char
buffer
[
1
<<
16
];
va_list
args
;
va_start
(
args
,
item2
);
vsprintf
(
buffer
,
fmt
.
c_str
(),
args
);
va_end
(
args
);
return
std
::
string
(
buffer
);
}
cv
::
Mat
fisheyeTest
::
mergeRectification
(
const
cv
::
Mat
&
l
,
const
cv
::
Mat
&
r
)
{
CV_Assert
(
l
.
type
()
==
r
.
type
()
&&
l
.
size
()
==
r
.
size
());
...
...
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