Skip to main content

FeatureExtractor

Trait FeatureExtractor 

Source
pub trait FeatureExtractor {
    type Image;
    type Error;

    // Required method
    fn extract(&self, image: &Self::Image) -> Result<FeatureSet, Self::Error>;
}

Required Associated Types§

Required Methods§

Source

fn extract(&self, image: &Self::Image) -> Result<FeatureSet, Self::Error>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl FeatureExtractor for CornerFeatureExtractor

Source§

impl FeatureExtractor for HogLikeFeatureExtractor

Bridge to the classical FeatureExtractor trait so the deep extractor can be plugged into any consumer that already accepts a FeatureSet.

Source§

impl FeatureExtractor for OpticalFlowFeatureExtractor

Source§

impl FeatureExtractor for ProvidedFeatureExtractor

Source§

impl<E> FeatureExtractor for MultiScaleDeepExtractor<E>

Bridge to the classical FeatureExtractor trait — drops the per- keypoint score and yields a FeatureSet for any consumer that does not yet consume the deep interface.

Source§

impl<F, I, E> FeatureExtractor for FnFeatureExtractor<F, I, E>
where F: Fn(&I) -> Result<FeatureSet, E>,

Source§

type Image = I

Source§

type Error = E