i wonder if it is possible with Emgu Cv to chnage image from BGR to binary image as i try to change the BGR to gray
Image<Bgr, byte> image_pass = new Image<Bgr, byte>(bt1);
i wonder if it is possible with Emgu Cv to chnage image from BGR to binary image as i try to change the BGR to gray
Image<Bgr, byte> image_pass = new Image<Bgr, byte>(bt1);
Yes, it is possible. Maybe give this a try:
Where
x
is your threshold value, and255
the maximum value. This would convert the pixel value to 0 if the srcImage(x,y)> threshold or to 255, otherwise. You can, obviously, change the threshold and your max values