Neighbour points in a matrix

버전 1.0.0.0 (3.36 KB) 작성자: Ronald Ouwerkerk
Calculate the linear indices of neighboring points in a matrix and the distance from the original.
다운로드 수: 1.8K
업데이트 날짜: 2010/11/9

라이선스 보기

Calculate the linear indices for neighboring points in a matrix. You need to supply one or more linear indices for the point(s) of origin and the dimensions of the matrix. You will get a list will linear indices to all neighboring points. The function also creates a vector with the distances from the input point(s) based on the third function argument: an array with inter point distances in all dimensions. This argument defaults to unit distances.
The third output reports the number of neighbours found in within the matrix. For 2D we expect up to 8, for 3D up to 26 etc..
For points near the edge of the matrix the output may contain fewer points. For single index input all points outside the matrix and the origin point itself are removed. For multiple point input only the input point is removed.
This function help in medical image processing when applying a filter on 2D or 3D images based on actual distance rather than index distance e.g for image smoothing in 3D.

인용 양식

Ronald Ouwerkerk (2024). Neighbour points in a matrix (https://www.mathworks.com/matlabcentral/fileexchange/29330-neighbour-points-in-a-matrix), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2008b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Neighborhood and Block Processing에 대해 자세히 알아보기
도움

줌: BacStalk, BiofilmQ

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0