Loading…

Integer-based accurate conversion between RGB and HSV color spaces

[Display omitted] •Conversion algorithm between 24-bit RGB and integer HSV is proposed.•The algorithm is as accurate as the classical real-valued one.•Performance measurement results show a speed gain of about two times.•The resulting HSV color can be packed into 48 bits.•Floating-point variables an...

Full description

Saved in:
Bibliographic Details
Published in:Computers & electrical engineering 2015-08, Vol.46, p.328-337
Main Authors: Chernov, Vladimir, Alander, Jarmo, Bochko, Vladimir
Format: Article
Language:English
Subjects:
Citations: Items that this one cites
Items that cite this one
Online Access:Get full text
Tags: Add Tag
No Tags, Be the first to tag this record!
Description
Summary:[Display omitted] •Conversion algorithm between 24-bit RGB and integer HSV is proposed.•The algorithm is as accurate as the classical real-valued one.•Performance measurement results show a speed gain of about two times.•The resulting HSV color can be packed into 48 bits.•Floating-point variables and Lookup tables are not used. This paper introduces a new fast integer-based algorithm to convert the RGB color representation to HSV and vice versa. The proposed algorithm is as accurate as the classical real-valued one. The use of only integer operations increases performance and portability. Performance measurement results show a speed gain of about two times when compared with the classical C++ language implementation on PC platforms. Lookup tables are not involved, thus the memory usage is minimal. The resulting HSV color can be packed into 48 bits. The proposed method can safely replace the commonly used floating-point implementation.
ISSN:0045-7906
1879-0755
DOI:10.1016/j.compeleceng.2015.08.005