Creating matrix from 3d mesh

조회 수: 3 (최근 30일)
Sultan
Sultan 2019년 5월 2일
댓글: Walter Roberson 2019년 5월 2일
Initially I had a matrix (512x512), I created a 3d mesh using mesh() function. The figure showed me peaks. I wanted to extract the matrix for each peak and then calculate the volume. I came across two cases for the solution:
  1. https://de.mathworks.com/matlabcentral/answers/277512-how-to-find-peaks-in-3d-mesh
  2. https://stackoverflow.com/questions/45106812/find-volume-of-3d-peaks-in-matlab
In both cases the data generated in the form of X, Y, Z. This is however not my case. How can I extract matrices for each peak?Capture_peaks.JPG
  댓글 수: 1
Walter Roberson
Walter Roberson 2019년 5월 2일
islocalmax() with the 'all' option perhaps?
You might want to do some pre-processing, such as setting all of the values less than half max height to be the minima.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Smoothing and Denoising에 대해 자세히 알아보기

제품


릴리스

R2016a

Community Treasure Hunt

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

Start Hunting!

Translated by