oa::image::resize
Resize an FP32 channel-first image while preserving its layout and format. NCHW and CHW storage are supported. Nearest sampling follows the donor OA floor-coordinate rule. Bilinear sampling uses half-pixel centers with align_corners = false. Area performs a coverage-weighted box average for downscales and pixel replication for upscales, matching INTER_AREA. Cubic uses the Keys a=-0.75 bicubic kernel over the 4x4 source neighborhood, and Lanczos uses the a=4 sinc kernel over the 8x8 source neighborhood with the filter widened by the inverse scale when downscaling, matching INTER_CUBIC and INTER_LANCZOS4. The call records work asynchronously and returns an Image immediately. Reading its backing matrix is an explicit submission and observation point. Errors Returns an error for a zero target extent, an empty source extent, a dtype or layout outside the admitted checkpoint, checked-size overflow, or a runtime recording failure.