Regarding Filter for an image

well we try to learn the weights of a filter but if we have hardcoded filter then how can we tell by taking a look at hardcoded filter that what it will do like it is a vertical edge detector or horizontal edge detector or something else

Hi @amankharb

For very simple filters, you just have to look for cases where the filter will give a large output. That is often clear if the filter is trivial for example, look at this pic:


This filter can detect edges which are transitioning from light to dark. You can mirror it to detect dark to light transitions.

For complex filters, it is often much easier to just apply the filter to an image and analyze the output. Look at this video for a more detailed explanation.

Hope this helps!

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.