// Box Filter ou Nearest Neighbour (plus proche voisin)
function result = boxFilter(value)

   if (value > -0.5) & (value <= 0.5)  
      result = 1.0;
   else
      result = 0.0;
   end;

endfunction;

