Page 1 of 1

its possible convert image rgb to YIQ for obtain results like this post?

Posted: 2018-03-21T15:05:40-07:00
by diegomage

Re: its possible convert image rgb to YIQ for obtain results like this post?

Posted: 2018-03-21T16:06:51-07:00
by fmw42
You can emulate that code using -color-matrix.

Input:
Image

Code: Select all

convert peppers_tiny.png -color-matrix \
" \
0.299 0.587 0.114 \
0.596 -0.274 -0.322 \
0.211 -0.523 0.312 \
" \
peppers_tiny_yiq.png
Image


Here is an sRGB to YIQ transformation, showing the YIQ as if RGB:

Code: Select all

convert peppers_tiny.png -colorspace YIQ -separate \
-set colorspace sRGB -combine peppers_tiny_yiq2.png
Image

Here is the same but swapping the first two channels:

Code: Select all

convert peppers_tiny.png -colorspace YIQ -separate \
-swap 0,1 -set colorspace sRGB -combine peppers_tiny_yiq3.png
Image

Re: its possible convert image rgb to YIQ for obtain results like this post?

Posted: 2018-03-21T17:06:11-07:00
by diegomage
very thankyou for your help :)