필터 지우기
필터 지우기

Computation of Non directional Edge

조회 수: 4 (최근 30일)
M@lik Ali
M@lik Ali 2013년 1월 29일
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

채택된 답변

Image Analyst
Image Analyst 2013년 1월 29일
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');
  댓글 수: 1
M@lik Ali
M@lik Ali 2013년 1월 31일
its good its result in matrix, so if i need a value then what i should do, and if i want to count the edges then what is the procedure. Actually i need to count the edges in a sub image then categories the edges in 5 types, i-e. non directional, vertical , horizontal , and both diagonals, please help me out.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by