GSD and how to calculate it
April 18, 2018
by Kevin McDonough
What is GSD?
GSD stands for Ground Sample Distance. It is, essentially, the size of a camera frame pixel in the real-world. This is an essential element of performing UAS based inspections because it allows us to measure image frame objects in the real world. That is, the size of an object in an image can be measure by its width and height in pixels which can then be translated into a physical distance using the GSD. As an example, assume you have a square object that is 10 pixels wide and 12 pixels tall and an image GSD of 5 cm per pixel. Then the object would be 50 cm wide and 60 cm tall in the real world.
If the camera sensor has square pixels (which is the case for many commercially available camera sensors), the GSD in the image can be thought of the real-world distance between two consecutive pixel centers. Or, more simply, the length of on of the pixel edges (the length d in Figure 1).
Figure 2. Diagram of important camera and image elements
used for GSD calculation.
Figure 1. GSD in an image
Because of the similar triangles, we can easily estimate the GSD assuming we know the following three things:
The GSD is then estimated as
Calculating GSD can be pretty straight-forward when the object being captured is close to parallel with the lens, see Figure 2. In this figure, we have a camera looking straight down at the ground (though the whole thing is laying on its side). We see the similar triangles from the lens to the camera sensor and from the lens to the ground. The distance from the lens to the camera sensor is the camera focal length, f, and the distance between the lens to the ground is the altitude of the camera, h.
This analysis is meant to teach with an intuitive example what GSD is and how to calculate. For more complicated examples, these principles remain the same, but the details get more complicated.