Code covered by the BSD License  

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
Color Detection By HSV color model

4.5
4.5 | 2 ratings Rate this file 19 Downloads (last 30 days) File Size: 2.24 KB File ID: #42440 Version: 1.0

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 (2)
24 Jun 2016 Buldoza

nice thanks

07 Jul 2013 Asad

Asad (view profile)

thanks, just what I was looking for.

Contact us