This is a really nice library! I have been using it on a Raspberry Pi for real-time processing and I think the proposed pull request gives better performance.
Accepting the interface image.Image makes this function easier to use with gocv.NewMat().ToImage() and other fuctions that might implement image.Image. It skips the use of pigo.ImgToNRGBA(img), which gives a performance boost when doing real-time analysis.
This is a really nice library! I have been using it on a Raspberry Pi for real-time processing and I think the proposed pull request gives better performance.
Accepting the interface
image.Image
makes this function easier to use withgocv.NewMat().ToImage()
and other fuctions that might implementimage.Image
. It skips the use ofpigo.ImgToNRGBA(img)
, which gives a performance boost when doing real-time analysis.