I would like to know whether it is possible to plot points automatically on a map in ArcGIS by using a raster file as a reference.
The image below would represent an example of line that comes from thresholding procedures using OpenCV. Each point would be plotted following the white line (in contrast with the black background):
I would have done it manually but the number of lines if huge.
My view would have been to ask ArcGIS to recognize the white pixels positions and affect a coordinate for each pixel. The output would be a table that can be exported in a .csv file.
If someone has a better idea or you think it is not possible, I would be happy to hear your thoughts.
Edit
Only points actually. I though about coding something similar the following.
We extract white pixels only:
for i in range(img.shape[0]):
for j in range(img.shape[1]):
if img[i][j] == "255":
... to be defined
Then we call the Raster To Point tool from ArcGIS to convert white pixels only into points:
arcpy.RasterToPoint_conversion("image_with_white_pixels.jpg", "c:/output/source.shp", "VALUE")
Then I guess I would define the coordinate of the points using the Add XY Coordinates tool (from Data management toolbox).
