Replace a range of colors with a specific color
Is there a function that receives an image/frame Mat M
, a range R
of RGB/A colors, and an RGB/A color C
, and replaces occurrences (pixel values) of R
with C
?