commit
fcf232bd5d
1 changed files with 3 additions and 0 deletions
|
|
@ -324,6 +324,9 @@ type Mat C.CvMat
|
|||
func (mat *Mat) Type() int {
|
||||
return int(C.myGetMatType((*C.CvMat)(mat)))
|
||||
}
|
||||
func (mat *Mat) GetData() []byte {
|
||||
return C.GoBytes(unsafe.Pointer(C.myGetData((*C.CvMat)(mat))), C.int(mat.step))
|
||||
}
|
||||
func (mat *Mat) Step() int {
|
||||
return int(mat.step)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue