You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var relX = (inWidth - 1) / (outWidth - 1);
var relY = (inHeight - 1) / (outHeight - 1);
If the lengths are the same, all is ok
Currently the last interpolated x point is at (outWidth - 1) * (inWidth)/(outWidth)
If inWidth < outWidth then the last point is short of the last input point
If inWidth > outWidth then the last point is beyond the last input point
With this change the last interpolated x point is at (outWidth - 1) * (inWidth-1)/(outWidth-1) is at (inWidth -1)
It is possible that resample*() also requires this change.
The text was updated successfully, but these errors were encountered:
Should
relX
andrelY
inresampleBilinear()
be
If the lengths are the same, all is ok
Currently the last interpolated
x
point is at(outWidth - 1) * (inWidth)/(outWidth)
If
inWidth
<outWidth
then the last point is short of the last input pointIf
inWidth
>outWidth
then the last point is beyond the last input pointWith this change the last interpolated
x
point is at(outWidth - 1) * (inWidth-1)/(outWidth-1)
is at(inWidth -1)
It is possible that
resample*()
also requires this change.The text was updated successfully, but these errors were encountered: