When I try to use cvCopy a IplImage consisting of 3 channels to a IplImage with 4 channels (I need the extra channel later) all I get is an error message.
Is there another way to increase the channel count of an IplImage without loosing the data that it already holds?
Thanks!
Use cvMixChannels, like this:
It will perform only the copy operations that are neccessary, unlike cvSplit and cvMerge.
I am not sure, the way i'm gonna suggest is the easiest one :
Look at the documentation here,
Julien,