pub struct ImageLocalizer<X, P = LocalizationPipeline> {
pub extractor: X,
pub pipeline: P,
}Fields§
§extractor: X§pipeline: PImplementations§
Source§impl<X> ImageLocalizer<X>where
X: FeatureExtractor,
impl<X> ImageLocalizer<X>where
X: FeatureExtractor,
pub fn new(extractor: X) -> ImageLocalizer<X>
Source§impl<X, P> ImageLocalizer<X, P>where
X: FeatureExtractor,
impl<X, P> ImageLocalizer<X, P>where
X: FeatureExtractor,
pub const fn with_pipeline(extractor: X, pipeline: P) -> ImageLocalizer<X, P>
Source§impl<X, M, S, E> ImageLocalizer<X, LocalizationPipeline<M, S, E>>where
X: FeatureExtractor,
M: Matcher + Clone,
S: CandidateSelector + Clone,
E: RobustPoseEstimator + Clone,
impl<X, M, S, E> ImageLocalizer<X, LocalizationPipeline<M, S, E>>where
X: FeatureExtractor,
M: Matcher + Clone,
S: CandidateSelector + Clone,
E: RobustPoseEstimator + Clone,
pub fn localize_image( &self, image: &<X as FeatureExtractor>::Image, camera: Camera, map: &VisualMap, ) -> Result<LocalizationResult, <X as FeatureExtractor>::Error>
pub fn localize_image_with_descriptor_store( &self, image: &<X as FeatureExtractor>::Image, camera: Camera, map: &VisualMap, descriptor_store: &LandmarkDescriptorStore, ) -> Result<LocalizationResult, <X as FeatureExtractor>::Error>
pub fn localize_image_with_provider<P2>(
&self,
image: &<X as FeatureExtractor>::Image,
camera: Camera,
provider: &P2,
) -> Result<LocalizationResult, <X as FeatureExtractor>::Error>where
P2: MapProvider + DescriptorProvider,
pub fn localize_frame_image( &self, frame_id: u64, camera_id: u64, image: &<X as FeatureExtractor>::Image, map: &VisualMap, ) -> Result<FrameLocalizationResult, <X as FeatureExtractor>::Error>
pub fn localize_frame_image_with_descriptor_store( &self, frame_id: u64, camera_id: u64, image: &<X as FeatureExtractor>::Image, map: &VisualMap, descriptor_store: &LandmarkDescriptorStore, ) -> Result<FrameLocalizationResult, <X as FeatureExtractor>::Error>
pub fn localize_frame_image_with_provider<P2>(
&self,
frame_id: u64,
camera_id: u64,
image: &<X as FeatureExtractor>::Image,
provider: &P2,
) -> Result<FrameLocalizationResult, <X as FeatureExtractor>::Error>where
P2: MapProvider + DescriptorProvider,
Trait Implementations§
Source§impl<X, P> Clone for ImageLocalizer<X, P>
impl<X, P> Clone for ImageLocalizer<X, P>
Source§fn clone(&self) -> ImageLocalizer<X, P>
fn clone(&self) -> ImageLocalizer<X, P>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<X, P> Forget for ImageLocalizer<X, P>
impl<X, P> Freeze for ImageLocalizer<X, P>
impl<X, P> Move for ImageLocalizer<X, P>
impl<X, P> RefUnwindSafe for ImageLocalizer<X, P>where
X: RefUnwindSafe,
P: RefUnwindSafe,
impl<X, P> Send for ImageLocalizer<X, P>
impl<X, P> Sync for ImageLocalizer<X, P>
impl<X, P> Unpin for ImageLocalizer<X, P>
impl<X, P> UnsafeUnpin for ImageLocalizer<X, P>where
X: UnsafeUnpin,
P: UnsafeUnpin,
impl<X, P> UnwindSafe for ImageLocalizer<X, P>where
X: UnwindSafe,
P: 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
Mutably borrows from an owned value. Read more
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> ⓘ
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 moreSource§impl<T> Pointable for T
impl<T> Pointable 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>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
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
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.