I am trying to remove a specific range of colors, but whatever i try, i get a black mask…
cv::inRange(img, low, high, mask);
Even if i swap the colors, still all black is the output, which doens’t make any sence cause i took the colors from the same image.
Another problem is how to extract a range of colors from the image, i want to select a specific part of image, get the range of colors and get ride of them, now i did it manually, but it can’t be like that.
inRange returns a binary image (values of 0 or 1). If you display it, you will see black (as images are considered 0…255, so the value of 1 is very close to black).
To check the result, do: