How to measure picture in Matlab GUI

조회 수: 1 (최근 30일)
Siti Nor Arma Bt Mohd Zainun
Siti Nor Arma Bt Mohd Zainun 2013년 2월 21일
i am doing an interface for measurement tool for my final year project, (FYP). I need to know how measure picture in Matlab GUI.

채택된 답변

Julien
Julien 2013년 2월 21일
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
Image Analyst
Image Analyst 2013년 2월 21일
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 2013년 2월 27일
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

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by