I'm working currently on a project where I use EmguCV 4.2
I need to use Canny function:
gray=gray.Canny(50, 200);
And it's throwing error:
_src.depth()==CV_8U
I noticed that exception occurs only if I use CvInvoke.Threshold() on my image earlier
CvInvoke.Threshold(skeleton,img,0,255,Emgu.CV.CvEnum.ThresholdType.Binary);
I'm wondering why is this happening, without the Threshold() function everything works. Is this function changing the depth of my image somehow? How do I convert it back to use the Canny() function without problems?
Thanks in advance.