No BSD License  

Highlights from
Fast RGB2HSV

5.0

5.0 | 2 ratings Rate this file 11 Downloads (last 30 days) File Size: 6.89 KB File ID: #15985

Fast RGB2HSV

by Alexander Ihlow

 

19 Aug 2007 (Updated 20 Aug 2007)

Flexible, fast and memory-efficient extension of RGB2HSV

| Watch this File

File Information
Description

In addition to being inherently more efficient, it introduces optional arguments
- to calculate in single precision
- to calculate only hue or saturation
  or value (or combinations of them)

% Checking performance on a Pentium M 1.4:
img = imread('peppers.png');
tic, hsv_old = rgb2hsv(img); toc
% --> Elapsed time is 0.414767 seconds.
tic, hsv_new = rgb2hsv_fast(img); toc
% --> Elapsed time is 0.190769 seconds.

MATLAB release MATLAB 6.5.1 (R13SP1)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (3)
31 Jan 2008 Y. W.

Works great. Reduced the computation time by half.

07 Jan 2009 John McArthur

Really great on R14, WinXP. No problems. More than quartered the computation time by using 'single' and by only working with the 'V'.

Use this if you want to convert color images to BW images, and use the 'V' setting to get the value of each pixel in the HSV system.

03 Nov 2011 Dave Holden

isn't much faster, ~10%, for uint8, at least on my size image. 640*480.

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
color Alexander Ihlow 22 Oct 2008 09:23:28
color space conversion hue saturation value hsv Alexander Ihlow 22 Oct 2008 09:23:28

Contact us at files@mathworks.com