Skip to content

Commit

Permalink
Remove the dot-separated parameter names and use yaml syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
ymd-stella committed May 7, 2021
1 parent f49526b commit b11fc7b
Show file tree
Hide file tree
Showing 41 changed files with 826 additions and 716 deletions.
67 changes: 35 additions & 32 deletions example/euroc/EuRoC_mono.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,37 +4,39 @@
# Camera Model #
#==============#

Camera.name: "EuRoC monocular"
Camera.setup: "monocular"
Camera.model: "perspective"
Camera:
name: "EuRoC monocular"
setup: "monocular"
model: "perspective"

Camera.fx: 458.654
Camera.fy: 457.296
Camera.cx: 367.215
Camera.cy: 248.375
fx: 458.654
fy: 457.296
cx: 367.215
cy: 248.375

Camera.k1: -0.28340811
Camera.k2: 0.07395907
Camera.p1: 0.00019359
Camera.p2: 1.76187114e-05
Camera.k3: 0.0
k1: -0.28340811
k2: 0.07395907
p1: 0.00019359
p2: 1.76187114e-05
k3: 0.0

Camera.fps: 20.0
Camera.cols: 752
Camera.rows: 480
fps: 20.0
cols: 752
rows: 480

Camera.color_order: "Gray"
color_order: "Gray"

#================#
# ORB Parameters #
#================#

Feature.max_num_keypoints: 1000
Feature.ini_max_num_keypoints: 2000
Feature.scale_factor: 1.2
Feature.num_levels: 8
Feature.ini_fast_threshold: 20
Feature.min_fast_threshold: 7
Feature:
max_num_keypoints: 1000
ini_max_num_keypoints: 2000
scale_factor: 1.2
num_levels: 8
ini_fast_threshold: 20
min_fast_threshold: 7

#=====================#
# Tracking Parameters #
Expand All @@ -46,13 +48,14 @@ depth_threshold: 35
# PangolinViewer Parameters #
#===========================#

PangolinViewer.keyframe_size: 0.07
PangolinViewer.keyframe_line_width: 1
PangolinViewer.graph_line_width: 1
PangolinViewer.point_size: 2
PangolinViewer.camera_size: 0.08
PangolinViewer.camera_line_width: 3
PangolinViewer.viewpoint_x: 0
PangolinViewer.viewpoint_y: -0.65
PangolinViewer.viewpoint_z: -1.9
PangolinViewer.viewpoint_f: 400
PangolinViewer:
keyframe_size: 0.07
keyframe_line_width: 1
graph_line_width: 1
point_size: 2
camera_size: 0.08
camera_line_width: 3
viewpoint_x: 0
viewpoint_y: -0.65
viewpoint_z: -1.9
viewpoint_f: 400
86 changes: 45 additions & 41 deletions example/euroc/EuRoC_stereo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,36 +5,36 @@
#==============#

# intrinsic parameters after stereo-rectification are written

Camera.name: "EuRoC stereo"
Camera.setup: "stereo"
Camera.model: "perspective"
Camera:
name: "EuRoC stereo"
setup: "stereo"
model: "perspective"

# new "rectified" matrices is the first three cols of the projection matrix which is calculated with cv::stereoRectify()
# e.g. fx = P1[0][0] or P2[0][0], cx = P1[0][2] or P2[0][2]
# fy = P1[1][1] or P2[1][1], cy = P1[1][2] or P2[1][2]

Camera.fx: 435.2046959714599
Camera.fy: 435.2046959714599
Camera.cx: 367.4517211914062
Camera.cy: 252.2008514404297
fx: 435.2046959714599
fy: 435.2046959714599
cx: 367.4517211914062
cy: 252.2008514404297

# there is no distortion after stereo rectification

Camera.k1: 0.0
Camera.k2: 0.0
Camera.p1: 0.0
Camera.p2: 0.0
Camera.k3: 0.0
k1: 0.0
k2: 0.0
p1: 0.0
p2: 0.0
k3: 0.0

# focal_x_baseline is -P2[0][3] which is calculated with cv::stereoRectify()

Camera.fps: 20.0
Camera.cols: 752
Camera.rows: 480
Camera.focal_x_baseline: 47.90639384423901
fps: 20.0
cols: 752
rows: 480
focal_x_baseline: 47.90639384423901

Camera.color_order: "Gray"
color_order: "Gray"

#======================#
# Stereo Rectification #
Expand All @@ -43,41 +43,45 @@ Camera.color_order: "Gray"
# original intrinsic parameters (K, D) and stereo-recitification parameters (R)
# matrices (K, R) are written in row-major order

StereoRectifier.K_left: [458.654, 0.0, 367.215, 0.0, 457.296, 248.375, 0.0, 0.0, 1.0]
StereoRectifier.D_left: [-0.28340811, 0.07395907, 0.00019359, 1.76187114e-05, 0.0]
StereoRectifier.R_left: [0.999966347530033, -0.001422739138722922, 0.008079580483432283, 0.001365741834644127, 0.9999741760894847, 0.007055629199258132, -0.008089410156878961, -0.007044357138835809, 0.9999424675829176]
StereoRectifier.K_right: [457.587, 0.0, 379.999, 0.0, 456.134, 255.238, 0.0, 0.0, 1]
StereoRectifier.D_right: [-0.28368365, 0.07451284, -0.00010473, -3.555907e-05, 0.0]
StereoRectifier.R_right: [0.9999633526194376, -0.003625811871560086, 0.007755443660172947, 0.003680398547259526, 0.9999684752771629, -0.007035845251224894, -0.007729688520722713, 0.007064130529506649, 0.999945173484644]
StereoRectifier:
K_left: [458.654, 0.0, 367.215, 0.0, 457.296, 248.375, 0.0, 0.0, 1.0]
D_left: [-0.28340811, 0.07395907, 0.00019359, 1.76187114e-05, 0.0]
R_left: [0.999966347530033, -0.001422739138722922, 0.008079580483432283, 0.001365741834644127, 0.9999741760894847, 0.007055629199258132, -0.008089410156878961, -0.007044357138835809, 0.9999424675829176]
K_right: [457.587, 0.0, 379.999, 0.0, 456.134, 255.238, 0.0, 0.0, 1]
D_right: [-0.28368365, 0.07451284, -0.00010473, -3.555907e-05, 0.0]
R_right: [0.9999633526194376, -0.003625811871560086, 0.007755443660172947, 0.003680398547259526, 0.9999684752771629, -0.007035845251224894, -0.007729688520722713, 0.007064130529506649, 0.999945173484644]

#================#
# ORB Parameters #
#================#

Feature.max_num_keypoints: 1000
Feature.ini_max_num_keypoints: 2000
Feature.scale_factor: 1.2
Feature.num_levels: 8
Feature.ini_fast_threshold: 20
Feature.min_fast_threshold: 7
Feature:
max_num_keypoints: 1000
ini_max_num_keypoints: 2000
scale_factor: 1.2
num_levels: 8
ini_fast_threshold: 20
min_fast_threshold: 7

#========================#
# Initializer Parameters #
#========================#

Initializer.num_min_triangulated_pts: 100
Initializer:
num_min_triangulated_pts: 100

#===========================#
# PangolinViewer Parameters #
#===========================#

PangolinViewer.keyframe_size: 0.07
PangolinViewer.keyframe_line_width: 1
PangolinViewer.graph_line_width: 1
PangolinViewer.point_size: 2
PangolinViewer.camera_size: 0.08
PangolinViewer.camera_line_width: 3
PangolinViewer.viewpoint_x: 0
PangolinViewer.viewpoint_y: -0.65
PangolinViewer.viewpoint_z: -1.9
PangolinViewer.viewpoint_f: 400
PangolinViewer:
keyframe_size: 0.07
keyframe_line_width: 1
graph_line_width: 1
point_size: 2
camera_size: 0.08
camera_line_width: 3
viewpoint_x: 0
viewpoint_y: -0.65
viewpoint_z: -1.9
viewpoint_f: 400
67 changes: 35 additions & 32 deletions example/kitti/KITTI_mono_00-02.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,49 +4,52 @@
# Camera Model #
#==============#

Camera.name: "KITTI monocular 00-02"
Camera.setup: "monocular"
Camera.model: "perspective"
Camera:
name: "KITTI monocular 00-02"
setup: "monocular"
model: "perspective"

Camera.fx: 718.856
Camera.fy: 718.856
Camera.cx: 607.1928
Camera.cy: 185.2157
fx: 718.856
fy: 718.856
cx: 607.1928
cy: 185.2157

Camera.k1: 0.0
Camera.k2: 0.0
Camera.p1: 0.0
Camera.p2: 0.0
Camera.k3: 0.0
k1: 0.0
k2: 0.0
p1: 0.0
p2: 0.0
k3: 0.0

Camera.fps: 10.0
Camera.cols: 1241
Camera.rows: 376
fps: 10.0
cols: 1241
rows: 376

Camera.color_order: "Gray"
color_order: "Gray"

#================#
# ORB Parameters #
#================#

Feature.max_num_keypoints: 2000
Feature.ini_max_num_keypoints: 4000
Feature.scale_factor: 1.2
Feature.num_levels: 8
Feature.ini_fast_threshold: 20
Feature.min_fast_threshold: 7
Feature:
max_num_keypoints: 2000
ini_max_num_keypoints: 4000
scale_factor: 1.2
num_levels: 8
ini_fast_threshold: 20
min_fast_threshold: 7

#===========================#
# PangolinViewer Parameters #
#===========================#

PangolinViewer.keyframe_size: 0.06
PangolinViewer.keyframe_line_width: 1
PangolinViewer.graph_line_width: 1
PangolinViewer.point_size: 2
PangolinViewer.camera_size: 0.07
PangolinViewer.camera_line_width: 2
PangolinViewer.viewpoint_x: 0
PangolinViewer.viewpoint_y: -20
PangolinViewer.viewpoint_z: -0.1
PangolinViewer.viewpoint_f: 2800
PangolinViewer:
keyframe_size: 0.06
keyframe_line_width: 1
graph_line_width: 1
point_size: 2
camera_size: 0.07
camera_line_width: 2
viewpoint_x: 0
viewpoint_y: -20
viewpoint_z: -0.1
viewpoint_f: 2800
67 changes: 35 additions & 32 deletions example/kitti/KITTI_mono_03.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,49 +4,52 @@
# Camera Model #
#==============#

Camera.name: "KITTI monocular 03"
Camera.setup: "monocular"
Camera.model: "perspective"
Camera:
name: "KITTI monocular 03"
setup: "monocular"
model: "perspective"

Camera.fx: 721.5377
Camera.fy: 721.5377
Camera.cx: 609.5593
Camera.cy: 172.854
fx: 721.5377
fy: 721.5377
cx: 609.5593
cy: 172.854

Camera.k1: 0.0
Camera.k2: 0.0
Camera.p1: 0.0
Camera.p2: 0.0
Camera.k3: 0.0
k1: 0.0
k2: 0.0
p1: 0.0
p2: 0.0
k3: 0.0

Camera.fps: 10.0
Camera.cols: 1242
Camera.rows: 375
fps: 10.0
cols: 1242
rows: 375

Camera.color_order: "Gray"
color_order: "Gray"

#================#
# ORB Parameters #
#================#

Feature.max_num_keypoints: 2000
Feature.ini_max_num_keypoints: 4000
Feature.scale_factor: 1.2
Feature.num_levels: 8
Feature.ini_fast_threshold: 20
Feature.min_fast_threshold: 7
Feature:
max_num_keypoints: 2000
ini_max_num_keypoints: 4000
scale_factor: 1.2
num_levels: 8
ini_fast_threshold: 20
min_fast_threshold: 7

#===========================#
# PangolinViewer Parameters #
#===========================#

PangolinViewer.keyframe_size: 0.06
PangolinViewer.keyframe_line_width: 1
PangolinViewer.graph_line_width: 1
PangolinViewer.point_size: 2
PangolinViewer.camera_size: 0.07
PangolinViewer.camera_line_width: 2
PangolinViewer.viewpoint_x: 0
PangolinViewer.viewpoint_y: -20
PangolinViewer.viewpoint_z: -0.1
PangolinViewer.viewpoint_f: 2800
PangolinViewer:
keyframe_size: 0.06
keyframe_line_width: 1
graph_line_width: 1
point_size: 2
camera_size: 0.07
camera_line_width: 2
viewpoint_x: 0
viewpoint_y: -20
viewpoint_z: -0.1
viewpoint_f: 2800
Loading

0 comments on commit b11fc7b

Please sign in to comment.