2024-04-02 17:24:34 +00:00
|
|
|
//go:build !matprofile
|
2020-01-04 13:10:36 +00:00
|
|
|
// +build !matprofile
|
|
|
|
|
|
|
|
package gocv
|
|
|
|
|
|
|
|
/*
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include "core.h"
|
|
|
|
*/
|
|
|
|
import "C"
|
|
|
|
|
2021-09-01 20:08:47 +00:00
|
|
|
// addMatToProfile does nothing if matprofile tag is not set.
|
|
|
|
func addMatToProfile(p C.Mat) {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
2020-01-04 13:10:36 +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-09-01 20:08:47 +00:00
|
|
|
m.d = nil
|
2020-01-04 13:10:36 +00:00
|
|
|
return nil
|
|
|
|
}
|