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