Skip to content

Commit

Permalink
Update config files
Browse files Browse the repository at this point in the history
  • Loading branch information
rubengooj committed Nov 15, 2018
1 parent cc704f5 commit 9b8e6f5
Show file tree
Hide file tree
Showing 4 changed files with 166 additions and 61 deletions.
59 changes: 33 additions & 26 deletions config/config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,27 @@
# -----------------------------------------------------------------------------------------------------
has_points : true # true if using points
has_lines : true # true if using line segments
use_fld_lines : false # true if using FLD detector
use_fld_lines : false # true if using FLD detector
lr_in_parallel : true # true if detecting and matching features in parallel
pl_in_parallel : true # true if detecting points and line segments in parallel
best_lr_matches : true # true if double-checking the matches between the two images
adaptative_fast : true # true if using adaptative fast_threshold
use_motion_model : false # true if using constant motion model
#TODO: adaptative fld threshold

# Tracking parameters
# -----------------------------------------------------------------------------------------------------
# Point features
max_dist_epip : 1.0 # max. epipolar distance in pixels
max_dist_epip : 0.0 # max. epipolar distance in pixels
min_disp : 1.0 # min. disparity (avoid points in the infinite)
min_ratio_12_p : 0.75 # min. ratio between the first and second best matches

# Line segment features
line_sim_th : 0.75 # threshold for cosine similarity
stereo_overlap_th : 0.85
f2f_overlap_th : 0.85
min_line_length : 0.05 # min. line length (relative to img size)
line_horiz_th : 1.0 # parameter to avoid horizontal lines (pixels)
stereo_overlap_th : 0.75
f2f_overlap_th : 0.75
min_line_length : 0.025 # min. line length (relative to img size)
line_horiz_th : 0.1 # parameter to avoid horizontal lines (pixels)
min_ratio_12_l : 0.75 # parameter to avoid outliers in line matching
ls_min_disp_ratio : 0.7 # min ratio between min(disp)/max(disp) for a LS

Expand All @@ -32,6 +33,12 @@ fast_inc_th : 5 # base increment for the FAST threshold
fast_feat_th : 50 # base number of features to increase/decrease FAST threshold
fast_err_th : 0.5 # threshold for the optimization error

# TODO: add similar adaptative FAST for FLD (take care with the min and max values regarding performance)

# RGB-D features
rgbd_min_depth : 0.5
rgbd_max_depth : 3.0

# Optimization parameters
# -----------------------------------------------------------------------------------------------------
homog_th : 1e-7 # avoid points in the infinite
Expand All @@ -44,26 +51,26 @@ inlier_k : 4.0 # factor to discard outliers before the refinemen

# Feature detection parameters
# -----------------------------------------------------------------------------------------------------
matching_strategy : 3
matching_s_ws : 10
matching_f2f_ws : 3
matching_stereo : 0 # 0 - pure descriptor based | 1 - window based plus descriptor
matching_s_ws : 10 # size of the windows (in pixels) to look for stereo matches (if matching_stereo=1)
matching_f2f_ws : 3 # size of the windows (in pixels) to look for f2f matches

# ORB detector
orb_nfeatures : 1200
orb_scale_factor : 1.2
orb_nlevels : 1
orb_edge_th : 19
orb_wta_k : 2 # was set to 4
orb_score : 1 # 0 - HARRIS | 1 - FAST
orb_patch_size : 31
orb_fast_th : 20 # default FAST threshold
orb_nfeatures : 1200 # number of ORB features to detect
orb_scale_factor : 1.2 # pyramid decimation ratio for the ORB detector
orb_nlevels : 4 # number of pyramid levels
orb_edge_th : 19 # size of the border where the features are not detected
orb_wta_k : 2 # number of points that produce each element of the oriented BRIEF descriptor
orb_score : 1 # 0 - HARRIS | 1 - FAST
orb_patch_size : 31 # size of the patch used by the oriented BRIEF descriptor.
orb_fast_th : 20 # default FAST threshold
# LSD parameters
lsd_nfeatures : 300 # set to 0 if keeping all lines
lsd_refine : 0
lsd_scale : 1.2
lsd_sigma_scale : 0.6
lsd_quant : 2.0
lsd_ang_th : 22.5
lsd_log_eps : 1.0
lsd_density_th : 0.6
lsd_n_bins : 1024
lsd_nfeatures : 300 # number of LSD lines detected (set to 0 if keeping all lines)
lsd_refine : 0 # the way of refining or not the detected lines
lsd_scale : 1.2 # scale of the image that will be used to find the lines
lsd_sigma_scale : 0.6 # sigma for Gaussian filter
lsd_quant : 2.0 # bound to the quantization error on the gradient norm
lsd_ang_th : 22.5 # gradient angle tolerance in degrees
lsd_log_eps : 1.0 # detection threshold (only for advanced refinement)
lsd_density_th : 0.6 # minimal density of aligned region points in the enclosing rectangle
lsd_n_bins : 1024 # number of bins in pseudo-ordering of gradient modulus
76 changes: 76 additions & 0 deletions config/config/config_full.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# StVO-PL options
# -----------------------------------------------------------------------------------------------------
has_points : true # true if using points
has_lines : true # true if using line segments
use_fld_lines : false # true if using FLD detector
lr_in_parallel : true # true if detecting and matching features in parallel
pl_in_parallel : true # true if detecting points and line segments in parallel
best_lr_matches : true # true if double-checking the matches between the two images
adaptative_fast : true # true if using adaptative fast_threshold
use_motion_model : false # true if using constant motion model
#TODO: adaptative fld threshold

# Tracking parameters
# -----------------------------------------------------------------------------------------------------
# Point features
max_dist_epip : 0.0 # max. epipolar distance in pixels
min_disp : 1.0 # min. disparity (avoid points in the infinite)
min_ratio_12_p : 0.75 # min. ratio between the first and second best matches

# Line segment features
line_sim_th : 0.75 # threshold for cosine similarity
stereo_overlap_th : 0.75
f2f_overlap_th : 0.75
min_line_length : 0.025 # min. line length (relative to img size)
line_horiz_th : 0.1 # parameter to avoid horizontal lines (pixels)
min_ratio_12_l : 0.75 # parameter to avoid outliers in line matching
ls_min_disp_ratio : 0.7 # min ratio between min(disp)/max(disp) for a LS

# Adaptative FAST parameters
fast_min_th : 5 # min. value for FAST threshold
fast_max_th : 50 # max. value for FAST threshold
fast_inc_th : 5 # base increment for the FAST threshold
fast_feat_th : 50 # base number of features to increase/decrease FAST threshold
fast_err_th : 0.5 # threshold for the optimization error

# TODO: add similar adaptative FAST for FLD (take care with the min and max values regarding performance)

# RGB-D features
rgbd_min_depth : 0.5
rgbd_max_depth : 3.0

# Optimization parameters
# -----------------------------------------------------------------------------------------------------
homog_th : 1e-7 # avoid points in the infinite
min_features : 10 # min. number of features to perform StVO
max_iters : 5 # max. number of iterations in the first stage of the optimization
max_iters_ref : 10 # max. number of iterations in the refinement stage
min_error : 1e-7 # min. error to stop the optimization
min_error_change : 1e-7 # min. error change to stop the optimization
inlier_k : 4.0 # factor to discard outliers before the refinement stage

# Feature detection parameters
# -----------------------------------------------------------------------------------------------------
matching_stereo : 0 # 0 - pure descriptor based | 1 - window based plus descriptor
matching_s_ws : 10 # size of the windows (in pixels) to look for stereo matches (if matching_stereo=1)
matching_f2f_ws : 3 # size of the windows (in pixels) to look for f2f matches

# ORB detector
orb_nfeatures : 1200 # number of ORB features to detect
orb_scale_factor : 1.2 # pyramid decimation ratio for the ORB detector
orb_nlevels : 4 # number of pyramid levels
orb_edge_th : 19 # size of the border where the features are not detected
orb_wta_k : 2 # number of points that produce each element of the oriented BRIEF descriptor
orb_score : 1 # 0 - HARRIS | 1 - FAST
orb_patch_size : 31 # size of the patch used by the oriented BRIEF descriptor.
orb_fast_th : 20 # default FAST threshold
# LSD parameters
lsd_nfeatures : 300 # number of LSD lines detected (set to 0 if keeping all lines)
lsd_refine : 0 # the way of refining or not the detected lines
lsd_scale : 1.2 # scale of the image that will be used to find the lines
lsd_sigma_scale : 0.6 # sigma for Gaussian filter
lsd_quant : 2.0 # bound to the quantization error on the gradient norm
lsd_ang_th : 22.5 # gradient angle tolerance in degrees
lsd_log_eps : 1.0 # detection threshold (only for advanced refinement)
lsd_density_th : 0.6 # minimal density of aligned region points in the enclosing rectangle
lsd_n_bins : 1024 # number of bins in pseudo-ordering of gradient modulus
66 changes: 31 additions & 35 deletions config/config/config_kitti.yaml
Original file line number Diff line number Diff line change
@@ -1,40 +1,35 @@
# StVO parameters
# ---------------
# kf decision (SLAM) parameters
min_entropy_ratio : 0.85
max_kf_t_dist : 2.0
max_kf_r_dist : 5.0

# StVO-PL options
# -----------------------------------------------------------------------------------------------------
has_points : true # true if using points
has_lines : true # true if using line segments
use_fld_lines : false # true if using FLD detector
use_fld_lines : false # true if using FLD detector

lr_in_parallel : true # true if detecting and matching features in parallel
pl_in_parallel : true # true if detecting points and line segments in parallel
best_lr_matches : true # true if double-checking the matches between the two images
adaptative_fast : true # true if using adaptative fast_threshold

use_motion_model : false # true if using constant motion model

# Tracking parameters
# -----------------------------------------------------------------------------------------------------
# Point feature
max_dist_epip : 1.0 # max. epipolar distance in pixels
max_dist_epip : 0.0 # max. epipolar distance in pixels
min_disp : 1.0 # min. disparity (avoid points in the infinite)
min_ratio_12_p : 0.9 # min. ratio between the first and second best matches
min_ratio_12_p : 0.75 # min. ratio between the first and second best matches

# Line segment features
line_sim_th : 0.75 # threshold for cosine similarity
stereo_overlap_th : 0.75
f2f_overlap_th : 0.75
min_line_length : 0.025 # min. line length (relative to img size)
min_line_length : 0.025 # min. line length (relative to img size)
line_horiz_th : 0.1 # parameter to avoid horizontal lines (pixels)
min_ratio_12_l : 0.9 # parameter to avoid outliers in line matching
min_ratio_12_l : 0.75 # parameter to avoid outliers in line matching
ls_min_disp_ratio : 0.7 # min ratio between min(disp)/max(disp) for a LS

# Adaptative FAST parameters
fast_min_th : 0 # min. value for FAST threshold
fast_max_th : 50 # max. value for FAST threshold
fast_min_th : 7 # min. value for FAST threshold
fast_max_th : 30 # max. value for FAST threshold
fast_inc_th : 5 # base increment for the FAST threshold
fast_feat_th : 50 # base number of features to increase/decrease FAST threshold
fast_err_th : 0.5 # threshold for the optimization error
Expand All @@ -47,30 +42,31 @@ max_iters : 5 # max. number of iterations in the first stage of
max_iters_ref : 10 # max. number of iterations in the refinement stage
min_error : 1e-7 # min. error to stop the optimization
min_error_change : 1e-7 # min. error change to stop the optimization
inlier_k : 4.0 # factor to discard outliers before the refinement stage
inlier_k : 1.2 # factor to discard outliers before the refinement stage

# Feature detection parameters
# -----------------------------------------------------------------------------------------------------
matching_strategy : 3
matching_s_ws : 10
matching_f2f_ws : 3
matching_stereo : 0 # 0 - pure descriptor based | 1 - window based plus descriptor
matching_s_ws : 10 # size of the windows (in pixels) to look for stereo matches (if matching_stereo=1)
matching_f2f_ws : 3 # size of the windows (in pixels) to look for f2f matches

# ORB detector
orb_nfeatures : 800
orb_scale_factor : 1.2
orb_nlevels : 1
orb_edge_th : 19
orb_wta_k : 2 # was set to 4
orb_score : 1 # 0 - HARRIS | 1 - FAST
orb_patch_size : 31
orb_fast_th : 20 # default FAST threshold
orb_nfeatures : 2000 # number of ORB features to detect
orb_scale_factor : 1.2 # pyramid decimation ratio for the ORB detector
orb_nlevels : 1 # number of pyramid levels
orb_edge_th : 19 # size of the border where the features are not detected
orb_wta_k : 2 # number of points that produce each element of the oriented BRIEF descriptor
orb_score : 1 # 0 - HARRIS | 1 - FAST
orb_patch_size : 31 # size of the patch used by the oriented BRIEF descriptor.
orb_fast_th : 20 # default FAST threshold

# LSD parameters
lsd_nfeatures : 100 # set to 0 if keeping all lines
lsd_refine : 0
lsd_scale : 1.2
lsd_sigma_scale : 0.6
lsd_quant : 2.0
lsd_ang_th : 22.5
lsd_log_eps : 1.0
lsd_density_th : 0.6
lsd_n_bins : 1024
lsd_nfeatures : 100 # number of LSD lines detected (set to 0 if keeping all lines)
lsd_refine : 0 # the way of refining or not the detected lines
lsd_scale : 1.2 # scale of the image that will be used to find the lines
lsd_sigma_scale : 0.6 # sigma for Gaussian filter
lsd_quant : 2.0 # bound to the quantization error on the gradient norm
lsd_ang_th : 22.5 # gradient angle tolerance in degrees
lsd_log_eps : 1.0 # detection threshold (only for advanced refinement)
lsd_density_th : 0.6 # minimal density of aligned region points in the enclosing rectangle
lsd_n_bins : 1024 # number of bins in pseudo-ordering of gradient modulus
26 changes: 26 additions & 0 deletions config/config/config_reduced.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# StVO-PL options
# -----------------------------------------------------------------------------------------------------
has_points : true # true if using points
has_lines : true # true if using line segments
lr_in_parallel : true # true if detecting and matching features in parallel
pl_in_parallel : true # true if detecting points and line segments in parallel

# Tracking parameters
# -----------------------------------------------------------------------------------------------------
# Point features
min_ratio_12_p : 0.75 # min. ratio between the first and second best matches
# Line segment features
min_ratio_12_l : 0.75 # parameter to avoid outliers in line matching

# Optimization parameters
# -----------------------------------------------------------------------------------------------------
inlier_k : 4.0 # factor to discard outliers before the refinement stage

# Feature detection parameters
# -----------------------------------------------------------------------------------------------------
# ORB detector
orb_nfeatures : 1200 # number of ORB features to detect
orb_nlevels : 4 # number of pyramid levels
orb_fast_th : 20 # default FAST threshold
# LSD parameters
lsd_nfeatures : 300 # number of LSD lines detected (set to 0 if keeping all lines)

0 comments on commit 9b8e6f5

Please sign in to comment.