Skip to content

feat: bicubic resize (Catmull-Rom) - #69

Merged
0717lee merged 1 commit into
mainfrom
feat/bicubic
Jul 31, 2026
Merged

feat: bicubic resize (Catmull-Rom)#69
0717lee merged 1 commit into
mainfrom
feat/bicubic

Conversation

@0717lee

@0717lee 0717lee commented Jul 31, 2026

Copy link
Copy Markdown
Owner

Adds Image::resize_bicubic(w, h): Catmull-Rom cubic over a 4x4 neighborhood, center-aligned sampling, clamp-to-edge, overshoot clamped to 0..255, alpha interpolated. 4 new tests: same-size identity (weights collapse to 0,1,0,0), flat-field fixed point at 3 scales, step upscale produces intermediate values unlike nearest, degenerate sizes clamp to 1x1. 151/151 tests passing. Closes #66

@0717lee
0717lee merged commit a4fdda5 into main Jul 31, 2026
1 check passed
@0717lee
0717lee deleted the feat/bicubic branch July 31, 2026 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bicubic resize (Catmull-Rom)

1 participant