pub struct MultiScaleDeepExtractor<E> {
pub inner: E,
pub config: MultiScaleDeepConfig,
}Expand description
Wraps a single-scale DeepFeatureExtractor with image pyramid
detection so it can recover features across multiple scales. Each
keypoint produced by an octave is rescaled into the original image’s
pixel coordinates, so downstream consumers (essential RANSAC, PnP,
scanner) can treat the merged output exactly like a single-scale
extraction. The descriptor itself is unchanged from the inner
extractor’s output: at coarser octaves the descriptor patch covers a
larger world-space region, which is exactly the scale invariance
classical multi-scale frontends rely on.
Fields§
§inner: E§config: MultiScaleDeepConfigImplementations§
Source§impl<E> MultiScaleDeepExtractor<E>
impl<E> MultiScaleDeepExtractor<E>
pub const fn new( inner: E, config: MultiScaleDeepConfig, ) -> MultiScaleDeepExtractor<E>
Source§impl MultiScaleDeepExtractor<HogLikeFeatureExtractor>
impl MultiScaleDeepExtractor<HogLikeFeatureExtractor>
Sourcepub fn describe_at(
&self,
image: &GrayscaleImage,
cx: usize,
cy: usize,
) -> Vec<Vec<f32>>
pub fn describe_at( &self, image: &GrayscaleImage, cx: usize, cy: usize, ) -> Vec<Vec<f32>>
Compute HOG descriptors at a caller-specified keypoint across the configured image pyramid. Returned descriptors are ordered from finest to coarsest octave. This is useful when a caller wants multi-scale descriptors anchored to an external detector’s keypoint locations, such as COLMAP SIFT keypoints.
Trait Implementations§
Source§impl<E> Clone for MultiScaleDeepExtractor<E>where
E: Clone,
impl<E> Clone for MultiScaleDeepExtractor<E>where
E: Clone,
Source§fn clone(&self) -> MultiScaleDeepExtractor<E>
fn clone(&self) -> MultiScaleDeepExtractor<E>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<E> Debug for MultiScaleDeepExtractor<E>where
E: Debug,
impl<E> Debug for MultiScaleDeepExtractor<E>where
E: Debug,
Source§impl<E> DeepFeatureExtractor for MultiScaleDeepExtractor<E>where
E: DeepFeatureExtractor<Image = GrayscaleImage>,
impl<E> DeepFeatureExtractor for MultiScaleDeepExtractor<E>where
E: DeepFeatureExtractor<Image = GrayscaleImage>,
type Image = GrayscaleImage
type Error = <E as DeepFeatureExtractor>::Error
fn extract_deep( &self, image: &<MultiScaleDeepExtractor<E> as DeepFeatureExtractor>::Image, ) -> Result<DeepFeatureSet, <MultiScaleDeepExtractor<E> as DeepFeatureExtractor>::Error>
Source§impl<E> Default for MultiScaleDeepExtractor<E>where
E: Default,
impl<E> Default for MultiScaleDeepExtractor<E>where
E: Default,
Source§fn default() -> MultiScaleDeepExtractor<E>
fn default() -> MultiScaleDeepExtractor<E>
Source§impl<E> FeatureExtractor for MultiScaleDeepExtractor<E>where
E: DeepFeatureExtractor<Image = GrayscaleImage>,
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.
impl<E> FeatureExtractor for MultiScaleDeepExtractor<E>where
E: DeepFeatureExtractor<Image = GrayscaleImage>,
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.
type Image = GrayscaleImage
type Error = <E as DeepFeatureExtractor>::Error
fn extract( &self, image: &<MultiScaleDeepExtractor<E> as FeatureExtractor>::Image, ) -> Result<FeatureSet, <MultiScaleDeepExtractor<E> as FeatureExtractor>::Error>
Source§impl<E> PartialEq for MultiScaleDeepExtractor<E>where
E: PartialEq,
impl<E> PartialEq for MultiScaleDeepExtractor<E>where
E: PartialEq,
impl<E> StructuralPartialEq for MultiScaleDeepExtractor<E>where
E: PartialEq,
Auto Trait Implementations§
impl<E> Forget for MultiScaleDeepExtractor<E>
impl<E> Freeze for MultiScaleDeepExtractor<E>where
E: Freeze,
impl<E> Move for MultiScaleDeepExtractor<E>
impl<E> RefUnwindSafe for MultiScaleDeepExtractor<E>where
E: RefUnwindSafe,
impl<E> Send for MultiScaleDeepExtractor<E>where
E: Send,
impl<E> Sync for MultiScaleDeepExtractor<E>where
E: Sync,
impl<E> Unpin for MultiScaleDeepExtractor<E>where
E: Unpin,
impl<E> UnsafeUnpin for MultiScaleDeepExtractor<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for MultiScaleDeepExtractor<E>where
E: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.