Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是图像处理的新手,我将 emgu cv 与 c# 一起使用,但我遇到了问题。如何从图像的 RGB 值中获取 R、G、B 像素值?
以下是获取 RGB 值所需的内容:
//load image Image<Bgr, byte> image = new Image<Bgr, byte>("sample.png"); //get the pixel from [row,col] = 24,24 Bgr pixel = image[24, 24]; //get the b,g,r values double b = pixel.Blue; double g = pixel.Green; double r = pixel.Red;