Imagine we have observed some pixel intensities
along a scanline. We denote these observations by a vector . We
wish to find the position on the scanline for which the
posterior
probability of the sets of texture descriptors
on both sides are maximum. If we assume a prior texture for both sides
then, the a posterior probability of on both sides
given the
observation vector and the prior textures and
be expressed as follows.
These probability terms can be calculated in an efficient way along the vector of observations using a recursive algorithm as demonstrated in the following.