It did a very good job for textures.
Wednesday, July 29, 2009
Set up a maximum cutout for each pixel based on the minimum length of the spiral
Another thought
Arbitrarily to reduce the influence around the chosen spiral based on the distance and reordering is based on the distance and the intensity.
Tuesday, July 28, 2009
All of four modifications have some change for the visual effect.
But the change is not very clear.
(1)Non-linearly reduce the influence based on the length of the sprial
Always reordering
length is the length of the spiral. if(Ii>Tii)
in = 255-Ii;
else
{
in = 255 - Ii;
in = in * pow((double)(length+1),-0.2);// influence slow down based on the length
}
(2)Non-linearly reduce the influence based on the radius
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 }
(3)Linearly reduce the influence based on the radius
Alway reordering
r is the distance between the pixel and the center of the spiral mask. if(Ii>Tii)
in = 255-Ii;
else
{
in = 255 - Ii;
in = in * (1 - 0.03 * r);// linear
}
Wednesday, July 22, 2009
Better results by compromise
By compromise, we can choose some pixels to do the reordering when the intensity reduced and others will not change the order during the whole process. It means we try to avoid the clumping where there is a brighter area since we think the clumping at the edges (assumed there are darkness) won't have much artefacts.
Subscribe to:
Posts (Atom)