pub struct OmrGroundTruthPair { /* private fields */ }Expand description
A score read by optical music recognition and its ground truth, each
ready to be corrected: music21’s OmrGroundTruthPair.
Implementations§
Source§impl OmrGroundTruthPair
impl OmrGroundTruthPair
Sourcepub fn omr(&self) -> &ScoreCorrector
pub fn omr(&self) -> &ScoreCorrector
The score read by optical music recognition.
Sourcepub fn omr_mut(&mut self) -> &mut ScoreCorrector
pub fn omr_mut(&mut self) -> &mut ScoreCorrector
The same, to be corrected.
Sourcepub fn ground(&self) -> &ScoreCorrector
pub fn ground(&self) -> &ScoreCorrector
The ground truth.
Sourcepub fn differences(&self) -> Result<usize>
pub fn differences(&self) -> Result<usize>
The edit distances between the measure rhythms of each part of the
recognised score and those of the same part of the ground truth,
summed: music21’s getDifferences.
§Errors
A ground truth with fewer parts, which music21 fails on.
Trait Implementations§
Source§impl Clone for OmrGroundTruthPair
impl Clone for OmrGroundTruthPair
Auto Trait Implementations§
impl Freeze for OmrGroundTruthPair
impl RefUnwindSafe for OmrGroundTruthPair
impl Send for OmrGroundTruthPair
impl Sync for OmrGroundTruthPair
impl Unpin for OmrGroundTruthPair
impl UnsafeUnpin for OmrGroundTruthPair
impl UnwindSafe for OmrGroundTruthPair
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 more