I have a .png which has been georeferenced.
There are rectangles on the png that are a particular shade of red.
I would like to convert the raster data (.png) to polygons so that I can find the coordinates of the centroid of each of these rectangles.
Here is my Raster Calculator code: Con((Raster(r"[filename].Band_1" == 230) & (Raster(r"[filename.Band_2") == 2) & (Raster(r"[filename].Band_3")==3),1,0).
The issue is that Raster Calculator does not recognize the RGB bands.
Error:
"Input Raster: Dataset [filename].Band_1 does not exist or is notsupported."
What is wrong with my syntax?