similar to gaussian filter for color

4 views (last 30 days)
Kasra Sadatsharifi
Kasra Sadatsharifi on 8 Jun 2021
Answered: Surabhi KS on 10 Jun 2021
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

Answers (1)

Surabhi KS
Surabhi KS on 10 Jun 2021
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!