Пример #1
0
func Rectangle(image *IplImage, pt1, pt2 Point, color Scalar, thickness, lineType, shift int) {
	C.cvRectangle(
		unsafe.Pointer(image),
		pt1.AsCvPoint(),
		pt2.AsCvPoint(),
		C.CvScalar(color),
		C.int(thickness),
		C.int(lineType),
		C.int(shift))
}
Пример #2
0
func Circle(image *IplImage, center Point, radius int, color Scalar, thickness, lineType, shift int) {
	C.cvCircle(
		unsafe.Pointer(image),
		center.AsCvPoint(),
		C.int(radius),
		C.CvScalar(color),
		C.int(thickness),
		C.int(lineType),
		C.int(shift),
	)
}