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
Add parentaxes, it, and gt fields to BSplineInterpolation
Storing parentaxes will allow us to do padding via OffsetArrays,
which has the major advantage of keeping the indices of the padded
array in-register with those of the original array. This should
simplify a lot of code.
tcoef(A::AbstractArray{T}) where {T<:Integer} =typeof(float(zero(T)))
93
101
94
-
interpolate!(::Type{TWeights}, A, it::IT, gt::GT) where {TWeights,IT<:DimSpec{BSpline},GT<:DimSpec{GridType}} =BSplineInterpolation(TWeights, prefilter!(TWeights, A, IT, GT), it, gt, Val{0}())
102
+
functioninterpolate!(::Type{TWeights}, A, it::IT, gt::GT) where {TWeights,IT<:DimSpec{BSpline},GT<:DimSpec{GridType}}
103
+
# Set the bounds of the interpolant inward, if necessary
104
+
axsA =axes(A)
105
+
axspad =padded_axes(axsA, it)
106
+
BSplineInterpolation(TWeights, prefilter!(TWeights, A, it, gt), it, gt, fix_axis.(padinset.(axsA, axspad)))
107
+
end
95
108
functioninterpolate!(A::AbstractArray, it::IT, gt::GT) where {IT<:DimSpec{BSpline},GT<:DimSpec{GridType}}
0 commit comments