Is the document of cvtColor(HSV) wrong? (Feature #868)
Description
The right formula H is following, isn't it?
Not S but (V - min).
H = 60 * (G-B)/(V-min) if V = R
H = 120 + 60 * (B-R)/(V-min) if V = G
H = 240 + 60 * (R-G)/(V-min) if V = B
Related issues
related to Bug #4256: Error in RGB to HLS conversion formula (in cvtColor docum... | Done | 2015-03-26 |
Associated revisions
Fixed the RGB2HSV formula (ticket #868)
History
Updated by Ilya Lysenkov almost 14 years ago
- Status deleted (
Open)
Updated by Ilya Lysenkov almost 14 years ago
Thanks! Fixed in -r5374.
- Status set to Done
- (deleted custom field) set to fixed