Image from Google maps
A concrete subclass of ImageSource that acquires images from Google maps.
| grab | Grab a frame from Google maps |
| size | Size of image |
| close | Close the image source |
| char | Convert the object parameters to human readable string |
Create an EarthView camera
ev = EarthView();
Zoom into QUT campus in Brisbane
ev.grab(-27.475722,153.0285, 17);
Show aerial view of Brisbane in satellite and map view
ev.grab('brisbane', 14)
ev.grab('brisbane', 14, 'map')
Peter Corke, with some lines of code from from get_google_map by Val Schmidt.
Create EarthView object
ev = EarthView(options)
| 'satellite' | Retrieve satellite image |
| 'map' | Retrieve map image |
| 'hybrid' | Retrieve satellite image with map overlay |
| 'scale' | Google map scale (default 18) |
| 'width', W | Set image width to W (default 640) |
| 'height', H | Set image height to H (default 640) |
| 'key', S | The Google maps key string |
see also options for ImageSource.
Convert to string
EV.char() is a string representing the state of the EarthView object in human readable form.
Grab an aerial image
im = EV.grab(lat, long, options) is an image of the Earth centred at the geographic coordinate (lat, long).
im = EarthView.grab(lat, long, zoom, options) as above with the specified zoom. zoom is an integer between 1 (zoom right out) to a maximum of 18-20 depending on where in the world you are looking.
[im,E,n] = EarthView.grab(lat, long, options) as above but also returns the estimated easting E and northing n. E and n are both matrices, the same size as im, whose corresponding elements are the easting and northing are the coordinates of the pixel.
[im,E,n] = EarthView.grab(name, options) as above but uses a geocoding web site to resolve the name to a location.
| 'satellite' | Retrieve satellite image |
| 'map' | Retrieve map image |
| 'hybrid' | Retrieve satellite image with map overlay |
| 'roadmap' | Retrieve a binary image that shows only roads, no labels. Roads are white, everything else is black. |
| 'noplacenames' | Don't show placenames. |
| 'noroadnames' | Don't show roadnames. |
Zoom into QUT campus in Brisbane
ev.grab(-27.475722,153.0285, 17);
Show aerial view of Brisbane in satellite and map view
ev.grab('brisbane', 14)
ev.grab('brisbane', 14, 'map')
Machine Vision Toolbox for MATLAB © 1990-2014 Peter Corke.