bug fixing in color projection filter... still under development

This commit is contained in:
Marco Callieri mcallieri 2011-10-13 08:50:35 +00:00
parent a1ee962c26
commit 27d2ef8b49

View File

@ -257,7 +257,7 @@ int floatbuffer::distancefield()
cx = xx-1;
cy = yy;
if(cx >0) // inside image
if(cx >=0) // inside image
if(data[cx + (sx*cy)] != -1) // not background
if(data[cx + (sx*cy)] > currval) // need update
{
@ -285,7 +285,7 @@ int floatbuffer::distancefield()
cx = xx;
cy = yy-1;
if(cy >0) // inside image
if(cy >=0) // inside image
if(data[cx + (sx*cy)] != -1) // not background
if(data[cx + (sx*cy)] > currval) // need update
{