Springe direkt zu Inhalt

Classification

One possible solution:

var thresholds_ndvi = ee.Image([-0.1, 0.2, 0.5, 1]); //no vegetation; sparse vegetation; light vegetation; high vegetation
var classified_ndvi = image.select('NDVI').gt(thresholds_ndvi).reduce('sum').toInt();

var classifiedParams = {min: 0, max: 4, palette: ['blue', 'white', 'LimeGreen', 'DarkGreen']};
Map.addLayer(classified, classifiedParams, 'Classified');