I am using a code that is applying a TopHat morphology operation and then it is converting the image to gray scale. I know what does TopHat on gray images, but what approach is implemented if the image is RGB (or BGR)?
1 | initial version |
I am using a code that is applying a TopHat morphology operation and then it is converting the image to gray scale. I know what does TopHat on gray images, but what approach is implemented if the image is RGB (or BGR)?