pub struct BestPathParams {
pub correct_global: bool,
pub seed: u64,
}Expand description
Parameters for unwrap_bestpath.
Fields§
§correct_global: boolSubtract the median wrap count from the result so the unwrapped phase stays centred near the input range (default: false).
Without it, each connected component carries an arbitrary integer multiple
of 2π. Mirrors RomeoParams::correct_global,
which defaults to false for the same reason: it is a convention, not a
correction, and multi-echo callers usually impose their own.
seed: u64Seed for the pseudo-random reliabilities given to voxels on the volume border (default: 0x05EEDB4D).
Those voxels have no complete 26-neighbourhood and so no meaningful second
difference. The reference assigns them rand(), which puts them far below
every real reliability and shuffles them among themselves so the merge
order along the volume faces carries no raster bias. Reproduced here with a
fixed default seed, so output is deterministic.
Trait Implementations§
Source§impl Clone for BestPathParams
impl Clone for BestPathParams
Source§fn clone(&self) -> BestPathParams
fn clone(&self) -> BestPathParams
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for BestPathParams
Source§impl Debug for BestPathParams
impl Debug for BestPathParams
Source§impl Default for BestPathParams
impl Default for BestPathParams
Source§impl PartialEq for BestPathParams
impl PartialEq for BestPathParams
Source§impl Serialize for BestPathParams
impl Serialize for BestPathParams
impl StructuralPartialEq for BestPathParams
Auto Trait Implementations§
impl Freeze for BestPathParams
impl RefUnwindSafe for BestPathParams
impl Send for BestPathParams
impl Sync for BestPathParams
impl Unpin for BestPathParams
impl UnsafeUnpin for BestPathParams
impl UnwindSafe for BestPathParams
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneAny for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
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