pub struct Image2D { /* private fields */ }
Implementations§
source§impl Image2D
impl Image2D
pub fn default() -> Image2D
sourcepub fn new(src: &UMat, norm: bool, alias: bool) -> Result<Image2D>
pub fn new(src: &UMat, norm: bool, alias: bool) -> Result<Image2D>
Parameters
- src: UMat object from which to get image properties and data
- norm: flag to enable the use of normalized channel data types
- alias: flag indicating that the image should alias the src UMat. If true, changes to the image or src will be reflected in both objects.
C++ default parameters
- norm: false
- alias: false
pub fn copy(i: &Image2D) -> Result<Image2D>
pub fn copy_mut(unnamed: Image2D) -> Image2D
sourcepub fn can_create_alias(u: &UMat) -> Result<bool>
pub fn can_create_alias(u: &UMat) -> Result<bool>
Indicates if creating an aliased image should succeed. Depends on the underlying platform and the dimensions of the UMat.