Computation of Non directional Edge
    조회 수: 1 (최근 30일)
  
       이전 댓글 표시
    
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
댓글 수: 0
채택된 답변
  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');
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!