From 27d2ef8b49e57aa805cb07cbc2adde3659d94adb Mon Sep 17 00:00:00 2001 From: Marco Callieri mcallieri Date: Thu, 13 Oct 2011 08:50:35 +0000 Subject: [PATCH] bug fixing in color projection filter... still under development --- src/meshlabplugins/filter_color_projection/floatbuffer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/meshlabplugins/filter_color_projection/floatbuffer.cpp b/src/meshlabplugins/filter_color_projection/floatbuffer.cpp index e671d620b..50041fd39 100644 --- a/src/meshlabplugins/filter_color_projection/floatbuffer.cpp +++ b/src/meshlabplugins/filter_color_projection/floatbuffer.cpp @@ -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 {