IT

Photogrammetry and drones · 5 August 2018

Can you do photogrammetry with the Spark? – Test II

Another field test of photogrammetry with the DJI Spark, the under-300-gram drone, this time compared with a Phantom 4 Pro on a rock face in Riomaggiore, Cinque Terre.

In this article I’ll tell you about another aerial photogrammetric survey test to see again whether you can do photogrammetry with the Spark, the under-300-gram drone made by DJI.

In this article a few weeks ago I presented a case study comparing an aerial photogrammetric survey made with the DJI Spark with ones made by two other drones: a DJI Phantom 4 Pro and an iDRONI Venture Mapper.

I surveyed the same area with the three drones, under the same conditions (not quite, but never mind…), to assess whether the Spark could really be used in professional photogrammetry.
Not only for 3D reconstruction but also for topographic surveys and mapping, where metric and geographic information is essential.

And the little drone did well!

The setting of the first test was part of an aggregates quarry extending mainly horizontally.
A fairly simple case.

At the end of that article I promised I’d try photogrammetry with the Spark again in other, perhaps more complex, scenarios.

And here we are.

A rock face in the Cinque Terre

The survey in this article concerns a small rock face at the harbour of Riomaggiore, one of the villages of the Cinque Terre, in the province of La Spezia and inside the national park of the same name.

I was there for work.
I had to survey a vertical face with fractured rock below the pedestrian promenade and above the rocks and the harbour area.
The aim of the survey was to support the design of works to protect against possible rockfalls and to secure the areas used by tourists and residents.

I carried out the survey I’d been commissioned for with my Phantom 4 Pro, and when the operations were over I also flew the Spark to survey part of the study area with it too.

The surveyed face is about 100 m long.
Its highest point is about 15 m above sea level, while the lowest is at sea level.

Below is an aerial photo showing the surveyed area.

Aerial photo of the harbour of Riomaggiore, Cinque Terre, where the survey area is located

In fact it isn’t all rock and stone.
In the northernmost stretch (on the left of the photo) the rocks give way to artificial structures in stone and masonry and to a reinforced concrete wall.
In the central and southern parts (centre and right of the photo), the natural face is interrupted twice by stone steps leading down to the sea.

In some places the masonry structures show signs of cracking and settlement, and in the central rock mass there are a couple of overhanging “bulges” that may be dangerous.
The municipality of Riomaggiore planned to make the areas safe.
Which starts from the preliminary feasibility design.
Which is based on the topographic survey.

A comparative assessment

For this case study too I compared two surveys of the same area, made (more or less) under the same conditions, with two different drones: the DJI Phantom 4 Pro and the DJI Spark.

I think comparative analysis helps assess the strengths and weaknesses of one method or instrument against another.

The Phantom surveyed the whole area to be studied, as commissioned.
With the Spark, to limit the number of photos and keep processing times down, I flew over a smaller area.

Below you can see the difference between the areas covered in each case (Phantom – red, Spark – green).

Aerial panorama comparing the area surveyed by the Phantom 4 Pro drone with the one surveyed by the Spark

The weather

In the first article on whether you can do photogrammetry with the Spark, I forgot to include the weather conditions!
Weather matters a great deal when flying drones, especially small machines that are very sensitive to gusts of wind.

I did this survey on 29 May 2018 between 7 and 10 in the morning.
The weather was excellent: mild temperatures and no wind.
The survey area was never directly exposed to the sun, which was rising behind it, beyond the hills of the eastern Ligurian coast.

The flight

It was manual.

In cases like this, where the vertical extent of what’s to be surveyed outweighs its extent in plan and the terrain and morphology are complex, it isn’t easy (sometimes it’s almost impossible) to program flight missions for the drone to fly automatically.

I prefer to fly the drone “by hand” (assisted by the on-board instruments: GPS, accelerometers, compass, altimeter), judging the overlap between frames (consecutive and adjacent) from the images the drone’s camera sends in real time to the ground control station.

It’s a bit more complicated than letting the drone do everything automatically, it takes a bit more field experience, and you get back to the office with more photos than from a programmed mission, but it can be done.
And in these cases it’s better and safer (for everyone!).

Photos and GSD

Three different photo datasets

To characterise, survey and model a mainly vertical element well, nadir photos alone aren’t enough (those taken with the camera’s optical axis pointing straight down).
You need other image “datasets” too.
Usually you also take photos with the camera tilted 45° from the horizontal and, for vertical faces like this one, “horizontal” or “front-facing” photos too.

It’s important to photograph, and see clearly in the photos, the characteristic features of the “standing” parts.
Shapes, elements, dimensions…
Otherwise they won’t be modelled well.

With both the Phantom and the Spark I took nadir photos, photos tilted 45° from the horizontal and front-facing photos of the face and of the area just above and at its foot.

GSD

In aerial photogrammetry the GSD (Ground Sampling Distance) defines the ground resolution of an image.
The smaller the GSD, the more detailed the image.

I won’t go into the details of the GSD, because the article would get too long, but I’ll refer you to these posts: aerial photogrammetry on sloping ground and Ground Sampling Distance, where the concept of GSD and why it matters in photogrammetry are explained a bit better.

The GSD should stay as constant as possible across all the photos of a photogrammetric survey, for consistent detail and information from one to the next.
If you program an automatic flight mission for nadir photos over flat ground, it isn’t hard to take photos with the same GSD.
But if you fly by hand and also take non-nadir photos, keeping a constant GSD isn’t trivial.

I always try, but I rarely manage.

With the Phantom I surveyed the whole vertical face and the areas above and below it fairly carefully.
I also took some fairly close-up photos of cracked parts of the masonry so they could be delivered with enough detail in the final 3D model.
The Phantom was on average 25 m from the ground/face, for a GSD of 7 mm/pixel.

The Spark survey was a bit more general and quicker.
I didn’t take detail photos, only images to model the study area in 3D.
The Spark kept an average distance of about 35 m from the ground, for a GSD of 1.5 cm/pixel.

So in this case too, the operating conditions of the two drones weren’t really the same…

When I fly “freehand”, I often don’t stick to the planned GSD.
I usually end up taking images from closer than planned.
The GSD is smaller, and so far so good, but there are more photos to process and store.

For nadir photos, even without a flight plan, the telemetry you read on the ground station devices (above all the drone’s height, but also cruising speed, distance from the control station and heading) helps keep the drone-to-ground distance, and therefore the GSD, constant.

For tilted and front-facing photos you need a bit more experience.
And even that isn’t always enough.

I took 430 photos with the Phantom and 150 with the Spark.
Don’t despair at such different numbers.
The Phantom took many close-up photos to capture some masonry sections in great detail.
I know, I should have removed them and processed the model with the remaining photos taken from further away.
I didn’t, to avoid a new processing run and the wait for the results.
I promise the next test will be more rigorous!

And the Phantom surveyed a larger area than the Spark.

Below you can see the positions of the photos taken (the Phantom’s on the left and the Spark’s on the right).
It looks like total chaos, but bear in mind that it includes the camera positions of the nadir photos, the photos tilted at 45° and the front-facing ones.
And the last two datasets also include photos taken at different heights, to follow the vertical extent of the face.

Comparison of the positions of the photos taken by the Phantom 4 and the Spark

DNG vs JPG

One last thing about the photos I took.

I recorded the Phantom photos in RAW format, which I then post-processed to optimise them before photogrammetric processing (I wrote an article on editing RAW files for the photogrammetric process, you’ll find it here).

The Spark photos, on the other hand, were saved directly as JPG on the drone’s memory card and weren’t retouched at all.

Although I can’t quantify precisely the differences between processing optimised RAW files and processing the same images as JPG (I’ll write an article on it soon!), there are undoubtedly differences in the number of tie points (matching points) and the density of the dense cloud.

Once again, I ask you to turn a blind eye to the test’s lack of rigour…

Control points and check points

Here, on the other hand, I did things properly!
🙂

I used a few more ground control points than in the first test with the Spark, the quarry case I told you about earlier.

I placed 19 high-visibility artificial targets on the ground.

For the Phantom survey I used 13 of them for the interior and exterior orientation of the images and the model and for georeferencing, the GCPs (Ground Control Points), and 6 to check the overall accuracy, the QCPs (Quality Control Points).

14 targets fell within the area surveyed with the Spark, of which I used 10 as GCPs and 4 as QCPs.

High-visibility artificial targets for the control points of the aerial photogrammetric survey, GCPs and QCPs

I distributed the targets as evenly as possible, both in plan and in height.
Using the pedestrian promenade above the face, I could place targets there too, without using the total station to measure points at the upper limits of the survey area.

I surveyed the coordinates of the ground points with a GNSS satellite receiver in NRTK mode.

The points have an average measurement precision of about 5 cm.

SfM photogrammetric processing

I won’t go on at length about photogrammetric processing with Structure from Motion algorithms.
I’ll just say that I used Agisoft PhotoScan Pro again and kept the same settings for processing the photos from both drones.
I processed the Phantom photos first, because of delivery needs, and then applied the same settings to the Spark photos.

If you’d like to go deeper into photogrammetric processing with PhotoScan, this blog has a series by Paolo Rossi, of the Engineering Faculty of the University of Modena and Reggio Emilia, that goes into the detail of every step of the process.
Here’s the link to the latest article in the series (latest as I write this).
You’ll find it here.
From there you can get to all the others.

Analysis of the results

To assess the results of the two surveys meaningfully, I cropped the 3D model generated from the Phantom photos to the area covered by the Spark.

Image alignment

The alignment accuracy parameter set in PhotoScan was High.

Processing the Phantom photos “found” 185,000 tie points (matching points); processing the Spark photos found 80,000.

Over 100,000 fewer tie points is no small difference!
It’s due to the Phantom images having a smaller average GSD than the Spark’s, to the RAW images having been optimised for photogrammetric processing, and to my having taken very close-up photos of some parts of the rock face, which helped bring out more significant details for linking the photos together.

Dense cloud

I processed the dense cloud with Medium quality and Mild depth filtering.

The 3D model generated from the Phantom photos has 4,500,000 points, while the model made with the Spark photos has 2,000,000.

The difference between the number of points in the dense clouds is in line with the ratio of tie points.
The Phantom model has 2.3 times as many points as the Spark model.
The causes are again exactly the same ones I described just above.

3D mesh and texture

The 3D triangle mesh of the model made with the Phantom photos has about 420,000 faces, while the one made with the Spark photos has about 380,000.

The texture generated from the Phantom photos has a resolution of 2.5 cm/pixel, while the one from the Spark photos is about 3.4 cm/pixel.

Below are the two solid, textured models uploaded to Sketchfab.

RIOMAGGIORE DJI PHANTOM 4 PRO
RIOMAGGIORE DJI SPARK

If you zoom in on the face, you’ll notice some difference between the two models, although both reproduce the geometry of the site in a similar and faithful way.

Orthophoto

In a case like this, where the subject of the survey is a vertical element, it’s more useful to produce and export a high-resolution orthomosaic of the front view (or views) of the face (where the elements concerned by the protection works are) than the “classic” nadir orthophoto.

Below is the comparison between two front orthomosaics from the model made with the Phantom photos and the one made with the Spark photos.

First the full image (bear in mind that the Phantom one covers a larger area), then two 100% close-ups of the same part.

High-definition orthomosaic of the vertical face from the Phantom 4 Pro photos

High-definition orthomosaic of the vertical face from the Spark photos

Part of the high-definition orthomosaic of the vertical face from the Phantom 4 Pro photos, 100% close-up

Part of the high-definition orthomosaic of the vertical face from the Spark photos, 100% close-up

In this comparison too, the image generated from the Phantom photos is clearly sharper.
Bear in mind again that the average GSD of the two surveys wasn’t the same, but was larger for the photos taken by the Spark (which therefore have lower definition).

Overall accuracy

The overall accuracy of the two processed 3D models, calculated from the root mean square errors on the check points (QCPs), is 5.3 cm for the model made with the Phantom and 5.7 cm for the one made with the Spark.

And I think this is a really interesting result for the possibility of doing photogrammetry with the Spark in more complex settings too!
Setting aside the GSD of the images, the density of the 3D point cloud and the resolution of the texture, it was still possible to reconstruct a 3D model that’s faithful to and representative of the site studied, with an overall accuracy entirely comparable to that of the other model.

What’s more, this accuracy also meets the client’s needs for studying the ongoing phenomena and designing the works.

Great job, Spark!
🙂

Conclusions

This test too has come to an end.
Thanks for making it this far as well!

I have to admit that this comparative test too, like the first one in the aggregates quarry, was plenty of test but not much comparison.
The two drones’ photographic acquisitions weren’t made under the same conditions.
There were differences, and not negligible ones.
I confess I’ve got a taste for these tests, and I’ll write another article on a survey of a small, completely flat area where methods and means can really be compared under the same conditions!

But back to this case study, I can conclude that:

  • The Spark performed very well even in a morphologically complex case, where photographic information had to be acquired in several datasets to be processed together.
  • What I said after the first test still holds: if you have to survey a large area, I don’t think the Spark is the best technical choice.
    Its camera is less capable than those of bigger drones, and to get the same GSD you have to fly closer to the object, which means more photos to process (longer times) and store on disk.
    A small drone like the Spark also has objective battery limits, and over large areas you need lots of batteries to cover everything.
  • But under the Italian rules of the time, the Spark had the advantage that in a scenario like this it could be used even with people on the ground who weren’t involved in the operations.
    I did the Phantom survey at 7 in the morning, when there were very few people around, and they could be managed with the help of the municipality’s technical staff.
    I did the Spark survey later, when more people were starting to come and go, tourists and locals.
    They weren’t crowding together, but there weren’t few of them, and they were definitely there.
    With the (lightened and harmless) Spark I could fly (and survey) without having to worry (it wasn’t quite like that!) about the people on the promenade.
    So, if you have to survey in a setting where the “human factor on the ground” is far from negligible, a harmless aircraft can be a really useful and interesting resource.
  • And finally, it’s worth noting that the accuracy of the model made with the Spark photos is entirely comparable to the Phantom’s.
    That gives you solid, robust and valid survey data on which to run hazard analyses, extract sections and profiles, and plan and design works from a good starting point!

So, in light of this new test, I still feel I can tell you that, despite its (many!) limits, you can do photogrammetry with the Spark!

I hope I’ve given you some more ideas or interesting content on this subject.
I promise the next test will be more rigorous!

For doubts, questions or further thoughts, get in touch: on Telegram, @paolocorradeghini, or from the contact page.

Thanks again for your time and for reading this far!

See you soon!

Paolo Corradeghini

← All articles