pub struct FeatureDetector { /* private fields */ }Implementations§
Source§impl FeatureDetector
impl FeatureDetector
pub fn new(detector_type: FeatureType) -> Self
Sourcepub fn with_max_features(self, max: usize) -> Self
pub fn with_max_features(self, max: usize) -> Self
Sets the maximum number of features to detect.
Sourcepub fn detect<B: Backend>(&self, image: &Image<B>) -> Result<Vec<KeyPoint>>
pub fn detect<B: Backend>(&self, image: &Image<B>) -> Result<Vec<KeyPoint>>
Detects keypoints in an image using the FAST corner detector. FAST checks a circle of 16 pixels around each candidate point and requires at least 12 contiguous pixels to be brighter or darker.
Sourcepub fn compute<B: Backend>(
&self,
image: &Image<B>,
keypoints: &[KeyPoint],
) -> Result<Tensor<B, 2>>
pub fn compute<B: Backend>( &self, image: &Image<B>, keypoints: &[KeyPoint], ) -> Result<Tensor<B, 2>>
Computes ORB descriptors for detected keypoints.
ORB uses BRIEF descriptors with rotation invariance via intensity centroid.
Returns a descriptor tensor of shape [NumKeyPoints, DescriptorDim].
Auto Trait Implementations§
impl Freeze for FeatureDetector
impl RefUnwindSafe for FeatureDetector
impl Send for FeatureDetector
impl Sync for FeatureDetector
impl Unpin for FeatureDetector
impl UnsafeUnpin for FeatureDetector
impl UnwindSafe for FeatureDetector
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
Converts
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>
Converts
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 more