Skip to main content

Dense

Struct Dense 

Source
pub struct Dense {
    pub enabled: bool,
    pub backend: String,
    pub undistort_backend: String,
    pub profile: String,
    pub max_image_size: i64,
    pub views: usize,
    pub max_levels: Option<usize>,
    pub serialize: bool,
    pub depth_cache: bool,
    pub fusion: Fusion,
    pub filter: Filter,
}
Expand description

Densification plan. Start from Dense::profile and add to it with methods. Unset fusion/filter values use the profile defaults.

Fields§

§enabled: bool

Whether to densify (if off, there is no post-processing point cloud).

§backend: String

PatchMatch backend (cuda).

§undistort_backend: String

Image undistortion backend (cpu|cuda). Same result as cpu up to rounding.

§profile: String

Profile (fast|quality).

§max_image_size: i64

Maximum undistorted image size.

§views: usize

Number of source views (1..=32).

§max_levels: Option<usize>

Upper bound on the number of scales (>= 1; 1 = a single scale at full resolution). If unset, the profile default.

§serialize: bool

Serialize preview/refined densification backend calls.

§depth_cache: bool

Reuse depth maps of overlapping images.

§fusion: Fusion

Fusion overrides.

§filter: Filter

Depth map filter overrides.

Implementations§

Source§

impl Dense

Source

pub fn profile(name: &str) -> Self

Start from a profile (fast|quality) and the defaults (on, backend cuda).

Source

pub fn off() -> Self

Densification turned off.

Source

pub fn backend(self, name: &str) -> Self

PatchMatch backend name.

Source

pub fn undistort_backend(self, name: &str) -> Self

Image undistortion backend name (cpu|cuda).

Source

pub fn max_image_size(self, n: i64) -> Self

Maximum undistorted image size.

Source

pub fn views(self, n: usize) -> Self

Number of source views.

Source

pub fn serialize(self, on: bool) -> Self

Serialize preview/refined backend calls.

Source

pub fn depth_cache(self, on: bool) -> Self

Reuse depth maps of overlapping images.

Source

pub fn fusion_mode(self, mode: &str) -> Self

Fusion mode (consistency|traversal).

Source

pub fn fusion_min_views(self, n: usize) -> Self

Consistent fusion: minimum number of agreeing views besides the reference.

Source

pub fn fusion_depth_error(self, v: f64) -> Self

Fusion relative depth tolerance.

Source

pub fn fusion_normal_error(self, deg: f64) -> Self

Fusion normal tolerance angle (degrees).

Source

pub fn fusion_reproj_error(self, px: f64) -> Self

Fusion reprojection tolerance (pixels).

Source

pub fn fusion_residual(self, mode: &str) -> Self

Handling of remaining pixels in consistent fusion (none|release|second-pass).

Source

pub fn fusion_smooth_iters(self, n: usize) -> Self

Smoothing of the fused cloud along normals: iterations (0 = off).

Source

pub fn fusion_smooth_radius(self, r: f64) -> Self

Smoothing neighbour radius (ground-sample-distance multiple).

Source

pub fn fusion_smooth_range(self, r: f64) -> Self

Smoothing range sigma along the normal (ground-sample-distance multiple).

Source

pub fn fusion_smooth_normal(self, deg: f64) -> Self

Smoothing neighbour normal gate (degrees).

Source

pub fn max_levels(self, n: usize) -> Self

Upper bound on the number of scales (1 = a single scale at full resolution).

Source

pub fn fill_holes(self, on: bool) -> Self

Edge-aware hole filling of the filtered depth maps.

Source

pub fn filter_min_views(self, n: u32) -> Self

Depth map filter: minimum number of agreeing views.

Source

pub fn filter_geom_error(self, px: f32) -> Self

Depth map filter: forward/backward reprojection tolerance (pixels).

Source

pub fn filter_min_ncc(self, v: f32) -> Self

Depth map filter: minimum NCC.

Source

pub fn median_filter(self, on: bool) -> Self

Median plane filter before readout.

Source

pub fn apply(&self, o: &mut DensifyOptions) -> Result<(), String>

Apply the overrides to the densification options (an unknown name is an error).

Source

pub fn config(&self) -> Result<DenseConfig, String>

Densification settings for running. The backend is created here (if there is no device, that error is reported in the densification stage).

Trait Implementations§

Source§

impl Clone for Dense

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 Dense

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Default for Dense

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for Dense
where Dense: Default,

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for Dense

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for Dense

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for Dense

Auto Trait Implementations§

§

impl Freeze for Dense

§

impl RefUnwindSafe for Dense

§

impl Send for Dense

§

impl Sync for Dense

§

impl Unpin for Dense

§

impl UnsafeUnpin for Dense

§

impl UnwindSafe for Dense

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> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

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<T> Scalar for T
where T: 'static + Clone + PartialEq + Debug,

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