halide-excursions icon indicating copy to clipboard operation
halide-excursions copied to clipboard

error bilinear result

Open champyen opened this issue 6 years ago • 0 comments

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) );

champyen avatar Mar 31 '18 06:03 champyen