什么是 OpenCV 在 EmguCV .at<uchar>(cy, cx) 中的等价物?

What is OpenCV's equivalent in EmguCV .at<uchar>(cy, cx)?

我是c++和opencv的新手,我熟悉的语言是c#。 找到了某种代码,在这段代码中有一行:

dst.at<uchar>(cy, cx) = 255;

其中 dst 是目标图像,在 C# 中是 Image<Gray, Byte>。据我所知,这个字节中的一行写了一些颜色。

谁能给我解释一下这一行以及它在 emgucv 中的等效项?

该线用于改变像素强度。

这是我猜的灰度强度。

试试这个;

Image<Gray,Byte> imageGray; // Assume you have this Object
imageGray[x, y] = new Gray(255);

对于灰度,似乎只有 x ,y ....但是对于彩色,似乎顺序是 y,x。

搜索 灰度图像

http://www.emgu.com/wiki/index.php/Working_with_Images