<p>It looks to me like the vertical dimension is the one to use for scaling:</p>

<p>$$\frac{50\text{ px}}{720\text{ px}} \approx \frac{30\text{ px}}{480\text{ px}}$$</p>

<p>There's a slight error there, but it's only a few pixels. I'm not sure if the object sizes you mentioned were intended to be precise to the nearest pixel (30 and 50 are roundish numbers).</p>

<p>Typically when switching between aspect ratios, the vertical FOV would remain constant while the horizontal FOV widens or narrows to match the aspect ratio.</p>

CC BY-SA 3.0
2017-04-05T14:02:35.427Z
Why the vertical and not the horizontal should be used? The 50px and the 30px is horizontal measurement in the frame..
And the sizes are what I got by the algorithm, maybe the it not 100% accure
nrofis
CC BY-SA 3.0
2017-04-04T16:30:24.900Z
2017-04-04T16:30:24.900Z
Nathan Reed
<p>I am trying to measure width of an object in image. The object size is 2D object 15cm X 15cm.</p>

<p>When I capture a frame with resolution 1280 X 720 (16:9) I am getting that the object width is 50px.</p>

<p>But when I capture a frame resolution 640 X 480 (4:3) I am getting that the object width is 30px.</p>

<p>The distance between the object and the camera did not changed during the test.
I didn't find a transformation that can convert the width in pixels from 1280 X 720 to 640 X 480. I think that the aspect ratio is the issue here but I didn't succeed to solve it out.</p>

<p>How can I know that the width in pixels is both resolutions is actually the same object size?</p>

<transformations>
Transformation between aspect ratio
nrofis
# Transformation between aspect ratio

(Asked by: username_0 on 2017-04-04)

I am trying to measure width of an object in image. The object size is 2D object 15cm X 15cm.

When I capture a frame with resolution 1280 X 720 (16:9) I am getting that the object width is 50px.

But when I capture a frame resolution 640 X 480 (4:3) I am getting that the object width is 30px.

The distance between the object and the camera did not changed during the test.
I didn't find a transformation that can convert the width in pixels from 1280 X 720 to 640 X 480. I think that the aspect ratio is the issue here but I didn't succeed to solve it out.

How can I know that the width in pixels is both resolutions is actually the same object size?

**Tags:** transformations


---

## 1 answers

### Answer by username_1 on 2017-04-04. Score: 1

It looks to me like the vertical dimension is the one to use for scaling:

$$\frac{50\text{ px}}{720\text{ px}} \approx \frac{30\text{ px}}{480\text{ px}}$$

There's a slight error there, but it's only a few pixels. I'm not sure if the object sizes you mentioned were intended to be precise to the nearest pixel (30 and 50 are roundish numbers).

Typically when switching between aspect ratios, the vertical FOV would remain constant while the horizontal FOV widens or narrows to match the aspect ratio.

> **Comments:**
> **username_0**: Why the vertical and not the horizontal should be used? The 50px and the 30px is horizontal measurement in the frame.. And the sizes are what I got by the algorithm, maybe the it not 100% accure  

---

