#!/usr/bin/env python # coding: utf-8 # In[2]: get_ipython().run_line_magic('matplotlib', 'inline') import sys sys.path.insert(0,'..') from IPython.display import HTML,Image,SVG,YouTubeVideo from helpers import header HTML(header()) # # Statistical features # # The object we consider here are the connected components obtained after the image segmentation (i.e. objects vs. background). Each connected component can be identified using an image labelling algorithm. # # A feature is a measure extracted from an object. Object recognition is basically the association of a set of feature values with a certain class of object. # # The first feature that come in mind is the intensity of the object pixels, i.e. the brightness of an object can be used as a descriptor of it, for a color image, one can consider the red, green and blue distributions. More generally we talk about spectral features (relative to the pixels 'color'). # # Of course, spectral mean is interesting, but one can also think about other statistical descriptors such as variance, and other statistical measures. # # example of a specialized spectral feature: # # **NDVI** (Normalized Difference Vegetation Index) # # $$\mbox{NDVI}=\frac{(\mbox{NIR}-\mbox{VIS})}{(\mbox{NIR}+\mbox{VIS})}$$ # In[5]: Image('http://earthobservatory.nasa.gov/Features/MeasuringVegetation/Images/ndvi_example.jpg') # from [nasa.gov](http://earthobservatory.nasa.gov/Features/MeasuringVegetation/measuring_vegetation_2.php) # NDVI is a vscalar value extrated from several spectral measures (in one pixel). It enables to characterize the level of vegetation present. The following figure shows how the visible and near infrared spectra are observed in the 7 Landsat spectral bands. # In[6]: Image('http://www.seos-project.eu/modules/remotesensing/images/Reflexionskurven.jpg') # from [seos-project.eu](http://www.seos-project.eu/modules/remotesensing/remotesensing-c01-p05.html) # >see also: # * Spectral description (intensity) [IPH](../00-Preface/06-References.ipynb#[IPH]) p482 # # In[ ]: