Ask Your Question

Revision history [back]

If you are working with BGR images, you have to call cvtColor like this:

cvtColor(img,out,CV_BGR2YCrCb)

instead of what you are doing.