Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
ftl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nicolas Pope
ftl
Commits
cb85e54b
Commit
cb85e54b
authored
4 years ago
by
Sebastian Hahta
Browse files
Options
Downloads
Patches
Plain Diff
remove debug messages
parent
37d3599b
No related branches found
No related tags found
1 merge request
!316
Resolves #343 GUI and Frame Refactor
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
applications/gui2/src/modules/calibration/extrinsic.cpp
+0
-5
0 additions, 5 deletions
applications/gui2/src/modules/calibration/extrinsic.cpp
components/calibration/src/extrinsic.cpp
+0
-8
0 additions, 8 deletions
components/calibration/src/extrinsic.cpp
with
0 additions
and
13 deletions
applications/gui2/src/modules/calibration/extrinsic.cpp
+
0
−
5
View file @
cb85e54b
...
@@ -298,7 +298,6 @@ void ExtrinsicCalibration::run() {
...
@@ -298,7 +298,6 @@ void ExtrinsicCalibration::run() {
future_
=
ftl
::
pool
.
push
([
this
](
int
id
)
{
future_
=
ftl
::
pool
.
push
([
this
](
int
id
)
{
try
{
try
{
LOG
(
INFO
)
<<
"Before:"
;
// DEBUG INFO
for
(
int
c
=
0
;
c
<
cameraCount
();
c
+=
2
)
{
for
(
int
c
=
0
;
c
<
cameraCount
();
c
+=
2
)
{
auto
t1
=
state_
.
calib
.
calibration
(
c
).
extrinsic
.
tvec
;
auto
t1
=
state_
.
calib
.
calibration
(
c
).
extrinsic
.
tvec
;
auto
t2
=
state_
.
calib
.
calibration
(
c
+
1
).
extrinsic
.
tvec
;
auto
t2
=
state_
.
calib
.
calibration
(
c
+
1
).
extrinsic
.
tvec
;
...
@@ -308,13 +307,9 @@ void ExtrinsicCalibration::run() {
...
@@ -308,13 +307,9 @@ void ExtrinsicCalibration::run() {
}
}
state_
.
calib
.
run
();
state_
.
calib
.
run
();
LOG
(
INFO
)
<<
"After:"
;
// DEBUG INFO
for
(
int
c
=
0
;
c
<
cameraCount
();
c
+=
2
)
{
for
(
int
c
=
0
;
c
<
cameraCount
();
c
+=
2
)
{
auto
t1
=
state_
.
calib
.
calibrationOptimized
(
c
).
extrinsic
.
tvec
;
auto
t1
=
state_
.
calib
.
calibrationOptimized
(
c
).
extrinsic
.
tvec
;
auto
t2
=
state_
.
calib
.
calibrationOptimized
(
c
+
1
).
extrinsic
.
tvec
;
auto
t2
=
state_
.
calib
.
calibrationOptimized
(
c
+
1
).
extrinsic
.
tvec
;
LOG
(
INFO
)
<<
"baseline ("
<<
c
<<
", "
<<
c
+
1
<<
"): "
<<
cv
::
norm
(
t1
,
t2
);
}
}
// Rectification maps for visualization; stereo cameras assumed
// Rectification maps for visualization; stereo cameras assumed
...
...
This diff is collapsed.
Click to expand it.
components/calibration/src/extrinsic.cpp
+
0
−
8
View file @
cb85e54b
...
@@ -636,12 +636,6 @@ double ExtrinsicCalibration::optimize() {
...
@@ -636,12 +636,6 @@ double ExtrinsicCalibration::optimize() {
updateStatus_
(
"Bundle adjustment"
);
updateStatus_
(
"Bundle adjustment"
);
options_
.
verbose
=
true
;
options_
.
verbose
=
true
;
for
(
unsigned
int
i
=
0
;
i
<
cameras
.
size
();
i
++
)
{
LOG
(
INFO
)
<<
"RMSE (camera "
<<
i
<<
"): "
<<
ba
.
reprojectionError
(
i
);
auto
extr
=
cameras
[
i
].
extrinsic
();
LOG
(
INFO
)
<<
extr
.
rvec
<<
", "
<<
extr
.
tvec
;
}
LOG
(
INFO
)
<<
"fix intrinsics: "
<<
(
options_
.
optimize_intrinsic
?
"no"
:
"yes"
);
LOG
(
INFO
)
<<
"fix intrinsics: "
<<
(
options_
.
optimize_intrinsic
?
"no"
:
"yes"
);
LOG
(
INFO
)
<<
"fix focal: "
<<
(
options_
.
fix_focal
?
"yes"
:
"no"
);
LOG
(
INFO
)
<<
"fix focal: "
<<
(
options_
.
fix_focal
?
"yes"
:
"no"
);
LOG
(
INFO
)
<<
"fix principal point: "
<<
(
options_
.
fix_principal_point
?
"yes"
:
"no"
);
LOG
(
INFO
)
<<
"fix principal point: "
<<
(
options_
.
fix_principal_point
?
"yes"
:
"no"
);
...
@@ -656,8 +650,6 @@ double ExtrinsicCalibration::optimize() {
...
@@ -656,8 +650,6 @@ double ExtrinsicCalibration::optimize() {
calib_optimized_
[
i
]
=
calib_
[
i
];
calib_optimized_
[
i
]
=
calib_
[
i
];
calib_optimized_
[
i
].
intrinsic
.
set
(
intr
.
matrix
(),
intr
.
distCoeffs
.
Mat
(),
intr
.
resolution
);
calib_optimized_
[
i
].
intrinsic
.
set
(
intr
.
matrix
(),
intr
.
distCoeffs
.
Mat
(),
intr
.
resolution
);
calib_optimized_
[
i
].
extrinsic
.
set
(
extr
.
rvec
,
extr
.
tvec
);
calib_optimized_
[
i
].
extrinsic
.
set
(
extr
.
rvec
,
extr
.
tvec
);
LOG
(
INFO
)
<<
"RMSE (camera "
<<
i
<<
"): "
<<
ba
.
reprojectionError
(
i
);
LOG
(
INFO
)
<<
calib_optimized_
[
i
].
extrinsic
.
rvec
<<
", "
<<
calib_optimized_
[
i
].
extrinsic
.
tvec
;
}
}
return
ba
.
reprojectionError
();
return
ba
.
reprojectionError
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment