Now, we'll see different type of filters and apply them to different images. Also, we'll explore how the neural network is using convolution or edge detection.
Building a Java edge detection application
Types of filters
There are other types of filters apart from the vertical and horizontal filters we've seen so far:
Two other popular filters are as follows:
- Sobel: This filter simply adds a little bit more weight or value to the middle
- Scharr: Besides adding even more weight to the middle, this filter also adds weight to the sides
As we can see, the zeros are placed in the middle column of the Vertical, Sobel, and Scharr filters. Hence, we can say that Sobel and Scharr measure the difference between the left...