If you look closely at the definition of `CV_RGB`, you will find that you made a subtle error here.