Re:Byte Ordering: On Holy Wars and a Plea for Peace (1980)
by bonoboTP on Monday September 16, 2024 @02:54PM
(#41559274)
I can relate. Spent countless hours on this stuff with computer vision and convnets. The intricacies of align_corners, implementation differences between deep learning frameworks, striding and pooling when numbers aren't neatly divisible, uuh.
This is because of a mess with where it considered pixels located, where texture samples are considered located, and where, when rasterizing an included pixel, the texture coordinates sampled. See detail at [0].
If your graphics API was blurring all your images, you'd be passionate about that half-pixel offset too.
[0] https://www.gamedev.net/blogs/entry/1848486-understanding-ha...