pub enum ImageError {
EmptyImage {
nrows: usize,
ncols: usize,
},
EmptyAngles,
AngleCountMismatch {
sino_rows: usize,
n_angles: usize,
},
DimensionMismatch {
expected: usize,
got: usize,
},
InvalidGeometry {
reason: String,
},
}Expand description
Errors returned by the image reconstruction API.
Variants§
EmptyImage
The input image had zero rows or columns.
Fields
EmptyAngles
The angle list supplied for a reconstruction was empty.
AngleCountMismatch
The sinogram row count did not match the number of projection angles.
Fields
DimensionMismatch
A sinogram dimension did not match the expected volume geometry
(n_bins = max(nx, ny), or n_z).
InvalidGeometry
A crate::cone_beam::ConeBeamGeometry parameter was invalid: a
non-positive source/detector distance or pixel spacing, or a zero
detector pixel count / angle count.
Trait Implementations§
Source§impl Debug for ImageError
impl Debug for ImageError
Source§impl Display for ImageError
impl Display for ImageError
impl Eq for ImageError
Source§impl Error for ImageError
impl Error for ImageError
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 ImageError
impl PartialEq for ImageError
impl StructuralPartialEq for ImageError
Auto Trait Implementations§
impl Freeze for ImageError
impl RefUnwindSafe for ImageError
impl Send for ImageError
impl Sync for ImageError
impl Unpin for ImageError
impl UnsafeUnpin for ImageError
impl UnwindSafe for ImageError
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> 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