Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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?