2 - Generate NDVI#
Algorithm ID: hedgetools:generatendvi
This tool generates a vegetation raster using the Normalized Difference Vegetation Index (NDVI). It is computed from an infrared band and a red band.
The NDVI (Normalized Difference Vegetation Index) represents vegetation density and health, calculated from the red and infrared bands. Higher values indicate denser, healthier vegetation.
The binary mask or the sieved mask will be used to generate the tree cover layer in Generate Tree Cover.
The NDVI output can be used to generate additional binary masks with the Raster Calculator
Parameters#
Label |
Name |
Type |
Description |
|---|---|---|---|
Input Red raster |
|
[raster] |
Red raster |
Red band |
|
[raster band] |
Band of the Red raster to use in case of multiband. |
Input Infrared raster |
|
[raster] |
Infrared raster |
Infrared band |
|
[raster band] |
Band of the Infrared raster to use in case of multiband. |
Extent of the study area |
|
[extent] |
Input extent from a layer, canvas, or other source to clip the rasters. |
NDVI value threshold (NDVI mask) |
|
[numeric: double] |
Threshold to create the binary NDVI mask. Pixels above this value are considered vegetation. |
Compute sieved NDVI mask |
|
[boolean] |
If enabled, the NDVI mask is sieved to remove small holes. Recommended to reduce noise in vegetation layers. |
Threshold sieve value (pixel number) |
|
[numeric: integer] |
Minimum number of pixels for a feature to be kept in the sieved mask. |
Handling of extent differences |
|
[enumeration] |
Determines how the tool handles differing DSM and DTM extents:
|
Output resolution (meters) |
|
[numeric: double] |
Change the output raster resolution to the desired value. |
Resampling method |
|
[enumeration] |
Resampling method for output resolution:
|
Output NDVI |
|
[raster] |
Output raster. |
Output mask |
|
[raster] |
Output raster. |
Output sieve |
|
[raster] |
Output raster. |
Warning
The NDVI value threshold should be adjusted according to the acquisition date of your images. Typically, periods of lower vegetation activity require a lower threshold.
Warning
The output resolution of your mask should match the resolution used in Generate DHM. You can set this using the Output Resolution parameter.
Typical resampling methods are Average for downsampling and Nearest Neighbour for upsampling.
Outputs#
Label |
Name |
Type |
Description |
|---|---|---|---|
Output NDVI |
|
[raster] |
NDVI raster representing vegetation. |
Output mask |
|
[raster] |
Binary mask where pixels above the threshold are set to 1. |
Output sieve |
|
[raster] |
Binary mask with small holes removed based on the sieve threshold. |