Contents

BNNSLinearSamplingUnalignCorners

The unalign corners sampling mode.

Declaration

var BNNSLinearSamplingUnalignCorners: BNNSLinearSamplingMode { get }

Discussion

Given an input grid with a size of Xin and an output grid with a size Xout, this mode samples the grid using the following:

spacing = Xin / Xout

grid_point[i] = min(Xin - 1, max(0, i*spacing + 0.5*spacing - 0.5)), for i=0,1,...,Xout-1

See Also

Constants