The important part here is that from what we already know, we can get for every block, kind of a distribution of probability of shape and probability of colors, merge them, and then we get the probability of every pixel being either foreground or background. 