Converting from Pixels to mm

조회 수: 13 (최근 30일)
HHWin
HHWin 2012년 3월 12일
Hi,
I am new for Matlab. I am facing hard time to converting Pixels to mm. Y-Axis is in um and X-Axis has to be in mm. Because I have another chart in X as mm and Y as um. I have to compile these 2 charts together. Therefore I need to change it.
Thanks, Win

채택된 답변

Sean de Wolski
Sean de Wolski 2012년 3월 12일
doc meshgrid
to generate xdata and ydata that can correspond to any unit you like.
  댓글 수: 1
HHWin
HHWin 2012년 3월 12일
Hi,
Sorry for not to mention this.
My file is in ASCII format.
Thanks,
Win

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

추가 답변 (1개)

Image Analyst
Image Analyst 2012년 3월 12일
You need to know a spatial calibration factor. For example you snap an image of a ruler and measure how many pixels 12 inches is. Let's say it's 120 pixels. Then you have 10 pixels per inch. So if your distance in your image is 360 pixels, that would be 360 pixels / (10 pixels/inch) = 36 inches.

카테고리

Help CenterFile Exchange에서 Convert Image Type에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by