pub struct MedianFilter {
pub azimuth_kernel: usize,
pub range_kernel: usize,
}Expand description
Median filter in an azimuth x range kernel.
Replaces each valid gate value with the median of the valid values in its neighborhood. The kernel size is specified as the number of gates in each dimension (must be odd). Invalid gates (NoData, BelowThreshold, RangeFolded) are excluded from the median computation and left unchanged.
The azimuth dimension wraps around 360 degrees.
Fields§
§azimuth_kernel: usizeKernel width in the azimuth dimension (must be odd, >= 1).
range_kernel: usizeKernel width in the range dimension (must be odd, >= 1).
Trait Implementations§
Source§impl SweepProcessor for MedianFilter
impl SweepProcessor for MedianFilter
Source§fn process(&self, input: &SweepField) -> Result<SweepField>
fn process(&self, input: &SweepField) -> Result<SweepField>
Process the input field, producing a new field with the same geometry.
Auto Trait Implementations§
impl Freeze for MedianFilter
impl RefUnwindSafe for MedianFilter
impl Send for MedianFilter
impl Sync for MedianFilter
impl Unpin for MedianFilter
impl UnsafeUnpin for MedianFilter
impl UnwindSafe for MedianFilter
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