gradoptics.integrator.base_integrator
- class gradoptics.integrator.base_integrator.BaseIntegrator
Bases:
abc.ABC
Base class for integrators.
- abstract compute_integral(incident_rays, pdf, t_min, t_max)
Computes the line integral between
t_min
andt_max
of the incident rays through the densitypdf
- Parameters
incident_rays – The rays for which the line integrals should be computed (
Rays
)pdf – The pdf for which line integrals should be computed
t_min – Lower integration bounds (
torch.tensor
)t_max – Higher integration bounds (
torch.tensor
)
- Returns
Computed lines integrals (
torch.tensor
)