Tuesday, July 28, 2009

(2)Non-linearly reduce the influence based on the radius







Always reordering
r is the distance between the pixel and the center of the mask
if(Ii>Tii)
in = 255-Ii;
else
{
in = 255 - Ii;
in = in * pow((double)(r+1),-0.2);// (-0.5,-0.2,-0.01)non-linear;//influence slow down }

No comments:

Post a Comment