From a691a20dc39eff16c597ce942062a3269c869680 Mon Sep 17 00:00:00 2001 From: daohang <357732053@126.com> Date: Wed, 22 Oct 2014 10:53:47 +0800 Subject: [PATCH] Update cxtype.go --- opencv/cxtype.go | 3 +++ 1 file changed, 3 insertions(+) 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; }