Is the document of cvtColor(HSV) wrong? (Feature #868)


Added by Yoichiro Maeda about 14 years ago. Updated almost 14 years ago.


Status:Done Start date:
Priority:Low Due date:
Assignee:Ilya Lysenkov % Done:

0%

Category:documentation
Target version:-
Difficulty: Pull request:

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

Revision 07e2decc
Added by Ilya Lysenkov almost 14 years ago

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

Also available in: Atom PDF