disintegration / imaging

Imaging is a simple image processing package for Go
MIT License
5.22k stars 433 forks source link

ERROR: cannot use cropped (type *image.NRGBA) as type gocv.Mat in argument to window_cropped.IMShow #139

Open hiteshhedwig opened 3 years ago

hiteshhedwig commented 3 years ago

Hi, i am new to golang. I was trying to crop a image. While, the imaging library works flawless. I am having hard time showing cropped image in a window. It gives following error

# command-line-arguments
./main.go:45:23: cannot use cropped (type *image.NRGBA) as type gocv.Mat in argument to window_cropped.IMShow

How can i change image type such that cropped image is able to be used in gocv functions as well!

Thanks!