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
d2665b65
Commit
d2665b65
authored
Aug 06, 2014
by
edgarriba
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed warnings
parent
e14f91dd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
CsvReader.cpp
..._code/calib3d/real_time_pose_estimation/src/CsvReader.cpp
+1
-1
CsvWriter.cpp
..._code/calib3d/real_time_pose_estimation/src/CsvWriter.cpp
+2
-3
No files found.
samples/cpp/tutorial_code/calib3d/real_time_pose_estimation/src/CsvReader.cpp
View file @
d2665b65
...
...
@@ -11,7 +11,7 @@ CsvReader::CsvReader(const std::string &path, const char &separator){
void
CsvReader
::
readPLY
(
std
::
vector
<
cv
::
Point3f
>
&
list_vertex
,
std
::
vector
<
std
::
vector
<
int
>
>
&
list_triangles
)
{
std
::
string
line
,
tmp_str
,
n
;
int
num_vertex
,
num_triangles
;
int
num_vertex
=
0
,
num_triangles
=
0
;
int
count
=
0
;
bool
end_header
=
false
;
bool
end_vertex
=
false
;
...
...
samples/cpp/tutorial_code/calib3d/real_time_pose_estimation/src/CsvWriter.cpp
View file @
d2665b65
...
...
@@ -29,7 +29,7 @@ void CsvWriter::writeXYZ(const std::vector<cv::Point3f> &list_points3d)
void
CsvWriter
::
writeUVXYZ
(
const
std
::
vector
<
cv
::
Point3f
>
&
list_points3d
,
const
std
::
vector
<
cv
::
Point2f
>
&
list_points2d
,
const
cv
::
Mat
&
descriptors
)
{
std
::
string
u
,
v
,
x
,
y
,
z
,
descriptor_str
;
for
(
int
i
=
0
;
i
<
list_points3d
.
size
();
++
i
)
for
(
unsigned
int
i
=
0
;
i
<
list_points3d
.
size
();
++
i
)
{
u
=
FloatToString
(
list_points2d
[
i
].
x
);
v
=
FloatToString
(
list_points2d
[
i
].
y
);
...
...
@@ -41,8 +41,7 @@ void CsvWriter::writeUVXYZ(const std::vector<cv::Point3f> &list_points3d, const
for
(
int
j
=
0
;
j
<
32
;
++
j
)
{
std
::
cout
<<
descriptors
.
at
<
float
>
(
i
,
j
)
<<
std
::
endl
;
descriptor_str
=
FloatToString
(
descriptors
.
at
<
float
>
(
i
,
j
));
descriptor_str
=
FloatToString
((
float
)
descriptors
.
at
<
float
>
(
i
,
j
));
_file
<<
_separator
<<
descriptor_str
;
}
_file
<<
std
::
endl
;
...
...
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