how to convert a RGB image to its YIQ components in python , and then apply dct transform to compress it?
Are you willing to use a library outside of numpy, scipy, and matplotlib?
If so you can use skimage.color.rgb2yiq() from the scikit-image library.
In matlab we have rgb2ntsc() function to get YIQ components of a RGB image. Is there a similar function available in python (numpy ,matplotlib or scipy libraries)?
Also to apply discrete cosine transform (compress it) we can use dct2() , in matlab , is there a similar function in python?