[FFmpeg-trac] #10428(documentation:new): HSV filters are not actually doing HSV
FFmpeg
trac at avcodec.org
Thu Jun 22 10:44:57 EEST 2023
#10428: HSV filters are not actually doing HSV
-------------------------------------+-------------------------------------
Reporter: Mingye Wang | Type: defect
Status: new | Priority: minor
Component: | Version:
documentation | unspecified
Keywords: terminology | Blocked By:
colorspace |
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Summary of the bug: The `hsvhold` and `hsvkey` filters claim to be doing
HSV, but a quick examination of the source code `do_hsvkey_pixel()`
reveals that they do not actually use the famous
[https://en.wikipedia.org/wiki/HSL_and_HSV#Basic_principle hexcone
geometry] based on RGB, but instead piggybacks on YCC. Some clarification
is needed.
How to reproduce: Navigate to https://ffmpeg.org/ffmpeg-
filters.html#hsvhold.
(Not using the real HSV is actually a good thing. At least this "V" we use
is based on video luma, making it a much better representation of how
bright something looks like than the real thing that weighs RGB equally.
However, people could have incorrect expectations about what "hsv" value
their key color is.)
--
Ticket URL: <https://trac.ffmpeg.org/ticket/10428>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list