Is it possible to get the coordinates of polygons drawn with the “area of interest” tool in EO browser? I would like to use the polygons in custom scripts to get different effects on the areas inside and outside of the polygons. For example to render the area outside the polygon grayscale and area inside in colour, so that focus will be on the area inside the polygon. Would be a nice effect to use on timelapses to avoid changes outside of the area of interest distracting from what is happening inside the area of interest.
I would like to do something like this:
if(insidePolygon)
returnt2.5*B04, 2.5*B03, 2.5*B02]
}
else{
returnt1.5*B04, 1.5*B04, 1.5*B04]
}
If it is not possible to use the drawn polygons in custom scripts, would it be possible to define a shape with javascript for the same kind of use and decide the position of the shape with the longitude and latitude coordinates?