Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (17 sloc) 280 Bytes
// +build !matprofile
package gocv
#include <stdlib.h>
#include "core.h"
import "C"
// 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 {
m.p = nil
return nil
You can’t perform that action at this time.