Morphological dilation in a certain direction
이전 댓글 표시
Dilation by creating structuring element will dilate in all direction, but I want to do dilation in a particular direction, say 70 degree from a particular pixel. I understand that I need to write a self-adaptive function, but how? For example, I have a line with slope of 70 degree. I want to increase the length of the line in both end (by dilation). If i use "bwmorph()", it increases in all direction, But I need only in one direction.
채택된 답변
추가 답변 (1개)
Tanmoy
2015년 4월 9일
0 개 추천
댓글 수: 1
Image Analyst
2015년 4월 10일
So make up a kernel with a line of ones running along that direction. To get a precise direction you will have to have a very large kernel since with a 3x3 you have only 0, 45, and 90 degrees since you can go only horizontal, diagonally, or vertically.
카테고리
도움말 센터 및 File Exchange에서 Morphological Operations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
