pub enum MvgError {
Show 21 variants
UnknownDistortionModel,
RectificationMatrixNotSupported,
NotEnoughPoints,
InvalidShape,
UnknownCamera,
SvdFailed,
ParseError,
InvalidRotationMatrix,
UnsupportedVersion,
InvalidRectMatrix,
UnsupportedType,
RerunUnsupportedIntrinsics,
MultipleValidRootsFound,
NoValidRootFound,
Io {
source: Error,
},
SerdeYaml {
source: Error,
},
SerdeJson {
source: Error,
},
SvgError {
error: &'static str,
},
PinvError {
error: String,
},
CamGeomError {
source: Error,
},
OpencvRosError {
source: Error,
},
}Expand description
Error types that can occur during multi-view geometry operations.
Variants§
UnknownDistortionModel
Unknown or unsupported lens distortion model encountered.
This error occurs when trying to work with a camera distortion model that is not supported by the current implementation.
RectificationMatrixNotSupported
Rectification matrix is not supported by the current implementation.
Rectification matrices are used in stereo vision but are not fully supported by all operations in this crate.
NotEnoughPoints
Insufficient points provided for the geometric operation.
Many operations like triangulation require a minimum number of observations. For example, 3D triangulation needs at least 2 camera views.
InvalidShape
Invalid matrix or array dimensions for the operation.
This occurs when input data has incompatible dimensions for the requested mathematical operation.
UnknownCamera
Camera name not found in the multi-camera system.
Thrown when referencing a camera by name that doesn’t exist in the
current MultiCameraSystem.
SvdFailed
Singular Value Decomposition failed during matrix operations.
This can occur during camera calibration or 3D reconstruction when the input data is degenerate or ill-conditioned.
ParseError
Generic parsing error for configuration files or data formats.
InvalidRotationMatrix
Invalid rotation matrix (not orthogonal or determinant ≠ 1).
Rotation matrices must be orthogonal with determinant +1 to represent valid 3D rotations.
UnsupportedVersion
Unsupported file format or schema version.
InvalidRectMatrix
Invalid rectification matrix parameters.
UnsupportedType
Unsupported camera or parameter type.
RerunUnsupportedIntrinsics
rerun-io only.Rerun.io does not support this camera intrinsics model.
Only available when the rerun-io feature is enabled.
Some complex distortion models cannot be exported to rerun.io format.
MultipleValidRootsFound
Multiple valid mathematical roots found where only one was expected.
This can occur in polynomial root-finding algorithms used in geometric computations.
NoValidRootFound
No valid mathematical root found for the equation.
This indicates that the geometric problem has no solution with the given constraints.
Io
I/O error during file operations.
SerdeYaml
YAML serialization/deserialization error.
SerdeJson
JSON serialization/deserialization error.
SvgError
SVG rendering or processing error.
PinvError
Pseudo-inverse calculation error.
CamGeomError
Error from the cam-geom crate.
OpencvRosError
Error from the opencv-ros-camera crate.
Trait Implementations§
Source§impl Error for MvgError
impl Error for MvgError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Auto Trait Implementations§
impl Freeze for MvgError
impl !RefUnwindSafe for MvgError
impl Send for MvgError
impl Sync for MvgError
impl Unpin for MvgError
impl !UnwindSafe for MvgError
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
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
Source§fn lossless_try_into(self) -> Option<Dst>
fn lossless_try_into(self) -> Option<Dst>
Source§impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
Source§fn lossy_into(self) -> Dst
fn lossy_into(self) -> Dst
Source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
Source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
Source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
Source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
Source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
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>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
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
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.