Convertion pixel in colorbar into mm
조회 수: 2 (최근 30일)
이전 댓글 표시
Here is a figure of a 3D surface from 2D images, if I want to know the height of the object how I can get this information?
댓글 수: 0
답변 (1개)
Rahul
2024년 11월 29일
In order to obtain the height of the object, consider using the 'max' and 'min' functions on the matrix of the image and obtain maximum and minimum intensities from the image. Below is a basic example for the same:
% Assuming 'img' variable to contain the image data
maxHeight = max(img(:));
minHeight = min(img(:));
reqHeight = maxHeight - minHeight;
If required to obtain the height of a particular point from the 3d reconstruction of the 2d image, function 'improfile' can be used to plot and visualize the intensity value at the provided point or selection on the image.
The following MATLAB Answer can be referred to to understand the use of 'improfile' to find intensity values to evaluate height profiles:
The following MathWorks documentations can be referred to know more:
Hope this would help! Thanks.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Colormaps에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!