File Exchange

image thumbnail

hsl2rgb and rgb2hsl conversion

version 1.0 (2.22 KB) by

Functions to convert between RGB and HSL

3.28571
7 Ratings

16 Downloads

Updated

No License

This package consists of 3 files: rgb2hsl.m, hsl2rgb.m, and hsltest.m. The first two perform color conversion between HSL and RGB color spaces for 1d and 2d arrays(images). The last file includes unit tests for conversion.

Comments and Ratings (8)

molanyu

shit

The command rgb2hsl doesnt work in matlab 2016. One member has put a comment that it needs to be converted to double instead of uint8. But how can I do this. please help me.

Leox91

Leox91 (view profile)

Thanks but this does not work in Matlab2016

Alper Türker

rgb2hsl is not working

Hermawan -

then what should i do sir.?

Ruben

Ruben (view profile)

rgb2hsl is not working properly. It needs to convert the results of some operations to double format instead of uint8

Patrick Mineault

Works as advertised

MATLAB Release
MATLAB 7.0.4 (R14SP2)
Acknowledgements

Inspired by: RGB to HSL

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Win prizes and improve your MATLAB skills

Play today