oa::image::pyr_down
Halve an FP32 image with the pyrDown Gaussian-decimate contract. Each output pixel gathers the 5x5 [1, 4, 6, 4, 1] Gaussian neighborhood centered on the doubled source coordinate, following OpenCV’s BORDER_DEFAULT (reflect-101) edge rule. Output spatial extents are (extent + 1) / 2 per axis; layout and format are preserved. Errors Returns an error unless the image is nonempty FP32 NCHW/CHW and all sizes fit the shader ABI.
Function Documentation
Halve an FP32 image with the pyrDown Gaussian-decimate contract. Each output pixel gathers the 5x5 [1, 4, 6, 4, 1] Gaussian neighborhood centered on the doubled source coordinate, following OpenCV’s BORDER_DEFAULT (reflect-101) edge rule. Output spatial extents are (extent + 1) / 2 per axis; layout and format are preserved. Errors Returns an error unless the image is nonempty FP32 NCHW/CHW and all sizes fit the shader ABI.