
Focal (stencil) op. radius is the halo in pixels; boundary is one of "constant", "reflect", "nearest", "wrap", "none". Created by focal().
FocalNode.RdFocal (stencil) op. radius is the halo in pixels; boundary is one
of "constant", "reflect", "nearest", "wrap", "none". Created by
focal().
Arguments
- id
Integer node id (assigned by
graph_add()).- parents
Integer ids of parent nodes (may be empty).
- grid
Output
GridSpecof this node.- role
Optional semantic role tag (e.g. "mask", set by
mask()). Pure metadata: never read by the planner or executors; surfaced bydraw()andplan_view().- fn
Neighbourhood function (over the list of shifted arrays).
- radius
Halo radius in pixels.
- boundary
Boundary policy.
- weights
Optional linear kernel, flattened row-major over (dy, dx), length (2*radius+1)^2. When present the op is the weighted sum and is differentiable wrt the weights.