필터 지우기
필터 지우기

Nearest Neighbour Orientation Distribution

조회 수: 2 (최근 30일)
george korris
george korris 2022년 2월 23일
댓글: Image Analyst 2022년 4월 3일
Hello, I want to find the distribution of the orientation of the undirected line connecting the typical point with its nearest neighbour. I have found something similar in R: https://rdrr.io/spatstat.core/man/orient.html and I am wondering how this could be done in Matlab. I have the pattern as an image, and I can extract the points and find their nearest neighbours using knnsearch .
  댓글 수: 2
KSSV
KSSV 2022년 2월 23일
REad about knnsearch. Get the nearest points and do what you want.
Image Analyst
Image Analyst 2022년 4월 3일
You forgot to attach the image. When you have an image, each pixel has 8 neighbors, so what do you consider as the "undirected line connecting the typical point with its nearest neighbour"??? There are 8 nearest neighbors, or at least 4. You imply there is only one.

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

답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by