Convertion pixel in colorbar into mm

1 view (last 30 days)
agung pratama
agung pratama on 23 Jul 2020
Answered: Rahul on 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?

Answers (1)

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

Categories

Find more on Colormaps in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!