HD Maps From the Air, Part 3: Preparing Aerial Imagery for Mapping
Raw aerial tiles are large, rotated and in whatever coordinate system the flight was processed in. The preparation step makes every later step simpler.
1. The input
The core imagery in this project was airborne RGB plus near-infrared at 9 cm, delivered as 4,000 by 4,000 pixel tiles, roughly 360 metres a side, with a digital surface model alongside. Oblique imagery and camera metadata were available for parts of the area.
Earlier jobs for other clients used 5 to 12.5 cm imagery in national grid coordinate systems. Every job starts by writing down the coordinate system and checking it against the data, not the file name.
2. North-up and sharper
Oblique and some nadir frames arrive rotated. We warp them north-up first, so the same direction means the same thing on every tile, for people and for models.
We also tested super-resolution, upsampling the 9 cm tiles to about 2 cm so thin markings and kerb edges are several pixels wide.
3. Tiles with overlap
Models and annotation tools work on pieces, not 4,000 pixel tiles. Our tiler cuts 2,048 pixel windows with a 2,000 pixel step, so every object near a cut appears whole in at least one window, and cuts the vector layers along the same windows with the same affine transform.
Keeping image and vector tiling in one tool means an annotation drawn on a window can always be put back exactly where it came from.
4. Open data as a prior
Before annotation we pull open map data, such as building footprints from OpenStreetMap, clipped to each image. It is not accurate enough to deliver, but it is a useful first guess and a check that nothing large was missed.