robocar-road/vendor/gocv.io/x/gocv/mat_noprofile.go

29 lines
419 B
Go

//go:build !matprofile
// +build !matprofile
package gocv
/*
#include <stdlib.h>
#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
}