pub struct PairedNoReference<M>(/* private fields */);Expand description
Explicitly run a one-image metric on both inputs. Candidate outputs keep
their keys; reference outputs append _ref. Only candidate maps are
requested. Preparation caches the actual reference assessment once.
Implementations§
Source§impl<M> PairedNoReference<M>
impl<M> PairedNoReference<M>
Trait Implementations§
Source§impl<M: NoReferenceMetric> Metric for PairedNoReference<M>
impl<M: NoReferenceMetric> Metric for PairedNoReference<M>
Source§type Output = PairedEvaluation<<M as NoReferenceMetric>::Output>
type Output = PairedEvaluation<<M as NoReferenceMetric>::Output>
Native structured assessment; no mandatory erasure or boxing.
Source§impl<M: NoReferenceMetric> PrepareReference for PairedNoReference<M>
impl<M: NoReferenceMetric> PrepareReference for PairedNoReference<M>
Source§type Prepared<'a> = PairedReference<'a, M>
where
Self: 'a
type Prepared<'a> = PairedReference<'a, M> where Self: 'a
Retained work may borrow the scorer, but not the input or preparation
pulse. Each subsequent evaluation receives fresh controls.
Source§fn warm_reference(
&mut self,
r: &PixelView<'_>,
opts: EvalOpts<'_>,
) -> MetricResult<Self::Prepared<'_>>
fn warm_reference( &mut self, r: &PixelView<'_>, opts: EvalOpts<'_>, ) -> MetricResult<Self::Prepared<'_>>
Prepare work preserving cold-result scalar bits.
Auto Trait Implementations§
impl<M> Freeze for PairedNoReference<M>where
M: Freeze,
impl<M> RefUnwindSafe for PairedNoReference<M>where
M: RefUnwindSafe,
impl<M> Send for PairedNoReference<M>where
M: Send,
impl<M> Sync for PairedNoReference<M>where
M: Sync,
impl<M> Unpin for PairedNoReference<M>where
M: Unpin,
impl<M> UnsafeUnpin for PairedNoReference<M>where
M: UnsafeUnpin,
impl<M> UnwindSafe for PairedNoReference<M>where
M: 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