[−][src]Function city2ba::synthetic::synthetic_line
pub fn synthetic_line<C: Camera + Sync + Clone>(
num_cameras: usize,
num_points: usize,
length: f64,
point_offset: f64,
camera_height: f64,
point_height: f64,
max_dist: f64,
verbose: bool
) -> BAProblem<C>
Generate a series of synthetic cameras in a line.
Arguments
num_cameras
: number of cameras to generate. Final number of cameras might be slightly less.num_points
: number of points to generate. Final number of points might be slightly less.length
: length of the line the cameras are placed on.point_offset
: points are placed this distance to the right and left of the cameras.camera_height
: height of cameras from the ground (in y).point_height
: height of points from the ground (in y).max_dist
: maximum distance between a camera and a point for visibility.verbose
: should a progress bar be displayed.