1

I'm trying to distinguish land from ocean in harbors in Matlab. I have tried using the highest resolution maps from gshhs, but it isn't detailed enough. Below are is an example showing that it isn't detailed to the level I want. The one to the left showing the coastline boundaries and the other one showing the geoplot with basemap = 'streets'.

Comparison of the basemap and coastlines:

Since the map is able to plot in such detail, shown below, I would imagine that it should be able to distinguish land from ocean, just based on the colors.

Zoomed in basemap:

Appreciate any help here! Thanks in advance.

tdy
  • 36,675
  • 19
  • 86
  • 83
henrirno
  • 11
  • 1
  • 3
    Yeah, just select the pixels with the exact match of blue, its just a number. Albeit you will have problems with the grid and the street names, so you may want to figure out how to remove them first. Albeit admitedly, the best solution is to find a database with accurate coasts. – Ander Biguri Oct 21 '22 at 14:41
  • Yeah, I guess that seems to be the only solution. Do you have any code/link to an easy implementation? – henrirno Oct 24 '22 at 11:02
  • I am sure the best solution is to find better data. In any case, a quick google search for color matching in images will give you as olution – Ander Biguri Oct 24 '22 at 11:18

0 Answers0