#[repr(C)]pub struct SegmentationParameters {
pub threshold_on: f32,
pub threshold_off: f32,
pub local_energy_temporal_constant: f32,
pub local_energy_spatial_constant: f32,
pub neighborhood_energy_temporal_constant: f32,
pub neighborhood_energy_spatial_constant: f32,
pub context_energy_temporal_constant: f32,
pub context_energy_spatial_constant: f32,
}
Expand description
parameter structure that stores the transient events detector setup parameters
Fields§
§threshold_on: f32
§threshold_off: f32
§local_energy_temporal_constant: f32
the time constant of the first order low pass filter, use it to cut high temporal frequencies (noise or fast motion), unit is frames, typical value is 0.5 frame
local_energy_spatial_constant: f32
the spatial constant of the first order low pass filter, use it to cut high spatial frequencies (noise or thick contours), unit is pixels, typical value is 5 pixel
neighborhood_energy_temporal_constant: f32
local neighborhood energy filtering parameters : the aim is to get information about the energy neighborhood to perform a center surround energy analysis
neighborhood_energy_spatial_constant: f32
§context_energy_temporal_constant: f32
context neighborhood energy filtering parameters : the aim is to get information about the energy on a wide neighborhood area to filtered out local effects
context_energy_spatial_constant: f32
Implementations§
Source§impl SegmentationParameters
impl SegmentationParameters
pub fn default() -> Result<SegmentationParameters>
Trait Implementations§
Source§impl Clone for SegmentationParameters
impl Clone for SegmentationParameters
Source§fn clone(&self) -> SegmentationParameters
fn clone(&self) -> SegmentationParameters
Returns a copy 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 SegmentationParameters
impl Debug for SegmentationParameters
Source§impl PartialEq for SegmentationParameters
impl PartialEq for SegmentationParameters
impl Copy for SegmentationParameters
impl StructuralPartialEq for SegmentationParameters
Auto Trait Implementations§
impl Freeze for SegmentationParameters
impl RefUnwindSafe for SegmentationParameters
impl Send for SegmentationParameters
impl Sync for SegmentationParameters
impl Unpin for SegmentationParameters
impl UnwindSafe for SegmentationParameters
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