as such, defining `x = x / nas done in the erroneous sample from skylibs below_ x = np.linspace(0,7,8, dtype=int);
x = x/8`
gives normalized coordinates array([0. , 0.125, 0.25 , 0.375, 0.5 , 0.625, 0.75 , 0.875])
which in an invalid distribution of the normalized space
Missing transformation from normalized uv coordinates space to pixel UV coordinates is causing frequent error, even within skylibs.
problem: example 1D pixel space as array of size n=8
gives discrete coordinates =
array([0, 1, 2, 3, 4, 5, 6, 7])
example 1D normalized space as array of size n=8
gives normalized coordinates =
array([0.0625, 0.1875, 0.3125, 0.4375, 0.5625, 0.6875, 0.8125, 0.9375])
as such, defining `x = x / n
as done in the erroneous sample from skylibs below_
x = np.linspace(0,7,8, dtype=int); x = x/8` gives normalized coordinates array([0. , 0.125, 0.25 , 0.375, 0.5 , 0.625, 0.75 , 0.875]) which in an invalid distribution of the normalized spaceExample error within skylibs:
pixels are not centered properly in normalized coordinate space