pub struct Image<'a, T> { /* private fields */ }
Expand description
An Image as it is captured by the camera.
Implementations§
Source§impl<'a, T> Image<'a, T>
impl<'a, T> Image<'a, T>
Sourcepub fn pixel(&self, x: usize, y: usize) -> Option<&T>
pub fn pixel(&self, x: usize, y: usize) -> Option<&T>
Get a Pixel from the image.
§Arguments
x
: Horizontal coordinate of the requested pixel.y
: Vertical coordinate of the requested pixel.
returns: Option<&T> A reference to the pixel
Sourcepub fn black_level(&self) -> u32
pub fn black_level(&self) -> u32
Image black level
Sourcepub fn padding_x(&self) -> u32
pub fn padding_x(&self) -> u32
Number of extra bytes provided at the end of each line for alignment
Sourcepub fn absolute_offset_x(&self) -> u32
pub fn absolute_offset_x(&self) -> u32
Horizontal offset from the origin of the sensor to the first pixel in this image
Sourcepub fn absolute_offset_y(&self) -> u32
pub fn absolute_offset_y(&self) -> u32
Vertical offset from the origin of the sensor to the first line in this image
Sourcepub fn transport_format(&self) -> Type
pub fn transport_format(&self) -> Type
Current format of the pixels on transport layer
Sourcepub fn downsampling_x(&self) -> u32
pub fn downsampling_x(&self) -> u32
Horizontal downsampling
Sourcepub fn downsampling_y(&self) -> u32
pub fn downsampling_y(&self) -> u32
Vertical downsampling
Sourcepub fn exposure_time_us(&self) -> u32
pub fn exposure_time_us(&self) -> u32
Exposure time for this image in us
Sourcepub fn acq_nframe(&self) -> u32
pub fn acq_nframe(&self) -> u32
Aquisition Frame Number. Reset only on acquisition start.
Sourcepub fn image_user_data(&self) -> u32
pub fn image_user_data(&self) -> u32
Image user data which can be set using [Camera::set_image_user_data]
Sourcepub fn timestamp_raw(&self) -> u64
pub fn timestamp_raw(&self) -> u64
Raw 64-bit timestamp from the camera. Interpretation of this value differs between camera series. xiQ, xiD: 40-bit microsecond number - (overlaps after 305 hours) xiC, xiB, xiT, xiX: 64-bit 4 nanosecond number (overlaps after 2339 years)
Trait Implementations§
Source§impl<P> From<Image<'_, <P as Pixel>::Subpixel>> for ImageBuffer<P, Vec<P::Subpixel>>where
P: Pixel,
impl<P> From<Image<'_, <P as Pixel>::Subpixel>> for ImageBuffer<P, Vec<P::Subpixel>>where
P: Pixel,
impl<'a, T> Send for Image<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for Image<'a, T>
impl<'a, T> RefUnwindSafe for Image<'a, T>where
T: RefUnwindSafe,
impl<'a, T> !Sync for Image<'a, T>
impl<'a, T> Unpin for Image<'a, T>
impl<'a, T> UnwindSafe for Image<'a, T>where
T: RefUnwindSafe,
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> 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 more