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

28 lines
396 B
Go
Raw Permalink Normal View History

2019-12-29 17:39:08 +00:00
// +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
}
2019-12-29 17:39:08 +00:00
// 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
2019-12-29 17:39:08 +00:00
return nil
}