License YOLO
Back to Ultralytics Glossary

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.

Songdo Vision preview 1
Songdo Vision preview 2
Songdo Vision preview 3
Songdo Vision preview 4
5,419
Songdo Vision
ultralytics
PublicDetect

Detect cars (including vans), buses, trucks, and motorcycles in 4K overhead drone imagery of intersections in Songdo, South Korea. The vehicles have human-verified, axis-aligned boxes. The authors’ test split serves as validation. Created by Robert Fonod, Haechan Cho, Hwasoo Yeo, and Nikolas Geroliminis. Source: https://doi.org/10.5281/zenodo.21728430

4 classes12.6 GBDec 5, 2026
carbustruckmotorcycle
aerialdronetraffic+2

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.

Explore solutions

Computer vision in sports

Computer vision in sports

Discover how Ultralytics YOLO powers sports vision with player and ball tracking, performance analytics, coaching insights, and athlete rehabilitation.
Learn more
Computer vision for aerial imagery

Computer vision for aerial imagery

Turn drone and aerial imagery into real-time insights for agriculture, aquaculture, conservation, and geospatial analysis with Ultralytics YOLO.
Learn more
Computer vision in aerospace

Computer vision in aerospace

Apply computer vision in aerospace with Ultralytics YOLO for aircraft inspection, runway FOD detection, airport ground operations, and composite defect detection.
Learn more
Computer vision in security

Computer vision in security

Protect every site with Ultralytics YOLO models. Vision AI powers perimeter monitoring, threat detection, license-plate recognition, and workplace safety.
Learn more
Computer vision in robotics

Computer vision in robotics

Power smarter machines with Ultralytics YOLO models. Vision AI in robotics drives autonomous navigation, perception, object tracking, and real-time control.
Learn more
Computer vision in logistics

Computer vision in logistics

Streamline logistics with Ultralytics YOLO models. Vision AI enables package inspection, sorting, vehicle tracking, and real-time warehouse safety monitoring.
Learn more
Computer vision in retail

Computer vision in retail

Reimagine retail with Ultralytics YOLO models. Vision AI powers inventory tracking, shelf monitoring, queue management, and smarter customer insights.
Learn more
Computer vision in healthcare

Computer vision in healthcare

Build healthcare solutions with Ultralytics YOLO models. Vision AI in healthcare powers faster medical imaging, smarter diagnostics, and patient monitoring.
Learn more
Computer vision in manufacturing

Computer vision in manufacturing

Optimize manufacturing with Ultralytics YOLO models. Vision AI drives quality control, defect detection, PPE compliance, and assembly line automation.
Learn more
Computer vision in automotive

Computer vision in automotive

Apply computer vision in automotive with Ultralytics YOLO models. Vision AI elevates road safety, driver assistance, and vehicle automation for smarter roads.
Learn more
Computer vision in agriculture

Computer vision in agriculture

Bring vision AI to smart agriculture with Ultralytics YOLO models. Power crop monitoring, livestock tracking, and precision farming for higher, smarter yields.
Learn more

Let's build the future of AI together!

Begin your journey with the future of machine learning