diff --git a/doc/functionality.md b/doc/functionality.md index 524668832c39e08f3ff135500f8cf29e09690728..de981d9c00ab77e8265bb8e7ee49f54a39c11597 100644 --- a/doc/functionality.md +++ b/doc/functionality.md @@ -36,6 +36,10 @@ See `doc/opencv.md` for details of the functionality available in OpenCV. | YUV-BGRA | x | | YUV-RGB | x | | YUV-RGBA | x | +| RGB-YUV | x | +| RGBA-YUV | x | +| BGR-YUV | x | +| BGRA-YUV | x | ## Matrix operations | | s8 | u8 | s16 | u16 | s32 | u32 | s64 | diff --git a/doc/opencv.md b/doc/opencv.md index da6688f4545318a0f8f507faf2e1017860dacba3..685bc48539523d9ac009cbd2b5ae31941d602c2f 100644 --- a/doc/opencv.md +++ b/doc/opencv.md @@ -57,6 +57,22 @@ Notes on parameters: ### `yuv_to_bgr` Wrapper for [`yuv_to_bgr_ex`](#yuv_to_bgr_ex) that accepts YUV as a single buffer. +### `bgr_to_yuv` +RGB/RGBA to YUV image conversion, 3 or 4 channels to 3 channels, no subsampling. +All supported permutations listed in the table below. +| | YUV | +|----|-----| +|RGB | x | +|RGBA| x | +|BGR | x | +|BGRA| x | + +Notes on parameters: +* `depth` - only supports `CV_8U` depth. +* `scn` - Source Channel Number. Supports 3 for RGB/BGR and 4 for RGBA/BGRA +* `swapBlue` - toggles source channels order. +* `isCbCr` - sets particular YUV format. Only `false` (YUV) is supported. + ### `threshold` Binary threshold operation that would apply `maxValue` to any element above threshold, and set the rest to zero.