1

Suppose, in Google Earth Engine, I have a classified image with different classes and some test samples as ground control points.

How I can create a Binary feature by comparing classified image and samples?

I want the samples to be assigned a value of 1 if they have the correct class, and 0 if they have the incorrect class.

closed as off-topic by PolyGeo Aug 8 at 19:39

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "When seeking help to debug/write/improve code always provide the desired behavior, a specific problem/error and the shortest code (as formatted text, not pictures) needed to reproduce it in the question body. Providing a clear problem statement and a code attempt helps others to help you." – PolyGeo
If this question can be reworded to fit the rules in the help center, please edit the question.

  • Welcome to GIS SE. As a new user, please be sure to take the short tour to learn about this site's focused Q&A format. – Andy Aug 8 at 13:37
  • What does your code so far look like? – PolyGeo Aug 8 at 19:39