package
0.0.0-20190115070742-a4fe8ec027cc
Repository: https://github.com/lazywei/go-opencv.git
Documentation: pkg.go.dev

# README

Go OpenCV (GOlang openCV)

Wrap the core types in OpenCV.

Supporting Types and Examples

OpenCV C++Go OpenCVConstructor
cv::Point2iGcvPoint2iNewGcvPoint2i(x, y int)
cv::Point2fGcvPoint2f32_NewGcvPoint2f32(x, y float64)
cv::Point2dGcvPoint2f64_NewGcvPoint2f64(x, y float64)
cv::Point3iGcvPoint3iNewGcvPoint3i(x, y, z int)
cv::Point3fGcvPoint3f32_NewGcvPoint3f32(x, y, z float64)
cv::Point3dGcvPoint3f64_NewGcvPoint3f64(x, y, z float64)
cv::Size2iGcvSize2iNewGcvSize2i(x, y int)
cv::Size2fGcvSize2f32_NewGcvSize2f64(x, y float64)
cv::Size2dGcvSize2f64_NewGcvSize2f64(x, y float64)

Note for Renamed Types

Some of the types are renamed to *_. The reason is that we'd like to wrap a better interface for them.
For example, the original NewGcvPoint2f32 takes strictly two float32, and we are not able to pass float64 or int, which doesn't make too much sense.
After wrapping an extra level, we are now able to pass int, float32, and float64 to these methods.
Also note that renaming doesn't affect any usage, except you are manipulating the types yourself.