similar to gaussian filter for color

1 次查看(过去 30 天)
Hi everybody,
I am trying to find a way to convolve a filter that highlights the color red in the image attached below. I am trying to find a filter similar to gaussian filter to highlight the red square. I don't want to simply threshold the color though. It has to be filtered to create a red center with red halo around it. Does anybody know such a filter or how to built one? if you have a link to paper or something that would help more actually.
Thanks in advance

回答(1 个)

Surabhi KS
Surabhi KS 2021-6-10
You could try this:
Threshold the image to obtain the red rectangle, locate the center through centroid detection and define a matrix for the area of the rectangle (one side i.e. square) with a gaussian distribution with the mean and stdev of your choice.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by