halide-excursions
halide-excursions copied to clipboard
error bilinear result
the code snippet: scale(x,y,c) = Halide::cast<uint8_t>( (1-s) * (1-t) * input(x_lower, y_lower+1, c) + s * (1-t) * input(x_lower+1, y_lower, c) + (1-s) * t * input(x_lower, y_lower+1, c) + s * t * input(x_lower+1, y_lower+1, c) ); should be: scale(x,y,c) = Halide::cast<uint8_t>( (1-s) * (1-t) * input(x_lower, y_lower, c) + s * (1-t) * input(x_lower+1, y_lower, c) + (1-s) * t * input(x_lower, y_lower+1, c) + s * t * input(x_lower+1, y_lower+1, c) );