library(FIELDimageR)
library(raster)
EX1<-stack("C:/Users/dell/Downloads/EX2_RGB.tif")
plotRGB(EX1, r = 1, g = 2, b = 3)
EX1.Crop <- fieldCrop(mosaic = EX1)
EX1.Rotated<-fieldRotate(mosaic = EX1.Crop, clockwise = F, h=F)
EX1.Rotated<-fieldRotate(mosaic = EX1.Crop, theta = 2.3)
source(system.file("extdata", "fieldRotate.R", package = "FIELDimageR"))
EX1.Rotated<-fieldRotate(mosaic = EX1.Crop, theta = 2.3, extentGIS=TRUE)
EX1.Indices<- fieldIndex(mosaic = EX1.RemSoil$newMosaic, Red = 1, Green = 2, Blue = 3, index = c("NGRDI","BGI"), myIndex = c("(Red-Blue)/Green"))
EX1.Indices.myIndex<- fieldIndex(mosaic = EX1.RemSoil$newMosaic, Red = 1, Green = 2, Blue = 3, index = c("NGRDI","BGI"), myIndex = c("(Red-Blue)/Green","Red/Green","Blue/Green"))
So sir how can i get the NDVI??
Regards
IMRAN KHAN
--
You received this message because you are subscribed to the Google Groups "FIELDimageR: A R package to analyze orthomosaic images from field trials." group.
To unsubscribe from this group and stop receiving emails from it, send an email to FIELDimageR...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/FIELDimageR/e805f17a-9bdf-4248-ab83-0275988be1f7n%40googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "FIELDimageR: A R package to analyze orthomosaic images from field trials." group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/FIELDimageR/gwV16Ad3buU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to FIELDimageR...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/FIELDimageR/0bbc8198-ca8e-4bba-9669-c237d5dec8b1n%40googlegroups.com.
Hi Imran,
Unfortunately, you can’t calculate NDVI.
The image that you shared is an RGB image with three layers (Red, Green, and Blue). To calculate NDVI or NDRE you need a Multispectral image with Red-Edge and NIR layers besides the RGB.
Here, there are some nice reviews to help you to understand the difference:
· https://doi.org/10.3389/fpls.2017.01111
· https://doi.org/10.1016/j.tplants.2013.09.008
· https://doi.org/10.1016/j.tplants.2018.11.007
Using FIELDimageR and your image you can calculate other RGB indices as “BI”, “SCI”, “GLI”, “HI”, “NGRDI”, “SI”, “VARI”, “HUE”, and “BGI” (https://github.com/OpenDroneMap/FIELDimageR#P6). For example, using the code below:
### START ###
library(FIELDimageR)
library(raster)
EX1<-stack("EX6_RGB.JPG")
plotRGB(EX1)
EX1.Indices<- fieldIndex(mosaic = EX1, Red = 1, Green = 2, Blue = 3, index = c("NGRDI","BGI"))
### END ###
Hope this explanation helps you.
Best,
Filipe