I am trying to make an agent based model similar to
to approximate the solution to a system of PDEs which describe two interacting populations (i.e. Prey and predators).
I would like to specify the initial distribution with a simple picture such as one of these two:
img = Import["https://i.stack.imgur.com/9io21.gif"]
img = Import["https://i.stack.imgur.com/J2JQK.png"]
where white and black represent the distribution of two different populations.
Also is it possible to turn a picture into a distribution function in two dimensions?