Convertion pixel in colorbar into mm

2 Ansichten (letzte 30 Tage)
agung pratama
agung pratama am 23 Jul. 2020
Beantwortet: Rahul am 29 Nov. 2024
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?

Antworten (1)

Rahul
Rahul am 29 Nov. 2024
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.

Kategorien

Mehr zu Colormaps finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by