Conversion to grayscale using emguCV in C#

后端 未结 4 575
天涯浪人
天涯浪人 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:43

    It may depend on the type of colour that ColordImage is.

    For instance, this works:

    Capture cap = new Capture(1);
    Image  ColordImage = cap.QueryFrame();
    Image  grayImage = ColordImage.Convert();
    imageBox1.Image = grayImage;
    

    If you could supply more of your code, it might become more obvious what's going on.

提交回复
热议问题