ParameterizedSurface#

class diffct.ParameterizedSurface(sampler, parameters=())[source]#

Sample local detector offsets from global CPU pixel/view coordinates.

sampler(u, v, view_indices, *parameters) returns shared or per-view (..., 3) offsets on CPU or CUDA. Parameters are explicit finite floating tensors; other geometry configuration must be immutable. Projector snapshots the sampler reference and parameter values per invocation. Snapshot storage scales with parameter sizes, and the sampler’s own allocations remain caller-controlled.

__call__(u, v, view_indices)[source]#

Call self as a function.