I am looking for some clues for an optimization problem.
My problem consists of arriving to a image by optimizing multiple layers with the pixel position probability.
The first image on the left is a zoom of the greyscale image with only two grey values, followed by the probability of each cell taking one value of grey, and the same probability for the value black. Finally, I am looking for a way to arrive to the start image by using only the two layers.
In the end, I will be working with a complete image like this one:
I understand that this will not give me a great result and that I need to add constraints to my problem; however, I am completely lost on the subject. I have found a lot of documentation for optimization, but not a good tutorial or examples for optimization problems defined in a Euclidean space. Is there documentation that I could read, a basic tutorial or code examples?