RGB to HSI Color Space Conversion
- Login to Download
- 1 Credits
Resource Overview
"RGB_to_HSI_Conversion.m" is a main function that calls rgb2hsi.m - a custom implementation since MATLAB doesn't include this function natively, primarily used for shadow removal applications.
Detailed Documentation
"RGB_to_HSI_Conversion.m" serves as the main function that calls the custom rgb2hsi.m function. Since MATLAB doesn't include a built-in rgb2hsi function, this custom implementation was developed specifically for shadow removal applications.
The main function "RGB_to_HSI_Conversion.m" implements RGB to HSI color space conversion by calling the custom rgb2hsi.m function. The algorithm typically involves calculating Hue using arctangent functions based on RGB components, Saturation through minimum RGB value detection, and Intensity as the average of RGB values. This conversion is particularly useful for shadow removal because the HSI color space separates color information (Hue and Saturation) from brightness (Intensity), making it easier to isolate and process shadow regions where Intensity values are significantly different while color information remains relatively consistent. The custom implementation likely includes normalization steps to ensure H values range from 0 to 1 and S/I values from 0 to 1, with proper handling of undefined Hue cases when R=G=B.
- Login to Download
- 1 Credits