Ground Sampling Distance (GSD)
Ground sampling distance (GSD) measures ground distance per pixel and explains how many pixels represent an object in drone and satellite imagery.
Ground sampling distance (GSD), also called ground sample distance, is the distance on the ground between the centers of adjacent image pixels. A GSD of 5 cm per pixel means neighboring samples are 5 cm apart on the ground. A smaller GSD means finer sampling: the same object spans more pixels. In computer vision, that pixel span helps explain why an object is easy to detect in one aerial image and hard to detect in another.
How to Calculate Ground Sampling Distance#
For a camera pointing straight down over flat ground, calculate horizontal GSD using the height above the surface, the physical width of the active sensor, the corresponding image width in pixels, and the lens's actual focal length. With height in meters and both camera dimensions in millimeters, the result is in meters per pixel. The same calculation works vertically using the sensor and image heights.
GSD = height above ground × sensor width ÷ (focal length × image width)
Sensor width divided by image width gives the pixel pitch, or physical spacing between sensor pixels, when the camera records the full active width at native sampling. A longer focal length gives a smaller GSD at the same height and pixel pitch. At the same height and focal length, a larger pixel pitch gives a larger GSD. Pix4D's flight-planning example uses a 6.17 mm sensor width, a 5 mm focal length, and a 4,000-pixel image width to calculate the height needed to sample at 5 cm per pixel.
sensor_width_mm = 6.17
focal_length_mm = 5.0
image_width_px = 4000
target_gsd_m = 0.05
# Compute the ground width and the height that produces it.
footprint_width_m = image_width_px * target_gsd_m
height_m = footprint_width_m * focal_length_mm / sensor_width_mm
gsd_m = height_m * sensor_width_mm / (focal_length_mm * image_width_px)
print(f"{gsd_m * 100:.2f} cm/pixel at {height_m:.1f} m above ground")The calculation gives 5.00 cm per pixel at 162.1 m above ground. Flying lower with the same camera produces finer sampling and covers less ground per frame. Camera tilt and uneven terrain make GSD vary across the image, so a single nominal GSD summarizes the sampling scale.
GSD, Spatial Resolution, and Map Accuracy#
GSD describes sample spacing. Effective spatial resolution describes how much detail an imaging system can distinguish. Lens blur and motion blur soften edges even in finely sampled imagery. Positional accuracy measures how closely mapped coordinates agree with independent ground measurements. A sharp, finely sampled image can still be shifted on a map.
An orthomosaic combines overlapping photos into one map corrected for perspective and terrain. Its output grid spacing is set during processing and can differ from the native spacing of the source photos. For a north-up raster in a projected coordinate system measured in meters, the affine transformation stores horizontal and vertical pixel spacing in meters. Resampling to a finer grid puts more pixels into the file: interpolation estimates output values without adding new source detail.
How GSD Affects Computer Vision Models#
For object detection, an object's approximate width in source pixels is its projected ground width divided by the local GSD. Doubling GSD halves that pixel width. A detector trained on finer imagery will see smaller objects in pixels when the same camera flies higher, even though the frame dimensions stay the same. The useful GSD depends on the smallest feature the task needs to distinguish and how many pixels it retains after preprocessing.
In aerial traffic analysis, Songdo Vision provides overhead drone frames with bounding boxes for cars, buses, trucks, and motorcycles. Resizing a 3,840-pixel-wide frame to 640 pixels gives each vehicle one-sixth of its original pixel width. Ultralytics YOLO's high-resolution tiling can preserve those source pixels by processing overlapping crops at native scale.
GSD Across Satellite Bands#
In satellite image analysis, bands from the same instrument can have different native sample spacing. For semantic segmentation, coarser sampling makes narrow features and class boundaries more likely to occupy mixed pixels, which contain signals from more than one land-cover type.
ESA WorldCover combines Sentinel-1 and Sentinel-2 observations into a global land-cover map with a nominal pixel spacing of 10 m. In the native Sentinel-2 grids, the red band is sampled at 10 m and the first shortwave infrared band at 20 m: one 20 m cell covers the same area as four 10 m cells.














