Ask Your Question
1

How does TopHat morpholgy works on color images?

asked 2014-10-21 06:50:22 -0600

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

edit retag flag offensive close merge delete

Comments

1
sturkmen gravatar imagesturkmen ( 2015-12-12 05:46:58 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2015-10-05 10:38:25 -0600

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.

edit flag offensive delete link more

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 ( 2015-12-14 04:03:55 -0600 )edit

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

sturkmen gravatar imagesturkmen ( 2015-12-14 04:16:21 -0600 )edit

Question Tools

Stats

Asked: 2014-10-21 06:50:22 -0600

Seen: 760 times

Last updated: Oct 05 '15