Fast RGB2HSV

Flexible, fast and memory-efficient extension of RGB2HSV
3.2K Downloads
Updated 20 Aug 2007

No License

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.

Cite As

Alexander Ihlow (2024). Fast RGB2HSV (https://www.mathworks.com/matlabcentral/fileexchange/15985-fast-rgb2hsv), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R13SP1
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Loops and Conditional Statements in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0