File Exchange

image thumbnail

Image color filtering

version 1.1.0.0 (2.71 KB) by Víctor Martínez-Cagigal
This function provides a color filtering of a given image.

25 Downloads

Updated 03 Mar 2015

View License

This function modifies a given image in order to keep a specific hue (given too) and to desaturate the rest of the image. This procedure originates an image with black and white colormap, excluding the parts colored with that hue. Input and output parameters are specificated in the function header.
Example of use extracting the blue hue (H: 150º - 270º):
I = imread('myimage.jpg');
I = im2double(I);
I_m = colorfilter(I,[150 270]);
imshow(I_m,[]);

Cite As

Víctor Martínez-Cagigal (2019). Image color filtering (https://www.mathworks.com/matlabcentral/fileexchange/49898-image-color-filtering), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (3)

Updates

1.1.0.0

Grammar error in description.

MATLAB Release Compatibility
Created with R2014a
Compatible with any release
Platform Compatibility
Windows macOS Linux