I have binary images and corresponding grey level images and I need to find a operation, similar to a convolution kernel, that transforms the binary into the grey level imag