Compact Ordered Nodal Variation · visual paper · working resizer

Resize sharply.
Keep the edge honest.*

A resizer has to invent detail when pixels spread apart and combine detail when pixels crowd together. CONV gives both operations one geometry: a sharp continuous profile whose turns are admitted by the image, then direct evaluation for enlargement and basin integration for reduction.

* A “turn” is a change from rising to falling or falling to rising. Extra turns appear as ringing: pale outlines, dark rims, or ripples that were absent from the sampled image.

The payoff

A good resize should survive close inspection.

Edges should remain decisive. Smooth detail should remain smooth. Bright and dark halos should not appear beside a transition simply because a sharp kernel uses signed lobes. CONV starts from a high-order local proposal, admits only the observed order of rise and fall, and carries that profile to any target size.

The source pixels Four low samples followed by four high samples define one rising edge.
Pixels suppliedOne clean transition from dark to light.
A ringing interpolation The reconstructed curve dips, rises beyond the high samples, and settles, adding two turns beside the edge.
Ordinary sharp kernelExtra turns become a dark rim and a bright halo.
CONV interpolation The reconstructed curve rises once between the low and high samples, preserving the observed turn order.
CONVThe edge stays sharp and the one witnessed rise stays one rise.
01Enlargement remains cardinal.

Whenever the target contains a source site, that original sample passes through unchanged.

02Reduction averages geometry.

Each smaller pixel integrates the admitted profile across its full target basin.

03Edges do not grow echoes.

Across each horizontal and vertical pass, the result cannot add a rise–fall pair absent from the source.

0 / 160hard-edge tests where CONV added an extra turn

160 / 160the same hard-edge tests where Lanczos-3 added extra turns

56 / 56well-sampled line tests where CONV also had lower error than Lanczos-3

The complete idea

One geometry, three realizations.

The same finite admitted-current state becomes a continuous interpolator, a matched inverse representation, and a compiled image operator.

  1. 01Observe differences

    Forward differences produce the endpoint mass δ and the ordered sign lineage σ.

  2. 02Propose current

    A compact fourth-order two-jet becomes five raw quintic current increments a.

  3. 03Admit current

    Projection finds the nearest c with total mass δ and signs permitted by σ.

  4. 04Synthesize values

    Cumulative current forms Bernstein controls for any endpoint-aligned target grid.

Continuous transportEvaluate any larger lattice; integrate target basins on reduction.
Matched multiresolutionPredict centered moments; retain residuals for exact return.
Compiled CONV*FIR analysis, exact scan, scalar admission, polyphase synthesis.

The operator, running

Resize through transported variation

This instrument runs the paper’s transported-current core: compact jet analysis, ordered sign scan, exact five-current admission, and compiled Bernstein evaluation. Enlargements query the continuous profile directly. Reductions integrate that same profile over target-pixel basins. SIMD WebAssembly runs first; the tested JavaScript implementation is the compatibility path.

Fill target size

Choose an image, then fill a preset or type any target size.

No image selected.

01 / source samplesAwaiting an image.
02 / admitted synthesisAwaiting a result.

Browser boundary: 5 × 5 minimum, 5 million source pixels and 5 million output pixels. Arbitrary enlargement and reduction may be combined across axes. RGB travels in premultiplied-alpha coordinates so transparent edges stay clean.

01 · Introduction

Interpolation begins with missing variation.

Samples record values. Their forward differences also record an ordered sequence of rising, level, and falling intervals. Filling the space between samples therefore chooses a derivative-sign topology as well as a set of intermediate values.

Nearest-neighbor and multilinear rules preserve a narrow range of behavior by discarding resolved shape. Cubic and windowed-sinc kernels recover shape with signed lobes that can insert extra extrema near transitions. Passband fidelity and output range leave that added rise–fall structure largely invisible.

CONV makes the missing state explicit. The endpoint difference supplies conserved current mass. The sequence of secant signs supplies an ordered lineage. A high-order local model proposes how to distribute the current inside each cell, and exact projection changes only the components that conflict with the recorded lineage.

Shape-preserving cubic and quintic splines already constrain monotone intervals. CONV carries the order of transitions across the whole sampled line and permits a witnessed transition to move into a nearby current slot selected by least disagreement. The resulting convex fibre joins endpoint conservation, deterministic admission, and the variation-diminishing proof in one finite operator.

Values say where the curve must pass. Signed current says which turns the curve is allowed to contain.

02 · Interpolation requirements

Six requirements force one representation.

These properties jointly determine the quintic degree, the current coordinates, the admission rule, and the lifting state. Each later formula exists to satisfy this set together.

CardinalEvery original sample survives at its nested output site.
Affine-exactConstants and straight coordinate ramps remain exact.
Current-conservativeFine differences telescope to the observed cell difference.
Order-awareNo extra alternating derivative pair appears inside a factor.
DirectFinite local analysis and polynomial evaluation; no global solve.
ReversibleRetained lifting detail returns the exact fine samples.

Observation consistency

Ds 𝒯s = I (1)

𝒯s refines the grid; Ds selects every sth site. Their composition is the identity. Every observed pixel therefore retains the status of evidence throughout synthesis.

Cardinal interpolation through all source nodes A continuous CONV curve passes exactly through seven marked source samples.
Refined curve, original nodes. Every marked node remains exact.
Cell currentBsdh𝒯s = dcFine differences sum back to the observed difference.
Variation orderV((𝒯y)′) ≤ var(δ0,…,δN−2)No unwitnessed alternating sign pair.
Exact lifting𝒮s𝒜s = IRetain detail and the round trip is exact.

03 · Compact two-jet

Accuracy enters before constraint.

CONV begins with a five-point estimate of the first and second derivatives. On a smooth, unit-spaced interior line, both estimates are fourth-order accurate. Centered and one-sided closures handle the two ends from observed samples alone. The proposal therefore contains resolved local shape before admission examines its sign structure.

Interior jet

pi = (yi−2 − 8yi−1 + 8yi+1 − yi+2) / 12 qi = (−yi+2 + 16yi+1 − 30yi + 16yi−1 − yi−2) / 12

The two-jet supplies local geometric accuracy. The lineage supplies admissible derivative-sign order. Their separation preserves the full proposal wherever its current already agrees with the sampled record.

i−2i−1ii+1i+2 pᵢqᵢ
One compact neighborhood, two derivative channels, one quintic proposal.

The jet becomes six quintic Bézier controls in each cell. Their five consecutive differences form the proposed differential current ai. The five currents already add to the cell’s endpoint difference. Admission changes their distribution only when their signs contradict the ordered record, so the compact jet remains active across the resolved smooth regime.

04 · Ordered lineage and convex admission

The samples supply an ordered sign lineage.

The coarse secants δi = yi+1 − yi create a sequence of plus, zero, and minus evidence. Zero runs inherit the last nonzero sign, with the first future sign seeding an initial zero run. Each observed sign transition receives one ordered boundary. A local least-disagreement rule places that boundary among nearby control currents without allowing transitions to cross.

Raw and admitted current sequences A raw sequence alternates signs several times. The admitted sequence follows the single positive-to-negative transition witnessed by the coarse differences. RAW QUINTIC CURRENT Π𝒞 ADMITTED CURRENT OBSERVED LEDGER+ rise− fall
Projection changes only the conflicting current components. The endpoint mass and the witnessed rise→fall order survive.

Signed mass fibre

ci = arg minc ½ ‖c − ai‖22 subject to 1Tc = δi,   σijcj ≥ 0

The sign sequence and mass constraint define a closed convex slice of an orthant. Euclidean projection supplies one nearest admitted current. Because all feasible points have the same total mass, the correction can relocate within-cell motion without changing the observed endpoint difference.

raw aᵢadmitted cᵢ1ᵀc = δᵢsigned orthant slice 𝒞
A two-dimensional slice of the five-current projection geometry.

05 · Synthesis

Bernstein synthesis turns admitted current into a curve.

Cumulative sums of the admitted current recover six quintic Bézier controls from the left sample. The nonnegative Bernstein basis then evaluates the curve. Total positivity carries the discrete sign-order bound into the continuous derivative: the synthesized segment cannot oscillate more often than its admitted current sequence.

Quintic Bernstein synthesis

Pi(u) = ∑j=05 bijBj5(u) (2)

Drag the phase. De Casteljau evaluation follows the control polygon while the endpoints remain fixed.

Control polygon, synthesized curve, current evaluation phase.

06 · Scale-global reduction

Shrinking integrates the geometry already constructed.

A smaller image asks for the average content of each target pixel. The admitted CONV profile already describes the source continuously, so reduction integrates that profile across the target grid’s clipped Voronoi basins.

For target coordinate xr = r(N−1)/(M−1), the basin reaches halfway toward its neighboring target coordinates and clips to the source domain at the two ends. The reduced sample is the basin average. Because each source-cell profile is quintic, three-point Gauss–Legendre quadrature is exact on every cell fragment. The browser compiles those fragment integrals once per axis and reuses them for every scanline.

Basin restriction

zr = 1|Br| ∫Br (𝒯y)(x) dx

Every output value accounts for the entire interval it represents. Constants remain exact, total integrated content is conserved, and high-frequency alternation is averaged before it can alias into the smaller grid.

The curve is built once. Each target pixel receives the exact average over its basin.

In two dimensions, synthesis is horizontal then vertical, so matched reduction completes the factors in reverse order: vertical basins first, horizontal basins second. A mixed resize completes every reducing factor before every enlarging factor. This is the transport rule implemented in the instrument above.

07 · Cartesian construction

Images inherit one ledger per Cartesian factor.

CONV applies the same componentwise operator across one image axis, reaches a synchronization barrier, then analyzes and synthesizes the other axis. The declared order belongs to the operator. Permuting the data axes together with that order produces the correspondingly permuted result.

The formal two-dimensional construction evaluates both factor orders. A source-conditioned Riemannian action transports the nodal order coordinate, and a structure-tensor admission blends the two results convexly. At source nodes, the apparent all-source chart bank collapses to a Kronecker trace. CONV* extends that trace with the unique cellwise bilinear coordinate, so the only two-dimensional compilation defect is the coordinate error multiplied by the disagreement between the two factor orders.

The action is well-defined on the closed source rectangle. Its continuous positive-definite metric makes the resulting distance finite, continuous, and bi-Lipschitz equivalent to ordinary distance; a shortest path is attained. If several shortest paths tie, admission remains single-valued because it uses their common minimum length rather than choosing a path.

Ordered factor composition

𝒯(d)s = 𝒯(πd)s ⋯ 𝒯(π1)s

Each order contains a full intermediate-field barrier. Their convex admission is exact wherever the two orders commute, including constant and affine coordinate fields. The browser resizer exposes the compact ordered transport core directly; the paper develops and audits the full Eikonal order blend separately.

x y
Coarse samples → horizontal factor → vertical factor.

The blend adds one derivative term. Convex admission keeps the final value between the two factor-order candidates. Along a line, a varying admission weight also contributes θ′(B−A). The unconditional sign-pair theorem therefore applies to each declared Cartesian composition; the linewise sign topology of the spatial blend follows the paper’s exact derivative criterion.

08 · Analytical properties

The main theorem controls topology.

Ringing here means an added pair of derivative-sign transitions along an admitted Cartesian factor. This definition separates unwitnessed oscillation from amplitude overshoot and from the ordinary movement of an existing extremum between sample nodes.

01

Cardinality and commutation. Nested coarse samples are exact, and fine differences block-sum to their coarse current.

02

Affine reproduction. The compact jet recovers an affine line exactly; admission has nothing to change.

03

Factorwise ringing incapability. Along each admitted Cartesian factor, the synthesized derivative has no more sign changes than the sampled differences.

04

Grid-size-independent bounds. Pointwise and mean-square error depend on fixed local constants and source error, not on the number of lattice sites.

THEOREM
varxk(∂xk𝒯y) ≤ var(dky)

For each fixed transverse coordinate and each admitted factor, total positivity carries the ordered coefficient bound into the continuous derivative.

Scope of the theorem: along each admitted Cartesian factor, CONV cannot create an alternating rise–fall or fall–rise pair absent from the sampled differences. An existing extremum may move between nodes, and a general path across the tensor-product surface has no corresponding theorem. The guarantee is exactly the one used by ordered grid transfer: every factor inherits its turns from recorded factor currents.

09 · Restriction and matched multiresolution

The same current state survives a change of scale.

Dyadic raster analysis treats each adjacent fine pair as a cell. Its parent is the positive average, which annihilates the Nyquist component exactly; its complementary coordinate is the centered child moment. CONV predicts the admissible moment from the coarse averages, and the difference between that prediction and the true child moment becomes the lifting residual.

Zero-residual synthesis preserves cell mass and transported sign variation while discarding unpredicted fine structure. Restoring the residual moments reconstructs every fine value exactly in arithmetic. In two dimensions, one block mean and horizontal, vertical, and mixed residual moments account for every scalar degree of freedom.

Analysis / synthesis pair

zi = (x2i + x2i+1) / 2,   μ★i = (x2i+1 − x2i) / 2 ri = μ★i − μ̂i(z),   x2i:2i+1 = zi ∓ (μ̂i + ri)
fine cell pairs positive averages z moment residuals r exact return
Positive restriction removes the Nyquist component; residual centered moments preserve exact recovery.

10 · Synthetic evaluation

Admission removes topology errors without blunting the jet.

The evaluation uses direct target values from declared closed-form carriers, edges, bumps, chirps, radial transitions, and crossing fields. Separate censuses measure point fidelity, sign topology, and matched analysis/synthesis behavior.

The decisive ablation keeps the stencils, quintic controls, Cartesian order, and evaluator while removing only current admission. The raw proposal adds sign changes in all 160 step and box cases; admitted CONV adds none. Across every reported grid, CONV also has slightly lower aggregate MSE than the raw proposal and converges to the same resolved-field behavior. The proposal remains intact on resolved smooth cells; admission activates where a conflicting current would create a topology error.

At nine source nodes, several analytic populations remain underresolved and Lanczos-3 retains the aggregate advantage. Once the census resolves, the compact jet’s approximation order dominates: CONV wins every one-dimensional case at 129 nodes and gives lower geometric-mean error on the reported 17 × 17 and 33 × 33 two-dimensional grids.

Log-scale convergence charts comparing CONV, raw two-jet, Lanczos-3, bilinear, and EASU across analytic one- and two-dimensional fields.
Resolution census. In the resolved regime, the compact two-jet’s approximation order governs the admitted result.
160 / 160step and box cases with zero CONV sign surplus
56 / 56one-dimensional cases won against Lanczos-3 at 129 nodes
4.31 × 10−8two-dimensional geometric-mean MSE at 33 × 33 source nodes
Topology census comparing added derivative-sign turns for CONV, a raw quintic proposal, Lanczos-3, and bilinear interpolation.
Discontinuity topology. Admission removes every unwitnessed turn created by the raw high-order proposal.
Conservative resize-cycle error across analytic interfaces and oscillatory fields.
Matched conservative analysis and synthesis. Positive restriction removes axial and checkerboard Nyquist inputs exactly; retained moments return the fine field.
Fine-grid truth and resize cycles using CONV basin restriction, Lanczos-3, and bilinear interpolation.
The practical raster cycle uses basin restriction followed by compiled CONV synthesis—the same reduction/enlargement pairing exposed by the browser tool.
Technical analytic edge, carrier, curved, and crossing fields reconstructed by CONV and comparison methods.
One declared case from each two-dimensional family, shown on a dense endpoint-aligned query lattice.
Paired point-fidelity results versus Lanczos-3. A ratio below one favors CONV.
Source nodes1-D W–L1-D ratio2-D W–L2-D ratio
928–281.2479–191.277
1736–200.092919–90.800
3344–120.0075114–140.126
6552–40.000481——
12956–00.0000275——

11 · Compiled execution

Most of the proof compiles into a compact image operator.

At a fixed integer scale, the formal stages reduce to a compact FIR current bank, a segmented sign scan, exact five-value admission, and a polyphase dot product. CONV* names this compiled schedule. Every reduction is algebraic, and its measured output agrees with the formal operator at binary64 rounding scale. The lineage scan remains because a zero run may inherit its sign from a witness arbitrarily far away.

ysamples
→
FIRa, δ
→
scanσ
→
projectc
→
polyphaseŷ

Twofold midpoint

ŷ(i + ½) = yi + 132[31, 26, 16, 6, 1]ci

The Bézier controls never need to be stored. At fixed scale, the cumulative Bernstein weights become a small phase matrix.

31261661
The exact 2× midpoint phase weights, before the common division by 32.

Five breakpoint intervals replace 31 face tests.

The new reduction follows the KKT conditions. For ledger sign σj, each admitted current is a clipped shift of its proposal: positive slots use max(0, aj − λ) and negative slots use min(0, aj − λ). Their sum is continuous, nonincreasing, and piecewise affine in λ, with only five breakpoints. Sorting those values exposes at most six affine intervals; the root inside the valid interval returns the same unique projection as the 31-face search.

Signed clip cj(λ) = max(0, aj − λ)  or  min(0, aj − λ) The ledger chooses the half-line; one shared shift moves every proposal toward the conservation hyperplane.
Active-interval root λA = (Σj∈A aj − δ) / |A| Once the five breakpoints reveal the active set A, conservation fixes the threshold without iteration.

The implication is executable: the browser’s WebAssembly kernel performs a five-value sort, one scalar root, and five clips per component. Exact admission avoids constructing and scoring every nonempty face.

Lineage has an exact scan schedule.

Zero-sign inheritance is a seeded prefix propagation. Transition costs split into a prefix conflict sum and a suffix conflict sum. Only runs of adjacent coarse transitions retain boundary dependence, and each transition in such a run is a deterministic map over nine possible offsets. Associative composition permits an exact parallel prefix schedule while retaining the first-minimum tie rule.

A barrier remains between Cartesian factors because the second factor analyzes the nonlinear field synthesized by the first. Tiled transposition can make both passes contiguous; removing the barrier would change the operator.

These reductions specify the exact work schedule. Actual throughput still depends on the target architecture: scans and local scalar admission compete with intermediate-factor traffic, so the algebra alone supplies no universal performance ordering.

Arbitrary targets compile too.

Integer refinement repeats a small phase bank. An arbitrary target has a finite coordinate plan: one source cell and five cumulative Bernstein weights for each output site. Reduction has a similarly finite basin plan. The exact Gauss integrals collapse into one anchor coefficient and five current coefficients for each source-cell fragment crossed by a target basin.

The browser compiles either plan once per axis, then reuses it across every row or column. The hot loop becomes coefficient application over admitted current. WebAssembly owns the image-sized intermediate, keeps the work off the main thread, and remains the default backend whenever the browser exposes it.

12 · Inversion and method boundary

CONV is one geometric state with several exact views.

The admitted current defines a continuous source-cell profile for arbitrary endpoint-aligned interpolation. Basin integration restricts that profile to a smaller raster. At dyadic scale, positive averages and residual centered moments turn it into a conservative lifting transform. Repeated phases compile into a polyphase bank, while arbitrary targets compile into a finite coordinate plan.

Wavelet lifting establishes the analysis–prediction–detail principle, while shape-preserving splines establish constrained polynomial reconstruction. CONV joins those lines through transported differential current: the predictor used to create new samples is also the predictor used to explain and exactly recover fine-scale variation.

The browser realizes the ordered transport core in SIMD WebAssembly, processes the two Cartesian factors in cancellable chunks, and downloads the result as PNG. The formal Eikonal order blend, conservative lifting state, and compact browser transport are clearly separated implementations over the same admitted-current geometry.

13 · Selected references

Lineage of the work.

  1. C. E. Shannon, “Communication in the presence of noise,” Proceedings of the IRE, 1949.
  2. C. Lanczos, Applied Analysis, 1956.
  3. R. G. Keys, “Cubic convolution interpolation for digital image processing,” IEEE Transactions on Acoustics, Speech, and Signal Processing, 1981.
  4. F. N. Fritsch and R. E. Carlson, “Monotone piecewise cubic interpolation,” SIAM Journal on Numerical Analysis, 1980.
  5. J. M. Hyman, “Accurate monotonicity preserving cubic interpolation,” SIAM Journal on Scientific and Statistical Computing, 1983.
  6. P. Costantini, “Co-monotone interpolating splines of arbitrary degree—a local approach,” SIAM Journal on Scientific and Statistical Computing, 1987.
  7. R. Dougherty, A. Edelman, and J. M. Hyman, “Nonnegativity-, monotonicity-, or convexity-preserving cubic and quintic Hermite interpolation,” Mathematics of Computation, 1989.
  8. T. Lux, L. T. Watson, T. Chang, and W. Thacker, “Algorithm 1031: MQSI—monotone quintic spline interpolation,” ACM Transactions on Mathematical Software, 2023.
  9. S. Karlin, Total Positivity, 1968; A. Pinkus, Totally Positive Matrices, 2010.
  10. W. Sweldens, “The lifting scheme: A construction of second generation wavelets,” SIAM Journal on Mathematical Analysis, 1998.