If you got the Color in an Array of x,y try
xdiff,ydiff=np.Gradient(Colormap)
shape=np.Logical_and(xdiff,ydiff)
it should give you an Image of the spots were the Color changes.
np.unique(Colormap)
gives you all the Colors present
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.