pub struct VsharpParams {
pub threshold: f64,
pub max_radius_factor: f64,
pub min_radius_factor: f64,
}Expand description
V-SHARP background field removal
Uses multiple SMV kernel radii, starting from largest and decreasing. At each voxel, uses the smallest radius that doesn’t touch the boundary.
§Arguments
field- Unwrapped total field (nx * ny * nz)mask- Binary mask (nx * ny * nz), 1 = inside ROInx,ny,nz- Array dimensionsvsx,vsy,vsz- Voxel sizes in mmradii- SMV kernel radii in mm (should be sorted large to small)threshold- High-pass filter threshold (typically 0.05)
V-SHARP algorithm parameters
Fields§
§threshold: f64Deconvolution threshold
max_radius_factor: f64Maximum kernel radius in mm (as multiple of min voxel size; default: 18.0)
min_radius_factor: f64Minimum kernel radius in mm (as multiple of max voxel size; default: 2.0)
Trait Implementations§
Source§impl Clone for VsharpParams
impl Clone for VsharpParams
Source§fn clone(&self) -> VsharpParams
fn clone(&self) -> VsharpParams
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VsharpParams
impl Debug for VsharpParams
Auto Trait Implementations§
impl Freeze for VsharpParams
impl RefUnwindSafe for VsharpParams
impl Send for VsharpParams
impl Sync for VsharpParams
impl Unpin for VsharpParams
impl UnsafeUnpin for VsharpParams
impl UnwindSafe for VsharpParams
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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 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>
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