- Yes, that’s the smoothed normal to the mask, so no other image information is taken into account for computing the normal.
- To compute the tensor, I include as many channels as the image has. If it has 8 channels, then the tensor takes the 8 channels into account. It doesn’t really care about the number of channels of the image.