Computation of Non directional Edge

Illustration
M - 2023-02-23T11:27:41+00:00
Question: Computation of Non directional Edge

i want to compute non directional edge of an image block, how i can compute, the simple edge method, will return non directional edge? if no please suggest me the solution

Expert Answer

Profile picture of John Williams John Williams answered . 2025-11-20

You can convolve with the Laplacian, which is like the average edge over all 4 directions (vertical, horizontal, and the two diagonals).

kernel = [-1, -1, -1; -1, 8, -1; -1, -1, -1];
highPassFilteredImage = conv2(double(originalGrayImage), kernel, 'same');

 


Not satisfied with the answer ?? ASK NOW

Get a Free Consultation or a Sample Assignment Review!