Conversion to grayscale using emguCV in C#

后端 未结 4 564
天涯浪人
天涯浪人 2021-01-02 04:12

I am new to EmguCV. I want to convert an rgb image into gray scale. For the conversion I have used the code

Image grayImage = ColordImage.Co         


        
4条回答
  •  渐次进展
    2021-01-02 04:42

    One simple way is to pass BitMap of color image in the constructor;

    Image inputImage = //your original bgr image
    Image result = new Image(inputImage.Bitmap);
    

提交回复
热议问题