Enum MvgError

Source
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

Available on crate feature 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.

Fields

§source: Error

The underlying I/O error.

§

SerdeYaml

YAML serialization/deserialization error.

Fields

§source: Error

The underlying YAML parsing error.

§

SerdeJson

JSON serialization/deserialization error.

Fields

§source: Error

The underlying JSON parsing error.

§

SvgError

SVG rendering or processing error.

Fields

§error: &'static str

The SVG error message.

§

PinvError

Pseudo-inverse calculation error.

Fields

§error: String

The pseudo-inverse error message.

§

CamGeomError

Error from the cam-geom crate.

Fields

§source: Error

The underlying cam-geom error.

§

OpencvRosError

Error from the opencv-ros-camera crate.

Fields

§source: Error

The underlying opencv-ros-camera error.

Trait Implementations§

Source§

impl Debug for MvgError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for MvgError

Source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for MvgError

Source§

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

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<Error> for MvgError

Source§

fn from(source: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for MvgError

Source§

fn from(source: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for MvgError

Source§

fn from(source: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for MvgError

Source§

fn from(source: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for MvgError

Source§

fn from(source: Error) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Az for T

Source§

fn az<Dst>(self) -> Dst
where T: Cast<Dst>,

Casts the value.
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<Src, Dst> CastFrom<Src> for Dst
where Src: Cast<Dst>,

Source§

fn cast_from(src: Src) -> Dst

Casts the value.
Source§

impl<T> CheckedAs for T

Source§

fn checked_as<Dst>(self) -> Option<Dst>
where T: CheckedCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> CheckedCastFrom<Src> for Dst
where Src: CheckedCast<Dst>,

Source§

fn checked_cast_from(src: Src) -> Option<Dst>

Casts the value.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<Src, Dst> LosslessTryInto<Dst> for Src
where Dst: LosslessTryFrom<Src>,

Source§

fn lossless_try_into(self) -> Option<Dst>

Performs the conversion.
Source§

impl<Src, Dst> LossyInto<Dst> for Src
where Dst: LossyFrom<Src>,

Source§

fn lossy_into(self) -> Dst

Performs the conversion.
Source§

impl<T> OverflowingAs for T

Source§

fn overflowing_as<Dst>(self) -> (Dst, bool)
where T: OverflowingCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> OverflowingCastFrom<Src> for Dst
where Src: OverflowingCast<Dst>,

Source§

fn overflowing_cast_from(src: Src) -> (Dst, bool)

Casts the value.
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> SaturatingAs for T

Source§

fn saturating_as<Dst>(self) -> Dst
where T: SaturatingCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> SaturatingCastFrom<Src> for Dst
where Src: SaturatingCast<Dst>,

Source§

fn saturating_cast_from(src: Src) -> Dst

Casts the value.
Source§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

Source§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Source§

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

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
Source§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> UnwrappedAs for T

Source§

fn unwrapped_as<Dst>(self) -> Dst
where T: UnwrappedCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> UnwrappedCastFrom<Src> for Dst
where Src: UnwrappedCast<Dst>,

Source§

fn unwrapped_cast_from(src: Src) -> Dst

Casts the value.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> WrappingAs for T

Source§

fn wrapping_as<Dst>(self) -> Dst
where T: WrappingCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> WrappingCastFrom<Src> for Dst
where Src: WrappingCast<Dst>,

Source§

fn wrapping_cast_from(src: Src) -> Dst

Casts the value.