4.0

4.0 | 1 rating Rate this file 23 Downloads (last 30 days) File Size: 2.24 KB File ID: #42440

Color Detection By HSV color model

by

 

Detect specific color in an image and output as a Black/White image

| Watch this File

File Information
Description

Input: image object in RGB format

Output: binary image objects (1 stands for the target color, 0 otherwise) for Black, White, Red, Yellow, Green, Cyan, Blue and Magenta color detected in the input image object

demo:
Im = imread('a.jpg');
Im_ColorLayer = color_detection_by_hue(Im);
imshow(Im_ColorLayer.black);

Required Products MATLAB
MATLAB release MATLAB 7.9 (R2009b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (1)
07 Jul 2013 Asad

thanks, just what I was looking for.

Contact us