I want to identify locations in an area of interest where the NDVI values are maximum and to achieve that I need to extract regions in NDVI image based on the range of values i.e
0-0.5 classA and
0.51-1 classB. So the output image will have two
classes(calss A and B) and many regions based on the connectivity of the similar class pixels.
Following figure illustrates what I want to achieve.
- At first there is the image with raw values
- Image is classified into two classes based on the given ranges
- Then three regions are detected in image based on the connectivity of the similar class pixels
- Finally the pixels with the highest NDVI are extracted.
I need to automate this process for a very large therefore I am using Google Earth Engine. I have searched about this kind of regioning a lot but could not find anything specific to this. Is is possible to do this in Google Earth Engine or any function available in GEE or will I have to extract the data for the region of interest and then do all this by own?