April 2020
Intermediate to advanced
438 pages
12h 2m
English
In this recipe, we are going to use the first image of the Earth by the MCC of the Mars Orbiter Spacecraft from the ISRO public images gallery (https://www.isro.gov.in/pslv-c25-mars-orbiter-mission/pictures-mars-colour-camera-mcc-onboard-india%E2%80%99s-mars-orbiter), and we will try to segment the land (foreground) from the sea (background) using random walker segmentation (a binary segmentation). Let's import all the required libraries first:
import numpy as npimport matplotlib.pyplot as pltfrom skimage.segmentation import random_walkerfrom skimage import img_as_floatfrom skimage.exposure import rescale_intensityfrom skimage.io import imreadfrom skimage.color import rgb2gray
Read now
Unlock full access