Color spaces conversions

前端 未结 1 1441
眼角桃花
眼角桃花 2021-01-23 07:21

I am trying to write a program that after the user inputs an image, he could see some small image processing. More specific, I want to convert an image from RGB to CMYK and YUV

1条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-23 08:00

    There is no direct correspondence between RGB and CMYK or YUV, that said there are clearly conversions. You can choose to manipulate the image in the desired color space before converting it back to RGB for display. So it would be possible to isolate a specific channel in say CMYK, copy that channel to a new image and then convert that to RGB for display.

    0 讨论(0)
提交回复
热议问题