Code covered by the BSD License  

Highlights from
Color Threshold

4.33333

4.3 | 3 ratings Rate this file 36 Downloads (last 30 days) File Size: 40.44 KB File ID: #25682
image thumbnail

Color Threshold

by Aaron

 

29 Oct 2009 (Updated 30 Nov 2009)

Allows users to interactively select/deselect pixels to threshold images using RGB or HSV filters.

| Watch this File

File Information
Description

Quickly setting RGB or HSV values for color thresholding is a common problem in laboratory robotics. ColorThreshold.m allows you to load an image and interactively set either RGB or HSV thresholds. Call the function ColorThreshold('image_name'), select your Region Of Interest, then select and deselect pixels and watch the thresholded image and RGB/HSV scatter plots to fine tune your threshold filter. You can switch between HSV and RGB while the program is running, and can choose to split the Hue threshold (single color objects commonly have a wraparound in the Hue value). The update allows users to interactively tune their filters with slider bars and move the ROI.

MATLAB release MATLAB 7.3 (R2006b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (3)
08 Mar 2010 Tomáš Bílek

Great :)

01 Oct 2010 Muhammed Talu

Very useful

18 Feb 2011 Kenz

Interesting idea, but fails majorly due to leftover non-standard RGB2HSV calculation. The code needs to be fixed to use Matlab's rgb2hsv, and then possibly offer the non-standard one as an interesting case for a faster, less processor-intensive calculation.

Please login to add a comment or rating.
Updates
06 Nov 2009

The update allows users to interactively tune their filters with slider bars.

30 Nov 2009

Allow user to move the ROI and error checking

Tag Activity for this File
Tag Applied By Date/Time
color image thresholding Aaron 30 Oct 2009 13:11:49
threshold Aaron 30 Oct 2009 13:11:49
segmenting Aaron 30 Oct 2009 13:11:49
rgb Aaron 30 Oct 2009 13:11:49
hsv Aaron 30 Oct 2009 13:11:49
rgb threshold Aaron 30 Oct 2009 13:11:49
color thresholding Aaron 30 Oct 2009 13:11:49
image processing Aaron 30 Oct 2009 13:11:49
segmenting Kishwar 17 Dec 2009 05:05:19
rgb nirlep 03 May 2010 09:47:08

Contact us at files@mathworks.com