Possible duplicate:Algorithm for converting RGB to HSV and HSV to RGB?
I am trying to find an algorithm (prefferabley presented in C ++) that converts RGB values ββto HSB so that I can handle it accordingly. Anyone have any suggestions?
This is java, not C ++, but it should be close enough so that it can be easily reused. Find the RGBtoHSB method on this page:
RGBtoHSB
http://www.docjar.com/html/api/java/awt/Color.java.html
There, several color algorithms are demonstrated here , including the one you need that is worth reading.
Source: https://habr.com/ru/post/902112/More articles:Structuring large sets of SQL strings and using them in .NET. - c #Case Insensitive Contains Dynamic Linq - containsShow progress bar while knockout displays view - knockout.jsUITableViewCell: how to update textLabel.text in the fifth line? - iosUILabel in custom UITableView cell not updating when master data changes - iosPHP Regex checks letters and Spanish accent - phpWhy does the HSV-RGB algorithm work the way it does? - c ++Hibernation: automatically save the parent before saving the child - javaUsing Android Sensor Processor - androidCall java from php - javaAll Articles