Tuesday, September 15, 2009

The method like the error diffusion

The orders are based on the distance(the intensity) to the two ends(0 and 255). When a pixel is chosen, based on the closer ends choose white or black to draw the pixels. Then find the error between the original intensity and the black or white and distribute it into the mask based the weight function we are choosing. In each mask with radius 2, the weight function is as follows(same as the previous blog),
maxin = max(0.5,(Ii/(5*pow(r,3.0f))));
in = min(maxin, 255-Ii);









No comments:

Post a Comment