Extracting the indices in a 2D map associted with lines drawn over the map
조회 수: 1 (최근 30일)
이전 댓글 표시
Hello,
I have a 2D map of some geophysical variable. Visually, to mark the regions of interest and draw cross-sections, I have drawn several lines that indicate the various regions of the map. Now, I would like to extract the indices associated with each of these lines. I would then like to average the geophysical variable once I know the indices (which is simple). I just don't know how to extract the indices given these lines.
Any guidance will be appreciated!

댓글 수: 0
답변 (1개)
Image Analyst
2021년 5월 20일
Use improfile() to draw your lines. Two of the outputs will be the vector of x and vector of y values for the line you drew.
댓글 수: 10
참고 항목
카테고리
Help Center 및 File Exchange에서 Image Segmentation and Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!