pub struct MultitrackAligner { /* private fields */ }Expand description
Aligns multiple tracks to a designated reference track using feature cross-correlation.
Implementations§
Source§impl MultitrackAligner
impl MultitrackAligner
Sourcepub fn set_reference(&mut self, track_id: &str)
pub fn set_reference(&mut self, track_id: &str)
Set the reference track ID.
Sourcepub fn align_track(
&self,
track_id: &str,
anchors: &[AlignmentAnchor],
) -> TrackAlignment
pub fn align_track( &self, track_id: &str, anchors: &[AlignmentAnchor], ) -> TrackAlignment
Align track_id to the reference using the supplied anchors.
For each anchor belonging to track_id, the method searches for the
anchor from the reference track with the matching frame index (or the
closest one) and accumulates cross-correlation evidence. The offset
with the highest aggregate correlation peak is returned.
§Panics
Panics if no reference track has been set via Self::set_reference.
Trait Implementations§
Source§impl Debug for MultitrackAligner
impl Debug for MultitrackAligner
Source§impl Default for MultitrackAligner
impl Default for MultitrackAligner
Source§fn default() -> MultitrackAligner
fn default() -> MultitrackAligner
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MultitrackAligner
impl RefUnwindSafe for MultitrackAligner
impl Send for MultitrackAligner
impl Sync for MultitrackAligner
impl Unpin for MultitrackAligner
impl UnsafeUnpin for MultitrackAligner
impl UnwindSafe for MultitrackAligner
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> 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.