pub trait PostProcessor: Send + Sync {
// Required methods
fn process_mask(&self, mask: &Array2<u8>) -> Result<Array2<u8>>;
fn name(&self) -> &'static str;
fn description(&self) -> &'static str;
// Provided method
fn validate_parameters(&self) -> Result<()> { ... }
}Expand description
Trait for post-processing glint masks.
Post-processors take binary masks and apply various refinement operations such as morphological operations, buffering, or filtering.
Required Methods§
Sourcefn description(&self) -> &'static str
fn description(&self) -> &'static str
Get a description of this post-processor
Provided Methods§
Sourcefn validate_parameters(&self) -> Result<()>
fn validate_parameters(&self) -> Result<()>
Validate that the post-processor parameters are valid
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".