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

28 lines
396 B
Go
Raw Permalink Normal View History

2019-12-18 23:08:07 +00:00
// +build !matprofile
package gocv
/*
#include <stdlib.h>
#include "core.h"
*/
import "C"
2021-01-17 18:07:37 +00:00
// addMatToProfile does nothing if matprofile tag is not set.
func addMatToProfile(p C.Mat) {
return
}
2019-12-18 23:08:07 +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
2021-01-17 18:07:37 +00:00
m.d = nil
2019-12-18 23:08:07 +00:00
return nil
}