Struct cameraunit::ROI
source · pub struct ROI {
pub x_min: u32,
pub y_min: u32,
pub width: u32,
pub height: u32,
pub bin_x: u32,
pub bin_y: u32,
}
Expand description
This structure defines a region of interest. The region of interest is defined in the un-binned pixel space.
Fields§
§x_min: u32
The minimum X coordinate (in binned pixel space).
y_min: u32
The minimum Y coordinate (in binned pixel space).
width: u32
The image width (X axis, in binned pixel space).
height: u32
The image height (Y axis, in binned pixel space).
bin_x: u32
The X binning factor.
bin_y: u32
The Y binning factor.
Trait Implementations§
impl Copy for ROI
Auto Trait Implementations§
impl Freeze for ROI
impl RefUnwindSafe for ROI
impl Send for ROI
impl Sync for ROI
impl Unpin for ROI
impl UnwindSafe for ROI
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