pub enum IntensityMetricError {
ShapeMismatch {
reference: (usize, usize),
candidate: (usize, usize),
},
MaskShapeMismatch {
actual: (usize, usize),
expected: (usize, usize),
},
EmptyValidMask,
UnsupportedScalar {
input: &'static str,
},
NonFinite {
input: &'static str,
},
ZeroReferenceNormalization {
metric: &'static str,
},
ZeroVariance,
NegativeIntensity {
metric: &'static str,
},
InvalidDataRange,
InvalidEpsilon,
SsimImageTooSmall {
shape: (usize, usize),
},
NoValidSsimWindow,
}Expand description
Errors returned by atomic intensity metrics.
Variants§
ShapeMismatch
MaskShapeMismatch
EmptyValidMask
UnsupportedScalar
NonFinite
ZeroReferenceNormalization
ZeroVariance
NegativeIntensity
InvalidDataRange
InvalidEpsilon
SsimImageTooSmall
NoValidSsimWindow
Trait Implementations§
Source§impl Debug for IntensityMetricError
impl Debug for IntensityMetricError
Source§impl Display for IntensityMetricError
impl Display for IntensityMetricError
Source§impl Error for IntensityMetricError
impl Error for IntensityMetricError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for IntensityMetricError
impl PartialEq for IntensityMetricError
Source§fn eq(&self, other: &IntensityMetricError) -> bool
fn eq(&self, other: &IntensityMetricError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for IntensityMetricError
Auto Trait Implementations§
impl Freeze for IntensityMetricError
impl RefUnwindSafe for IntensityMetricError
impl Send for IntensityMetricError
impl Sync for IntensityMetricError
impl Unpin for IntensityMetricError
impl UnsafeUnpin for IntensityMetricError
impl UnwindSafe for IntensityMetricError
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