Trait opencv::prelude::BackendWrapper
source · pub trait BackendWrapper: BackendWrapperConst {
// Required method
fn as_raw_mut_BackendWrapper(&mut self) -> *mut c_void;
// Provided methods
fn set_backend_id(&mut self, val: i32) { ... }
fn set_target_id(&mut self, val: i32) { ... }
fn copy_to_host(&mut self) -> Result<()> { ... }
fn set_host_dirty(&mut self) -> Result<()> { ... }
}
Expand description
Derivatives of this class wraps cv::Mat for different backends and targets.
Required Methods§
fn as_raw_mut_BackendWrapper(&mut self) -> *mut c_void
Provided Methods§
sourcefn set_backend_id(&mut self, val: i32)
fn set_backend_id(&mut self, val: i32)
Backend identifier.
sourcefn set_target_id(&mut self, val: i32)
fn set_target_id(&mut self, val: i32)
Target identifier.
sourcefn copy_to_host(&mut self) -> Result<()>
fn copy_to_host(&mut self) -> Result<()>
Transfer data to CPU host memory.
sourcefn set_host_dirty(&mut self) -> Result<()>
fn set_host_dirty(&mut self) -> Result<()>
Indicate that an actual data is on CPU.