[−][src]Trait realsense_rust::frame::VideoFrameEx
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.