0

I am using Earth Engines ee.Clusterer.wekaKMean() for Clustering my Data.

My input is a mosaic of different S1 images containing VV and VH bands.

Is it possible to declare which bands are taken into account?

This is the important part of my code:

/ Define each water-body as a own region
var region = water
// training region is the full image
var training = ms1_new.sample({
  region: region,
  scale: 30,
  numPixels: 5000
});
// train cluster on image
var clusterer = ee.Clusterer.wekaKMeans(3).train(training);
// cluster the complete image
var result = ms1_new.cluster(clusterer);
// Display the clusters with random colors.
Map.addLayer(result, {min: 0, max: 2, palette:['Navy','Green', 'Red']}, 'clusters');
print(result)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.