like this post
https://stackoverflow.com/questions/811 ... or/8123516
its possible convert image rgb to YIQ for obtain results like this post?
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: its possible convert image rgb to YIQ for obtain results like this post?
You can emulate that code using -color-matrix.
Input:
Here is an sRGB to YIQ transformation, showing the YIQ as if RGB:
Here is the same but swapping the first two channels:
Input:
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
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
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
Re: its possible convert image rgb to YIQ for obtain results like this post?
very thankyou for your help