2023-10-15 09:53:35 +00:00
|
|
|
//go:build !matprofile
|
2022-08-21 20:31:19 +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
|
|
|
|
}
|
|
|
|
|
|
|
|
// 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
|
|
|
|
}
|