(Bugfix #3121): Fixed a typo in cvtColor function

Error in CvtColor code, wrong channel identified as blue (Bugfix #3121)