필터 지우기
필터 지우기

Extract values from binary matrix into periodic lattice

조회 수: 3 (최근 30일)
Jiayun Liu
Jiayun Liu 2023년 5월 22일
답변: Shree Harsha Kodi 2023년 6월 22일
I am using a camera to detect periodic illumination but the difference in camera pixel spacing and illumination period, the detected values are aperiodic. e.g. the circled values are displaced 1 index from the correct position. I want to write the values into another array such that these values are shifted to the correct position. Is there a good way to do this?

답변 (1개)

Shree Harsha Kodi
Shree Harsha Kodi 2023년 6월 22일
To achieve the above you would need the following functions whose relevant docs are privided below
MATLAB find function: https://in.mathworks.com/help/matlab/ref/find.html
MATLAB meshgrid function: https://in.mathworks.com/help/matlab/ref/meshgrid.html
MATLAB sub2ind function: https://in.mathworks.com/help/matlab/ref/sub2ind.html

카테고리

Help CenterFile Exchange에서 Biomedical Imaging에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by