File Exchange

image thumbnail

rgb_to_hsv(M)

version 1.0 (1.38 KB) by uyen nguyen
convertion from RGB to HSV space

2 Downloads

Updated 23 Dec 2014

View License

convertion from RGB to HSV space

Cite As

uyen nguyen (2020). rgb_to_hsv(M) (https://www.mathworks.com/matlabcentral/fileexchange/48864-rgb_to_hsv-m), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (1)

Stephen Cobeldick

The use of nested for-loops, when vectorized code would be much neater and faster, give this submission its two stars. Then the question has to be asked: does this submission actually do anything that the inbuilt rgb2hsv does not do?

http://www.mathworks.com/help/matlab/ref/rgb2hsv.html

With a complete lack of any real documentation (only one line!), comments or examples, we are left to our own devices to guess what advantages or purposes this might have, that the inbuilt function does not achieve. My guess is "none".

Readers might be interested in this alternative submission, which converts between 15 different colorspaces, including RGB and HSV, with examples, demo files, comments and very useful help:

http://www.mathworks.com/matlabcentral/fileexchange/28790-colorspace-transformations/content/colorspace/colorspace.m

MATLAB Release Compatibility
Created with R2013b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!