各位:
我现在做图像测量,我不知道一个像素到底换算成mm究竟有多大?
是显示器的点距吗?还是有其他方法换算?我用microsoft photoeditor发现不对,它的像素居然和cm差不多!!这显然不对。
谢谢各位!
no way.
except you know the physical size of the whole image in adavance.
eg. you know the image is 100*100mm, pixel 640*640, then you can calculate distance between two points, otherwise you can not get physical length directly.
用它的坐标转换就行。
SetMapMode();
然后就可以用设备坐标向逻辑坐标转了。
DPtoLP();
都是CDC类的。
VC技术内幕四版有介绍。
//set the mapping mode to 0.1mm;
pDC->SetMapMode(MM_LOMETRIC);可以根据你的要求更换显示模式
能不能做个实验测一下对就关系.
其它我也不知道了.
参照一下AutoCAD