# how to sum a 3 channel matrix to a one channel matrix?

Hi, i want to sum a 3 channel (lab) matrix to a one channel matrix. Is there a simple way to do this or must i split the image into 3 different CvMat-Objects?

It would to be nice, if there is a parameter for `cvCvtColor`

that add all 3 channels with the same weight.

greetings

http://stackoverflow.com/questions/34...