Transport-Only Semantics
This function returns a SHARP, pixel-perfect transport of A's pixels
to positions determined by the assignment to B.
Key Points:
Assignment computed using: cost = alpha * color_dist + beta * spatial_dist
B's COLORS influence assignment but DO NOT appear in output
Result has A's colors arranged to match B's layout
No motion blur (unlike intermediate frames in animation)
See pixel_morph_animate for detailed explanation of
assignment vs rendering semantics.
Permutation Warnings
Assignment is guaranteed to be a bijection (permutation) ONLY when:
With downscaling or tiled modes, assignment may have:
If assignment is not a bijection (due to downscaling or tiling),
a warning will be issued. The result may contain:
For guaranteed pixel-perfect results, use:
pixel_morph(A, B, mode = "exact", downscale_steps = 0)