We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
type FileExt string const( PngFileExt FileExt = ".png" JPEGFileExt FileExt = ".jpg" ... ) func IMEncode(fileExt string, img Mat) (buf []byte, err error) { cfileExt := C.CString(fileExt) defer C.free(unsafe.Pointer(cfileExt)) b := C.Image_IMEncode(cfileExt, img.Ptr()) defer C.ByteArray_Release(b) return toGoBytes(b), nil }
I use IMEncode("png", img) evoke a panic
IMEncode("png", img)
The text was updated successfully, but these errors were encountered:
Thanks for the PR to address this, it is now in the dev branch. I will close this issue once the next release goes out.
dev
Sorry, something went wrong.
get
No branches or pull requests
I use
IMEncode("png", img)
evoke a panicThe text was updated successfully, but these errors were encountered: