Skip to content

Allow creating CvMat over an existing buffer #426

Description

@GoogleCodeExporter
Currently, to create, say a NV12 image, one needs to do these 2 steps:
opencv_core.CvMat nv21Image = opencv_core.CvMat.create((int)(1.5 * height), 
width, opencv_core.CV_8UC2);
nv21Image.getByteBuffer().put(image_data); // byte[] image_data

Most of the time though, the image is placed into the same buffer by the 
caller. So, if we wrapped opencv_core.CvMat over an existing buffer, this would 
save some time on not having to copy the bytes over.

Original issue reported on code.google.com by eug...@parsable.com on 10 Feb 2014 at 9:52

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions