First time here? Check out the FAQ!

Ask Your Question
1

How does TopHat morpholgy works on color images?

asked Oct 21 '14

thdrksdfthmn gravatar image

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)?

Preview: (hide)

Comments

1

1 answer

Sort by » oldest newest most voted
1

answered Oct 5 '15

i know this is not an answer to your question but i want to point out morphology operation on color image is promising on some detection cases.

when i was thinking about a solution to this question i met your question and it guided to me to promising solution.

the question : how to detect pimples

image description

result image by morphology operation :

image description

it is easier to detect red crosses.

Preview: (hide)

Comments

What have you done there? TopHat on each channel or what? My question was: Does topHat applies on each channel or on float values, or how? I understand the idea of doing it on binary images, but color ones are not binary...

thdrksdfthmn gravatar imagethdrksdfthmn (Dec 14 '15)edit

the result image from Morphology_1.cpp you can test TopHat Morphology_2.cpp

sturkmen gravatar imagesturkmen (Dec 14 '15)edit

Question Tools

Stats

Asked: Oct 21 '14

Seen: 905 times

Last updated: Oct 05 '15