Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3875906
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T22:19:15+00:00 2026-05-19T22:19:15+00:00

I am looking to develop some code that will be able to by looking

  • 0

I am looking to develop some code that will be able to by looking at images downloaded from google maps, categorize which part of the image depicts the land and which part depicts the sea.

I am a bit of a newbie to computer vision and machine learning so I am looking for a few pointers on specific techniques or API’s that may be useful (I am not looking for the code to this solution).

What I have some up with so far:

  • Edge detection may not be much help (on its own). Although it gives quite a nice outline of the coast, artefacts on the surface/above the sea may give false positives for land mass (stuff like clouds, ships, etc).
  • Extracting the blue colour element of an image may give a very good indication of which is sea or not (as obviously, the sea has a much higher level of blue saturation than the land)

Any help is of course, greatly appreciated.

EDIT (for anyone who may want to do something similar):

  • Use the static google maps API to
    fetch map images (not satellite
    photos, these have too much
    noise/artefacts to be precise).
    Example url-
    http://maps.google.com/maps/api/staticmap?sensor=false&size=1000×1000&center=dover&zoom=12&style=feature:all|element:labels|visibility:off&style=feature:road|element:all|visibility:off
  • To generate my threshold images I used the Image processing lab. I would apply the normalized RGB -> extract blue channel filter and then apply Binarization -> otsu threshold. This has produced extremley useful images without the need to fiddle with thresholds values (the algorithm is very clever so I won’t muddy the waters and attempt to explain it)
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T22:19:16+00:00Added an answer on May 19, 2026 at 10:19 pm

    I assume you are using the satellite view images from Google Maps otherwise you wouldn’t have written about ships or other artefacts.

    As you already said it might be a good idea to simply try to extract the blue image part.
    Just having a look at the blue channel of an RGB image isn’t going to work (I just tried), since the woods and so on will not give a good threshold value on the water.

    So you can try converting the image to YCbCr color space and have a look at the chrominance channels there.

    This an example I just made with a screenshot from google maps. I converted it to YCbCr in Matlab and just took the Cb channel.

    original screenshot

    cb channel of ycbcr image

    You can then binarize this image by a well set threshold, which shouldnt be too hard to find.
    You probably will still have small artefacts for which you could use morphological operators (Opening the image several times).
    This should remove small artefacts and leave the parts that are land and the parts that are water.

    Hope it helps… if not, please keep asking…

    EDIT

    I’ve just tried again with another screenshot in matlab:

    1. Convert Image to YCbCr colorspace
    2. Just have a look at Cb channel
    3. find threshold on Cb image either fixed or by i.e. Otsu’s method which finds an appropriate thresholdl in a bipartite histogram
    4. perform opening or other filters to eliminate small noises

    The original image I made:

    screenshot

    After applying a threshold on the Cb image:
    after applying threshold

    After applying an opening (5) on the image
    final image

    I just picked a threshold manually… You might get better results by having a look which threshold would work better… But as you see this should also work on the different colors of water from rivers and ocean.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Looking to develop a web service (api) in PHP to offer customers an easier
I am looking into creating an Public API so that we can open up
I am looking to develop a TEX parser, now problem is there is no
I am looking to develop a website mostly consisting of static pages. I need
I might need to write some GUI application that runs on .Net (and Windows),
I'm moving away from strict Android development and wanting to create iPhone applications. My
I am about to develop a Windows service in C#. This service needs to
I am a good PHP developer and wanted to develop a large scale web
Forgive me if this is in the wrong place, but I figured a few
I want to learn OpenGL ES directly since I'm targeting my development to android,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.