Skip to content

RGB image to vINDEX, vINDEX = {TGI, GLI, VIgreen, vNDVI}

License

Notifications You must be signed in to change notification settings

dydgns2017/RGB2vINDEX

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RGB2vINDEX

RGB image to vINDEX, vINDEX = {TGI, GLI, VARY, VIgreen, vNDVI}

Installation

conda create -n vINDEX python=3.9
conda activate vINDEX
conda install -c conda-forge opencv
pip install numpy pyvips ## have to install vips-dev lib on window OS
## Linux
# apt install -y libvips

Equation of vINDEX

TGI (Triangular Greeness Index)


$$ TGI = { (\lambda_{Red}-\lambda_{Blue})(\rho_{Red}-\rho_{Green}) - (\lambda_{Red}-\lambda_{Green})(\rho_{Red}-\rho_{Blue}) \over 2} $$

VARI (Visible Atmospheric Resistant Index)


$$ VARI = { Green-Red \over Green+Red-Blue} $$

GLI(Green Leaf Index)


$$ GLI = { (Green-Red) + (Grren-Blue) \over (2*Green)+Red+Blue} $$

VIgreen(Visible Atmospherically Resistant Indices Green)


$$ VI_{Green} = { R_{green} - R_{red} \over R_{green} + R_{red}} $$

vNDVI(visible NDVI)


$$ vNDVI = F (camera, red, green, blue) = C ∗ (red^{w1} ∗ green^{w2} ∗ blue^{w3}) $$

Code Example

# python RGB2GREEN.py --generate TGI|VARI|GLI|VIgreen|vNDVI --dataset dataset, relative path
python RGB2GREEN.py --generate GLI --datasets dataset

Reference

About

RGB image to vINDEX, vINDEX = {TGI, GLI, VIgreen, vNDVI}

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages