I1 = imread('127.jpg');
>> I1 = imresize(I1, [256 256]);
>> [h s i] = rgb2hsi(I1);
??? Undefined function or method 'rgb2hsi' for input arguments of type 'uint8'.
>> I2 = double(I1);
>> [h s i] = rgb2hsi(I2);
??? Undefined function or method 'rgb2hsi' for input arguments of type 'double'.
how to i calculate intensity value

 Akzeptierte Antwort

Walter Roberson
Walter Roberson am 25 Mär. 2011

0 Stimmen

rgb2hsv() not rgb2hsi()

4 Kommentare

bala k
bala k am 25 Mär. 2011
i need to calculate intensity value
Walter Roberson
Walter Roberson am 25 Mär. 2011
http://www.mathworks.com/matlabcentral/fileexchange/13630
Teodora
Teodora am 31 Mai 2024
HSV color space is not the same as HSI color space, although similar they are.
DGM
DGM am 1 Jun. 2024
Bearbeitet: DGM am 1 Jun. 2024
The colorspace conversion utilities that are packaged with MIMT contain tools for conversion to and from HSI, HSL, and others.
They are not identical in behavior to the builtin rgb2hsv(). The angles are in degrees instead of being normalized, and they do not support multiple output arguments. For that, just use imsplit().
There are other tools on the FEX for HSI, but many are only one-way. Be aware that Pascal Getreuer's popular Colorspace Transformations tool has an old bug which means that it actually does not support HSI conversions unless you build from MEX. If you're running the m-code only, the tool will convert to HSL when HSI is requested.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Convert Image Type finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 25 Mär. 2011

Bearbeitet:

DGM
am 1 Jun. 2024

Community Treasure Hunt

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

Start Hunting!

Translated by