Asked by M@lik Ali
on 29 Jan 2013

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

*No products are associated with this question.*

Answer by Image Analyst
on 29 Jan 2013

Accepted answer

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');

M@lik Ali
on 31 Jan 2013

Opportunities for recent engineering grads.

## 0 Comments