Skip to content

Ruby on Rails web-application that leverages libvips image processing library to apply VARI, NDVI and others Vegetation Indices (VIs) on map tiles.

Notifications You must be signed in to change notification settings

filmfer/tiled-vegetation-indices

 
 

Repository files navigation

Tiled Vegetation Indices

Ruby on Rails web-application that leverages libvips image processing library and Leaflet interactive maps library to apply Vegetation Indices (VIs) on map tiles.

The approach was taken after analyzing how DroneDeploy works with VIs.

It is being published as open source to demonstrate how WebODM contributors can apply VIs on-the-fly on map tiles. This approach avoids the need to store different tiles for each VI.

Approach

It is generated a thumbnail of the full orthophoto. Then it is applied each one of the implemented indices on the thumbnail and is saved a histogram of each index result.

The histogram is then used to calculate a min and max used to "clip" results bellow/above min/max on individual tiles.

Implemented Indices

RGB based:

  • VARI
  • GLI
  • IOR
  • NGRI

NIR based:

  • NDVI
  • BAI
  • SAVI
  • MNLI
  • MSR
  • RDVI
  • TDVI
  • OSAVI
  • LAI

Screen Capture

RGB based VARI

alt text

NIR based NDVI

alt text

Where to look

/app/lib/vegetation_index.rb

/app/controllers/vegetation_index_controller.rb

/app/assets/javascripts/map.js

JavaScript Libraries Used

Requeriments

About

Ruby on Rails web-application that leverages libvips image processing library to apply VARI, NDVI and others Vegetation Indices (VIs) on map tiles.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 66.6%
  • JavaScript 20.9%
  • HTML 10.4%
  • CSS 2.1%