Quote:
Originally Posted by Noiman
How to detect distance (cm) between two images in the same view?
|
You would have to measure the distance between the images in pixels, then depending on the device, use the right ppi to convert the distance from pixels to inches.
Then convert from inches to cm.
Some googling got me to this, cannot speak for it's authenticity:
iPhone4 640×960 326 ppi
iPhone3 320x480 163 ppi
iPad 1024x768 132 ppi
gui - What dpi resolution is used for an iPhone App? - Stack Overflow
Example: iPhone4, distance between images is 44 pixels:
distance in cm = 44*(1/326)*2.54