I have an image. I want to selectively increase the saturation of yellow in the image to max. How is this done in the RGB or HSV image space? Thanks.
相关问题
- How to get the background from multiple images by
- Extract matrix elements using a vector of column i
- Try to load image with Highgui.imread (OpenCV + An
- CV2 Image Error: error: (-215:Assertion failed) !s
- DBGrid - How to set an individual background color
相关文章
- Emacs/xterm color annoyance on Linux
- How do I append metadata to an image in Matlab?
- matplotlib bwr-colormap, always centered on zero
- How can I write-protect the Matlab language?
- `std::sin` is wrong in the last bit
- MeshLab: How to import XYZRGB file
- Python open jp2 medical images - Scipy, glymur
- Escape sequence to display apostrophe in MATLAB
This needs to be done in HSV (Hue Saturation Value) color space.
If you have the image in HSV, it is very easy (else convert it to HSV). The H is the only variable that gives color information, and if you check the wikipedia page of Shades of Yellow, you'll notice they are all are between 45 to 60 deg. So take you HSV image, select the H in that range and increase the S (saturation) of those values.
In Matlab:
result:
Original
Yellow pixels
Saturated