Notice to YSPilots/YSFLIGHT

Notice to YSPilots/YSFLIGHT
Legacy Pack available under the YSFLIGHT category.
Any individual requests for a model must be made to my email address, see bottom of the page..
Enjoy!
Skippy
Showing posts with label Camera. Show all posts
Showing posts with label Camera. Show all posts

Monday, 16 May 2016

Recap360 Pro to QGIS (Quantum GIS) - The hard way

I've recently obtained Autodesk Recap360. It's basically a software package that stitches images from drones/multiple viewpoints together to make a 3D model. I think it's the slightly more advanced version of 123D Catch.

I've also got a drone, and in June of 2014 I flew a series of missions with it over my home. Since then I've not really known what to do with the large selection of images (overall, about 1000), so they've just sat on my hard drive waiting for something to happen.

Something happened when I was trying to make a bid for a drone for work. I had to price up the software available, and the hardware (...the flying bit). I looked at the usual suspects for drone imagery, Pix4D, Agisoft etc, but a new one popped up, Autodesk's Recap360.

Their system works in the cloud, so you upload your images to their servers, and tell it what to do, and about an hour later you get a lovely email saying it's done.
At the moment, their online viewing and editing tools are out of action, so I've not tried their georeferencing tools online (which is hopefully the easy way...). I went for the hard way.


When you process your data, there is the option for either a quick preview (which I guess is perfect for just making sure it'll all come out okay) or ultra (which allows you to do all the fancy stuff, including download the orthomosaics). Ultra costs credits, which I assume you top up and pay for (because I'm a teacher, I'm using it for education (it'll be used to teach my students about DEMs next year) I get it for free.)

When it's processed, you've got the option to download the products, such as OBJ files (I guess you could use it for making 3D prints of stuff too, which is cool), but more interesting is the .TIF download option.

What you get is 2 TIFs, one orthomosaic and one elevation model.

I use QGIS 2.8.1 as my main GIS software, which can happily open Tiffs. so it made sense to import them into that.
This is where it got a bit harder.
The orthomosaic went in just fine, 3 layers, red green and blue, just fine. They all looked good in the GIS (Apart from being mirrored, and un-georeferenced). Both of these problems were easily rectified by georeferencing it to Google Maps.
It referenced pretty well - with only 4 points, I had pretty good accuracy. I didn't do any serious work on it, just a quick 4 points in the corners, and checked it against where the roads were on an OS map, and it looked reasonable.
There are some oddities, such as the fence bordering on the road, but this is actually because the OS Street View map I'm using is an old one, and we moved the fence between the road and the path.
Apart from that, the fences line up well, etc etc. Not bad for 4 control points!
So far so easy.
Now things got a little trickier.
The Digital Surface Model.
I imported it the same way, it's a Tiff too, but I was greeted with this:
There were no values assigned to it, and when I opened the properties, I ended up with "bad allocation" and no property box. I tried exporting and reimporting it, no joy, still unchanged.
In the end, I thought, "I'll do this manually" and saved it as a .asc file. If you don't know, an .asc, or ASCII file is basically a text file, you can open it in Notepad, and edit it, but when you import it into a GIS, it is an elevation/raster file again. It's basically just a text file full of pixel values.
Because it is a text file, you can edit it easily in Notepad. The problem, I suspected, was the fact that the transparent parts of the image were set to "#INF", rather than -9999 which they are often set to, I guess QGIS doesn't like #INF as a numerical value, and maybe this was the reason it was throwing an exception.
So, find "#INF" and replace with "-9999". Suddenly, QGIS was quite happy opening this new file with -9999 as the transparent colour. 
I could now change all the colours in QGIS, and georeference it as I pleased, but.... it ran on a scale from -3.7 to 2.8. So the lowest bit of the map was -3.7m below sea level, and the highest was just 2.8m. This is the North Yorkshire Moors! It should be higher than that by at least 100!
It was also reading -3.7 for the highest place, and 2.8 for the lowest.... 
I used QGIS's Raster Calculator to do "1 - the DSM layer" to invert it, so now it was the right way, but the scale was still wrong. 
If I'd paid more attention in maths, I would know an easier way of doing this, but I didnt... So instead I compared another digital elevation model of the same place, and compared 2 areas: I looked at what my drone DSM said, and what the real one did, and came up with:
DSM value of -2.7083 corresponded with an actual height of 175.889m,
DSM value of 0.913 corresponded with an actual height of 249.6m.
Now I just had to figure out how to scale them both up, and now my brain left me.
So, I had to do it a slightly more cheaty, boring way, I made a graph.

Very kindly, excel can put the formula on the graph too, and this is the formula I could use to calculate all heights from the weird values on the DSM.
y (real height) = 20.352 x the value on the DSM + 231.02. I'm sure there was an easier way of doing this, but it worked.
From this, I could calculate what the actual minimum and maximum values should be, from the -3.7 and +2.8. I thought it might allow me to simply put this formula into the Raster Calculator, and just create a new layer from that, but the result had the same "nan" and the error....
Luckily QGIS has a tool for the job. Enter "Grid Normalisation".
It obviously allows me to normalise the data, and luckily it does it from a known maximum and minimum, which we'd calculated using the formula.
This done, and my DSM was finally showing the correct height values! It was still in the wrong place, and mirrored, but hey! at least it was the right value! (+/- a few meters...)

Now it was just a matter of georeferencing it (which was done against the outline of the orthomosaic, as it is a hell of a job trying to georeference a flat field on a DSM... it is just featureless....).
The resolution is quite a bit lower on the DSM than the Ortho - the ortho is about 11cm, the DSM is 50cm. But, overall, it made a pretty little map, so I'm happy!

This was just from 150 of the photos, so I may try and run it again with more. ReCap360 has an upper limit of 250 photos, so it isn't going to be many more, but I might try and chose some from areas that aren't so well represented or are a little fuzzy.
The orthomosaic also has some odd artefacts around trees, where they look oddly pixelated, I think it is because of the way it is constructed. The images are formed into a 3D model, with flat faces, so if there is a slight lack of detail, the model is incomplete, and when viewed from above, it looks slightly like a model from a Playstation 2 game.
I can live with it though, for now.

I'm not sure what I'm going to use my newly georeferenced orthomosaic for...We shall see... but it's nice to have found a method that can potentially process drone images in an occasionally reliable way...
Now I just need to get the drone flying again

Sunday, 11 September 2011

Sharm El Sheikh Day 0

So! On the 11th September 2011 I flew out from Birmingham International Airport to Egypt’s Sharm El Sheikh International Airport, but let’s rewind to what led up to this… On the 10th, Saturday, I arrived in Birmingham by train:IMAG0268
(With MRSA of course!) and stayed overnight at a family friend’s house, who had an awesome picture in his bathroom:
IMAG0270
Very cool.
Then, at unpleasant o’clock in the morning I headed to the Airport for 5 hours or so of waiting… This holiday involved a lot of that.
Coffee at Birmingham International is expensive as hell! And they have NO FREE WIFI! So I stole their electricity to charge my phone:
IMAG0271
That’ll teach them.
We finally got on the plane and flew over to Egypt… And got to bed at around 12pm I think… Not sure to be honest!

Sunday, 1 August 2010

Kodak Playsport Zx3

Just bought the new Kodak Zx3 Playsport. It shoots 720p, 1080p and 5mp stills. The specs for it state that its waterproof to 3m, making it mud proof, dust proof etc etc. I’ve not had a chance to take it into a pond or anything, so don't know what its like underwater.

DSCF4030

It is a nice shape and size, fits perfectly in a pocket. Its designed for people with an outdoors lifestyle.

DSCF4031

Now, my initial thoughts were very good. For its price I thought it was a bargain.

I’ve had it for a couple of days now, and my attitude has changed a little. The first problem is with the battery. I fully charged it 2 days ago, and this morning it wouldn't turn on, apparently the batteries were dead already, and I hadn't even been using it. The 2nd is with the quality.

The Stills quality is okay for long distance, doesnt quite match my Nikon D80, but its okay for snaps. The video quality is a little limited. There aren’t many settings at all, it only does Normal, Vivid and Black and White, no White Balance or saturation or anything. The default settings though are not good. The sharpness is far to much, the edges over defined and basically the resulting video looks naff. 100_0001

This image, above, shows the very odd quality of the video. Everything is… just wierd!

Here is the example, click to view:

Tuesday, 20 July 2010

Skipper’s Windows 7 Desktop Nature Theme

Awrite!? Was just collecting some of my best pictures into a lil’ Windows 7 theme package, and figured why not just let the general public have it? So, without further a-do, here is Skipper’s Windows 7 Nature Theme. All images copyright to David Caplin (..thats me!), so dont go selling them or anything, or I will hunt you down and eat your babies.
So, enjoy!
Sample image:
Warning, may contain images that some viewers may find disturbing.. if they are afraid of spiders...or plants...

Tuesday, 13 July 2010

Microsoft ICE review


As promised, the Microsoft Image Composite Editor/ICE review.
Link to the download here: http://research.microsoft.com/en-us/um/redmond/groups/ivm/ICE/
I'm also giving a plug for Autopano Pro (And their even better one, Autopano Giga)
Its amazing (..I havnt actually checked it out) http://www.autopano.net/en/
(Yes, I'm hoping they'll send me a free copy to review and plug.)

Wednesday, 15 April 2009

Lambs on the farm

Just returned from my fortnight at home in sunny North Yorkshire.
I returned with a Boyancy Control Device for diving, a new camera and 2 combat knives... Productive holiday!

Anyways, here are some shots:
Calf at Botton Farm>
Free Image Hosting at www.ImageShack.us

Our Lambs:
Free Image Hosting at www.ImageShack.us

On Good Friday there was a community work event, and everyone worked a clearing one of the houses gardens of brambles and cut logs. The brances and brambles were then piled up to make the Easter fire.
On Easter day we lit the fire:
Free Image Hosting at www.ImageShack.us

Oh.. I got another camera!
A Nikon D80, so finally I can get lenses that dont have a lens motor, should be able to afford a Sigma 150-500mm.

Sunday, 15 March 2009

Doves return to the garden for a bit

Spotted the 2 Collared doves in the garden again today. Though they didnt stop for very long, just landed on the wall and by the time I'd grabbed my camera they'd flown off.
On the note of cameras;
Just purchased a new lens for my Nikon. Its a 500mm fixed aperture lens, but its a manual focus, thats the only downside. Still, with my teleconverter its a 1000mm with a 11.2f aperture.
Has slightly broken the bank a bit, but it'll live.
My cuccumbers have finally died. Fully dead dead.
Coursework progress:
3/6 done.
50%!

Friday, 12 September 2008

New Camera!

Just 5 more days till I ship out to Egypt!
Few days ago I purchased a brand new Digital Camera for taking with me. Its the FujiFilm F100fd, and I got it with the dive case. SORTED! I'm loving the quality of it though. Check this picture out, its my eye, taken with the camera. Check out that detail!
Like I said, I'm loving it! (Stupid McDonnalds..)

Should get some pretty sweet dive pictures in Egypt with it too. Will post some when I get some!

Laters,
Skip, OUT!