pub struct SharpParams {
pub threshold: f64,
pub radius_factor: f64,
}Expand description
SHARP background field removal
Uses spherical mean value (SMV) filtering to remove background field. The local field is obtained by deconvolving the SMV-filtered field.
§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 mmradius- SMV kernel radius in mmthreshold- High-pass filter threshold (typically 0.05)
SHARP algorithm parameters
Fields§
§threshold: f64Deconvolution threshold
radius_factor: f64Kernel radius factor (multiplied by min voxel size to get radius in mm; default: 18.0)
Trait Implementations§
Source§impl Clone for SharpParams
impl Clone for SharpParams
Source§fn clone(&self) -> SharpParams
fn clone(&self) -> SharpParams
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 SharpParams
impl Debug for SharpParams
Auto Trait Implementations§
impl Freeze for SharpParams
impl RefUnwindSafe for SharpParams
impl Send for SharpParams
impl Sync for SharpParams
impl Unpin for SharpParams
impl UnsafeUnpin for SharpParams
impl UnwindSafe for SharpParams
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