Files
opencv-MIRROR/modules
SWETANK KUMAR 8b5e51541d dnn: add the ONNX DeformConv operator (#31214)
* dnn: add the ONNX DeformConv operator

Adds a CPU DeformConv layer for the new engine (2D, opsets 19-22). Each
kernel tap samples the input bilinearly at its offset position (corners
outside the image count as zero, like the ONNX reference), the optional
mask scales the samples, and each group is then one fastGemm. group,
offset_group, strides, dilations, pads and the optional B and mask
inputs are supported.

Enables the 4 DeformConv conformance tests and adds two tests for groups,
strides, dilations, asymmetric pads, batch 2, and a mask without a bias.

* dnn: DeformConv review fixes

- compute the 4 corner indices and weights once per (offset group, k, i, j)
  and reuse them for all channels of the offset group (branch-free inner loop)
- read kernel_size/stride/dilation/pad with params.getVector<int>()
- take the output size from convInferShape()

* dnn: DeformConv: keep the im2col buffer in the engine scratch pool, use cvFloor, parallel bias
2026-12-02 11:50:49 +05:30
..
2026-12-01 23:18:38 +05:30