How to measure picture in Matlab GUI

2 visualizaciones (últimos 30 días)
Siti Nor Arma Bt Mohd Zainun
Siti Nor Arma Bt Mohd Zainun el 21 de Feb. de 2013
i am doing an interface for measurement tool for my final year project, (FYP). I need to know how measure picture in Matlab GUI.

Respuesta aceptada

Julien
Julien el 21 de Feb. de 2013
Hi,
What do you mean about measuring a picture ? If you only want to get the resolution, use P=imread('picturename.format')
You will store a matrix containing all the pixels. Then the size of your picture is the number of line and the number of columns.
  3 comentarios
Image Analyst
Image Analyst el 21 de Feb. de 2013
Where did you upload your image to? You forgot to tell us. You can measure things manually with imdistline().
Siti Nor Arma Bt Mohd Zainun
Siti Nor Arma Bt Mohd Zainun el 27 de Feb. de 2013
The image is browse from other file. I'm using the push button to browse the image. I was try the 'imdistline' syntax and the result shows only in pixel value. the problem now is, i want to convert the pixel into other unit, such as 'cm' 'mm' in the picture. Please show or share with me the formula and the code that i can be inserted in GUI

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Image Processing Toolbox en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by