diff --git a/opencv/cxtype.go b/opencv/cxtype.go index ba46295..49b0bb8 100644 --- a/opencv/cxtype.go +++ b/opencv/cxtype.go @@ -40,6 +40,9 @@ static int CV_IS_IMAGE_(void* img) { static int myGetMatType(const CvMat* mat) { return mat->type; } +static char* myGetData(const CvMat* mat) { + return (char*)mat->data.ptr; +} static int myGetMatNDType(const CvMatND* mat) { return mat->type; }