//go:build !matprofile // +build !matprofile package gocv /* #include #include "core.h" */ import "C" // addMatToProfile does nothing if matprofile tag is not set. func addMatToProfile(p C.Mat) { return } // newMat returns a new Mat from a C Mat func newMat(p C.Mat) Mat { return Mat{p: p} } // Close the Mat object. func (m *Mat) Close() error { C.Mat_Close(m.p) m.p = nil m.d = nil return nil }