#include <ThinLensCamera.h>
|
| ThinLensCamera (float64 lensRadius, float64 focalDistance, const math::Vector2D &sensorSize, const math::Transform *rasterToSensor, const math::RigidTransform *cameraToWorld) |
|
math::Spectrum | receiveRay (const math::Vector2D &rasterCoord, Ray *out_ray) const override |
| Generate a ray received by the receiver.
|
|
void | evalEmittedImportanceAndPdfW (const math::Vector3R &targetPos, math::Vector2R *const out_filmCoord, math::Vector3R *const out_importance, real *out_filmArea, real *const out_pdfW) const override |
|
const math::RigidTransform & | getCameraToWorld () const |
|
| RectangularSensorReceiver (const math::Vector2D &sensorSize, const math::Transform *rasterToSensor, const math::RigidTransform *receiverToWorld) |
|
const math::Vector2D & | getSensorSize () const |
|
const math::Transform & | getRasterToSensor () const |
|
| Receiver (const math::RigidTransform *receiverToWorld) |
|
virtual | ~Receiver ()=default |
|
const math::RigidTransform & | getReceiverToWorld () const |
|
◆ ThinLensCamera()
- Parameters
-
lensRadius | Radius of the thin lens. |
focalDistance | The distance to the plane this camera is focusing on. |
sensorSize | Size of the installed sensor. |
rasterToSensor | Transform from raster to sensor position (in camera space). |
cameraToWorld | Transform from camera to world space. |
◆ evalEmittedImportanceAndPdfW()
void ph::ThinLensCamera::evalEmittedImportanceAndPdfW |
( |
const math::Vector3R & | targetPos, |
|
|
math::Vector2R *const | out_filmCoord, |
|
|
math::Vector3R *const | out_importance, |
|
|
real * | out_filmArea, |
|
|
real *const | out_pdfW ) const |
|
overridevirtual |
◆ getCameraToWorld()
◆ receiveRay()
Generate a ray received by the receiver.
Given raster coordinates, generate a corresponding ray that would have hit that location from the light entry of the receiver. The light entry would be the outmost surface of a camera's lens system for example. This method is for Monte-Carlo sampling.
- Returns
- A weighting factor for the received quantity. Proper sensor response and sampling PDF are included in the returned weight.
Implements ph::RectangularSensorReceiver.
The documentation for this class was generated from the following files: