I'm using the following snippet to convert canny edges
to black and white to highlight boundaries. However, I want to fill the black area with transparent or NODATA
, is there a way to do this in EE?
var final_stacked_canny = ee.Algorithms.CannyEdgeDetector({
image: final_stacked, threshold: 0.7
}).multiply(255);
var perimeterPixelsCanny = final_stacked_canny.select(1).neq(final_stacked_canny.select(0)).rename('perimeter')
Map.addLayer(perimeterPixelsCanny, {}, "Canny On CCCI + GOSAVI + EVI", false)