nThe error function is derived using Bayesian Parameter
Estimation.
nThe error function takes into account the errors due to the differences in color, coordinates, rendering parameters and prior probabilities of the parameters.
nFor each iteration, the algorithm computes the gradient of the error function at certain points and then changes the values of the parameters.
n