Contents

BNNSLinearSamplingStrictAlignCorners

The strict align corners sampling mode.

Declaration

var BNNSLinearSamplingStrictAlignCorners: 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 - 1) / (Xout - 1)

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

See Also

Constants