Click here to Skip to main content
15,893,564 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
hello everyone,,

i am feeling difficulty in applying sobel operator in c# using emguCv.
your kind comments would be quite valuable help for me in this regard.

here is the code::

XML
Image<Bgr, Byte> imOriginal;
Image<Bgr, Byte> imgProcessed;
Image<Gray, Byte> imgProcessed1;
Image<Gray, Byte> imEdge;



XML
imgProcessed = imgProcessed.SmoothGaussian(9);
 imgProcessed1= imgProcessed.Convert<Gray,byte>();
 imEdge = (imgProcessed1.Sobel(1, 0, 3));



Error 2
Cannot implicitly convert type 'Emgu.CV.Image<emgu.cv.structure.gray,float>' to 'Emgu.CV.Image<emgu.cv.structure.gray,byte>

thanx in advance.

regards
baltee
Posted

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