Calculation of size from images at unknown distance

  • Context: Undergrad 
  • Thread starter Thread starter ixeric
  • Start date Start date
  • Tags Tags
    Calculation Images
Click For Summary

Discussion Overview

The discussion revolves around calculating the size of an object from images taken at different distances, specifically using pixel measurements from photographs. Participants explore the implications of camera settings, distance, and angular measurements in estimating object size, with a focus on both theoretical and practical approaches.

Discussion Character

  • Exploratory
  • Technical explanation
  • Conceptual clarification
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant questions whether the size of the object can be calculated from the provided pixel measurements and distances, suggesting that insufficient information is available for an exact answer.
  • Another participant proposes that while an exact size cannot be determined, an estimate can be made based on the change in pixel size relative to the distance moved, assuming a small apparent angle.
  • A participant shares specific measurements taken of a ruler at various distances, indicating that these measurements were used to derive pixel sizes and discusses the potential for creating a table of pixels per radian at different distances.
  • Concerns are raised about the linearity of the relationship between pixel size and distance due to magnification effects, suggesting that this may complicate calculations.
  • One participant suggests that angular pixel pitch remains constant and that trigonometric methods could be used to measure sizes without needing a table, emphasizing the importance of a reference object of known size.

Areas of Agreement / Disagreement

Participants generally agree that calculating the exact size of the object is not feasible with the given data, but there are differing opinions on the methods for estimating size and the role of angular measurements. The discussion remains unresolved regarding the best approach to take.

Contextual Notes

Participants note limitations related to the assumptions of linearity in pixel size changes, the need for known reference distances, and the potential effects of magnification on measurements.

ixeric
Messages
2
Reaction score
0
Here is the problem I've been trying to solve for a couple of weeks. I have taken 2 pictures of an object of an unknown size with a camera. The first picture of the object was 1162 pixels across. I moved 419.1 mm closer and took a second picture, which was 1429 pixels across.

Can I calculate the size of the object in mm? What if I had a table of radians per pixel at different distances, could you deduce the distance from that?

Focal length: 3.85mm
Aperture: f/2.8
Shutter: 1/15
Resolution: 2048 x 1536

Let me know if you want some test data to test your calculations.
 
Science news on Phys.org
No.
You can calculate how large the object image would be if you took another picture from somewhere else. But to calculate the actual size and/or distance of the object, you simply don't have enough information.
 
From the information given an exact answer is impossible but I think you can get a good estimate. If the apparent angle of the object is small (need to know focal length of lens) then the size of object in pixels varies nearly linearly with distance. Since the size of the image is about 18.7% larger when the camera moved 419.1 mm closer, we will estimate that 419.1 mm represents 18.7 % of the distance to the object from the point where the image was 1162 pixels. This works out to about 2243 mm. Is that approximately correct?
 
I was taking a picture of a 48 inch ruler, at a distance of 120 inches. I also took a picture of the same ruler with my arm stretched forward 16.5 inches which is at distance of 103.5 inches. These resulted in the 1162 and 1429 pixels above.

I also tried at a distance of 240 inches and 223.5 inches, which resulted in pics 600 and 650 pixels across.

I was thinking that if I built a table of pixels per radian at different distances, then I would just need to figure out how to calculate the distance with a method similar to what Skeptic2 proposes. However, I think the linearity is defeated by the effect of magnification.
 
Well you should find that the angle is based on the distance and size of the ruler and that angular pixel pitch is constant. So you shouldn't need to build a table (but you will always need a reference to the distance or against an object of known size like that ruler). Just use trig and compare a couple of them to make sure. I use that method to measure sizes of objects I take pictures of with my telescope.
 

Similar threads

  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 17 ·
Replies
17
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K