Fast RGB2HSV

Flexible, fast and memory-efficient extension of RGB2HSV

You are now following this Submission

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 (2026). Fast RGB2HSV (https://www.mathworks.com/matlabcentral/fileexchange/15985-fast-rgb2hsv), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Loops and Conditional Statements in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0