Skip to content

Commit 2382493

Browse files
committed
demo function
1 parent 0eea308 commit 2382493

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: go-cv/main.go

+3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,12 @@ import (
66
"go/cv/cvhelper"
77

88
// Import gocv package for OpenCV wrappers and bindings
9+
910
"gocv.io/x/gocv"
1011
)
1112

13+
// Example function that turns the image into black and white and flips it
14+
// over all the axes.
1215
func process_example(img *gocv.Mat) {
1316
gocv.CvtColor(*img, img, gocv.ColorBGRToGray)
1417
gocv.Flip(*img, img, -1)

0 commit comments

Comments
 (0)