pub struct SpatialFastFilter { /* private fields */ }Expand description
Spatial Fast Filter
This filter smooths the depth frame while preserving edges. It uses an enhanced median smoothing algorithm and is the simplest spatial filter available.
Implementations§
Source§impl SpatialFastFilter
impl SpatialFastFilter
Sourcepub fn new() -> Result<Self, OrbbecError>
pub fn new() -> Result<Self, OrbbecError>
Create a new spatial fast filter.
Sourcepub fn set_radius(&mut self, radius: u16) -> Result<(), OrbbecError>
pub fn set_radius(&mut self, radius: u16) -> Result<(), OrbbecError>
Set the filter radius parameter.
Radius is how many neighbors will be considered for smoothing.
§Arguments
radius- The radius value. Usually between 3 and 5.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SpatialFastFilter
impl RefUnwindSafe for SpatialFastFilter
impl !Send for SpatialFastFilter
impl !Sync for SpatialFastFilter
impl Unpin for SpatialFastFilter
impl UnwindSafe for SpatialFastFilter
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