Click here to Skip to main content
15,905,148 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
Image<Bgr, Byte> srcimage = new Image<Bgr, byte>("201221230019.JPG");

C#
Image<Gray, float> btt = srcimage.Convert<Gray, float>();


it can't work ,shows the problem:"
C#
Convertion from Image<Emgu.CV.Structure.Bgr, System.Single> to Image<Emgu.CV.Structure.Gray, System.Single> is not supported by OpenCV
" ,is it because the new version doesn't support the operating? and the
C#
opencv_highgui220.dll
,
C#
opencv_imgproc220.dll
,
C#
opencv_legacy245.dll

is was correctly referenced.

What I have tried:

I also tried:
C#
Bitmap bt = new Bitmap(path);
C#
Image<Bgr, float> img11 = new Image<Bgr,float>(bt);
C#
Image<Gray, float> img2 = new Image<Gray, float>(bt1);
it also doesn't work,the same problem appeared.
Posted
Updated 11-Dec-19 18:53pm

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900