AI

CH-4 – Edge Feature Extraction – Part-5

Algorithm 3 extracts edge map features from BMP images. It begins by converting the image to grayscale if necessary and applies the Canny algorithm, returning the image edges. The process involves steps like Gaussian filtering to remove noise, Sobel operator application in horizontal and vertical directions, and angle calculation for each pixel. The resulting edges are thresholded and subjected to double thresholding for refinement. Finally, the processed image with edge maps is returned.

Algorithm 4 operates similarly but focuses on extracting edge angles instead of edge maps. It follows a comparable process, including Gaussian filtering, Sobel operator application, and angle calculation, but stores the occurrences of each angle in tiles of the image, returning an array defining the edge angles.