this is Emgu.CV 4.x first step , confirm Mat Depth if Depth is "Cv8U"
var image = Mat.ToImage<Bgr,byte>(); var pixel = image[y,x]; image[y,x] = Bgr