Error in RGB to HLS conversion formula (in cvtColor documentation) (Bug #4256)
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