Convertion pixel in colorbar into mm

조회 수: 2 (최근 30일)
agung pratama
agung pratama 2020년 7월 23일
답변: Rahul 2024년 11월 29일
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?

답변 (1개)

Rahul
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.

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by