Skip to content

Commit 3bc1b53

Browse files
author
Anastasia Murzova
committed
Added YUV conversion fix
Fixed OpenCV issue opencv#18878
1 parent de1b919 commit 3bc1b53

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

modules/imgproc/src/color.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ inline int dstChannels(int code)
104104
return 4;
105105

106106
case COLOR_BGRA2BGR: case COLOR_RGBA2BGR: case COLOR_RGB2BGR:
107+
case COLOR_YUV2RGB: case COLOR_YUV2BGR: case COLOR_RGB2YUV: case COLOR_BGR2YUV:
107108
case COLOR_BGR5652BGR: case COLOR_BGR5552BGR: case COLOR_BGR5652RGB: case COLOR_BGR5552RGB:
108109
case COLOR_GRAY2BGR:
109110
case COLOR_YUV2BGR_NV21: case COLOR_YUV2RGB_NV21: case COLOR_YUV2BGR_NV12: case COLOR_YUV2RGB_NV12:

0 commit comments

Comments
 (0)