Nearest Neighbour Orientation Distribution

1 visualización (últimos 30 días)
george korris
george korris el 23 de Feb. de 2022
Comentada: Image Analyst el 3 de Abr. de 2022
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 comentarios
KSSV
KSSV el 23 de Feb. de 2022
REad about knnsearch. Get the nearest points and do what you want.
Image Analyst
Image Analyst el 3 de Abr. de 2022
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.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Statistics and Machine Learning Toolbox en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by