[][src]Trait realsense_rust::frame::VideoFrameEx

pub trait VideoFrameEx where
    Self: GenericFrameEx
{ fn resolution(&self) -> Result<Resolution> { ... }
fn width(&self) -> Result<usize> { ... }
fn height(&self) -> Result<usize> { ... }
fn stride_in_bytes(&self) -> Result<usize> { ... }
fn bits_per_pixel(&self) -> Result<usize> { ... }
fn ref_image(&self) -> Result<Rs2Image<'_>> { ... }
fn owned_image(&self) -> Result<DynamicImage> { ... } }

The trait provides methods on frames with video data.

Provided methods

fn resolution(&self) -> Result<Resolution>

Gets image resolution.

fn width(&self) -> Result<usize>

Gets image width in pixels.

fn height(&self) -> Result<usize>

Gets image height in pixels.

fn stride_in_bytes(&self) -> Result<usize>

Gets image row stride in bytes.

fn bits_per_pixel(&self) -> Result<usize>

Gets the size of pixel in bits.

fn ref_image(&self) -> Result<Rs2Image<'_>>

Gets color image buffer referencing underlying raw data.

fn owned_image(&self) -> Result<DynamicImage>

Builds an owned image. Note that it incurs memory copy.

Loading content...

Implementors

impl VideoFrameEx for DepthFrame[src]

impl VideoFrameEx for DisparityFrame[src]

impl VideoFrameEx for VideoFrame[src]

Loading content...