1 | initial version |
You are trying to apply this with multiple channels which is as easy as splitting the image into the different channel until you have matrixes of the same size ( for instance in RGB, you divide in 3 channels) and then you perform the operation for each channel.