Skip to main content

StreamConfig

Struct StreamConfig 

Source
pub struct StreamConfig {
Show 35 fields pub src: PathBuf, pub out: PathBuf, pub span: usize, pub overlap: usize, pub stride: usize, pub incremental_triangulation: bool, pub depth_cache: bool, pub fixed_enu_origin: bool, pub pm_backend: String, pub mvs_profile: String, pub sift_backend: String, pub match_backend: String, pub undistort_backend: String, pub threads: usize, pub max_positions: Option<usize>, pub save_models: bool, pub serialize_dense: bool, pub dense_max_image_size: i64, pub number_views: usize, pub max_num_features: usize, pub sift_max_image_size: usize, pub echo: bool, pub no_dense: bool, pub stable_display: bool, pub settle_tol: f64, pub settle_max_zone: usize, pub intrinsics_prior: Option<PathBuf>, pub intrinsics_prior_sigma: f64, pub intrinsics_prior_dist_sigma: f64, pub seed: Option<u64>, pub max_levels: Option<usize>, pub fusion: Fusion, pub live_stride: usize, pub lookahead: usize, pub preview: bool,
}
Expand description

Stream settings. Defaults = script behavior.

Fields§

§src: PathBuf

Input folder (images/<cam>/, gps_ref.txt).

§out: PathBuf

Output folder.

§span: usize

Zone size (number of positions).

§overlap: usize

Zone overlap (number of positions).

§stride: usize

Frame interval (only number % stride == 0 is used).

§incremental_triangulation: bool

Triangulate only newly registered images (improvement, off by default).

§depth_cache: bool

Reuse depth maps of overlapping images (improvement, off by default).

§fixed_enu_origin: bool

Fix the session ENU origin to the first GPS line (improvement, off by default = the first common record at each alignment).

§pm_backend: String

PatchMatch backend name (cuda).

§mvs_profile: String

Densification profile (fast|quality).

§sift_backend: String

SIFT backend (cpu|cuda).

§match_backend: String

Descriptor matching backend (cpu|cuda).

§undistort_backend: String

Image undistortion backend (cpu|cuda).

§threads: usize

Number of rayon threads (0 = number of cores).

§max_positions: Option<usize>

Process only the first N positions.

§save_models: bool

Save per-zone sparse models.

§serialize_dense: bool

Serialize preview/refined densification backend calls.

§dense_max_image_size: i64

Maximum undistortion size (script 960).

§number_views: usize

Number of densification source views.

§max_num_features: usize

Maximum number of SIFT features (script 8192).

§sift_max_image_size: usize

Maximum SIFT input size (default 3200).

§echo: bool

Also show the run.log contents on standard output.

§no_dense: bool

Skip densification (for development/tests).

§stable_display: bool§settle_tol: f64

Stable display: intrinsics change below which the display settles (see crate::session::SessionConfig::settle_tol).

§settle_max_zone: usize

Stable display: last zone that may still settle (see crate::session::SessionConfig::settle_max_zone).

§intrinsics_prior: Option<PathBuf>

Soft intrinsics prior file (see crate::intrinsics).

§intrinsics_prior_sigma: f64

Intrinsics prior: relative σ of the focal lengths.

§intrinsics_prior_dist_sigma: f64

Intrinsics prior: absolute σ of the distortion parameters.

§seed: Option<u64>

RANSAC seed for two-view geometry and GPS alignment (None = differs from run to run).

§max_levels: Option<usize>

Upper bound on the number of densification scales (None = profile default; 1 = a single scale at full resolution).

§fusion: Fusion

Fusion overrides (smoothing, visibility; unset values use the profile default).

§live_stride: usize

Live display thinning: keep 1 of N points by key hash (1 = keep all; ≥ 1).

§lookahead: usize

Positions whose features are extracted ahead of the position loop (see crate::session::SessionConfig::lookahead; 0 = off).

§preview: bool

Stable display: sparse preview of every zone when it closes (see crate::session::SessionConfig::preview).

Implementations§

Source§

impl StreamConfig

Source

pub fn new(src: PathBuf, out: PathBuf) -> Self

Default settings (zone 12, overlap 2, stride 3).

Trait Implementations§

Source§

impl Clone for StreamConfig

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for StreamConfig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> ByRef<T> for T

Source§

fn by_ref(&self) -> &T

Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DistributionExt for T
where T: ?Sized,

Source§

fn rand<T>(&self, rng: &mut (impl Rng + ?Sized)) -> T
where Self: Distribution<T>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Imply<T> for U
where T: ?Sized, U: ?Sized,

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

Source§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Source§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
Source§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
Source§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V