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

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>[src]

Gets image resolution.

fn width(&self) -> Result<usize>[src]

Gets image width in pixels.

fn height(&self) -> Result<usize>[src]

Gets image height in pixels.

fn stride_in_bytes(&self) -> Result<usize>[src]

Gets image row stride in bytes.

fn bits_per_pixel(&self) -> Result<usize>[src]

Gets the size of pixel in bits.

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

Gets color image buffer referencing underlying raw data.

fn owned_image(&self) -> Result<DynamicImage>[src]

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

Loading content...

Implementors

Loading content...