Error in RGB to HLS conversion formula (in cvtColor documentation) (Bug #4256)


Added by Eitan Richardson almost 10 years ago. Updated almost 10 years ago.


Status:Done Start date:2015-03-26
Priority:Normal Due date:
Assignee:Maksim Shabunin % Done:

0%

Category:documentation
Target version:3.0
Affected version:branch 'master' (3.0-dev) Operating System:Any
Difficulty: HW Platform:Any
Pull request:https://github.com/Itseez/opencv/pull/4012

Description

In the documented formula for calculating the hue value, the division is by S, while in the code (RGB2HLS_f) and also according to other sources, the division should be by (max-min).
This is part of the cvtColor function documentation: http://docs.opencv.org/modules/imgproc/doc/miscellaneous_transformations.html#cvtcolor , under RGB <-> HLS.


Related issues

related to Feature #868: Is the document of cvtColor(HSV) wrong? Done

History

Updated by Maksim Shabunin almost 10 years ago

  • Assignee set to Maksim Shabunin
  • Target version set to 3.0

Updated by Maksim Shabunin almost 10 years ago

  • Status changed from New to Open
  • Pull request set to https://github.com/Itseez/opencv/pull/4012

Updated by Maksim Shabunin almost 10 years ago

  • Status changed from Open to Done

Also available in: Atom PDF