title: How to get objects from the image and get a pixel map of the image?
body: <p>So i have an image with a red circle and blue circle, with black obstacles on a white background. I would like to get 2d Matrix of the image and map my objects in a 2d matrix with different numbers ( 1 for red circle area; 2 for black; and 3 for obstacles). How can I implement it?</p>