Calculation of size from images at unknown distance

AI Thread Summary
The discussion revolves around calculating the size of an object based on images taken at different distances, with one image measuring 1162 pixels and another 1429 pixels after moving 419.1 mm closer. It is noted that while an exact size cannot be determined due to insufficient data, an estimate can be made by analyzing the percentage increase in pixel size relative to the distance moved. The conversation also highlights the importance of understanding the relationship between pixel size, distance, and focal length, suggesting that a table of pixels per radian may not be necessary if angular pixel pitch remains constant. Additionally, using trigonometric methods and reference objects of known size can aid in accurate measurements. Overall, the key takeaway is that while precise calculations are challenging, reasonable estimates can be achieved with the right approach.
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.
 
Physics 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.
 
comparing a flat solar panel of area 2π r² and a hemisphere of the same area, the hemispherical solar panel would only occupy the area π r² of while the flat panel would occupy an entire 2π r² of land. wouldn't the hemispherical version have the same area of panel exposed to the sun, occupy less land space and can therefore increase the number of panels one land can have fitted? this would increase the power output proportionally as well. when I searched it up I wasn't satisfied with...
I think it's easist first to watch a short vidio clip I find these videos very relaxing to watch .. I got to thinking is this being done in the most efficient way? The sand has to be suspended in the water to move it to the outlet ... The faster the water , the more turbulance and the sand stays suspended, so it seems to me the rule of thumb is the hose be aimed towards the outlet at all times .. Many times the workers hit the sand directly which will greatly reduce the water...
Back
Top