PinholeCamera#
- class cherab.lhd.observer.imaging.pinhole.PinholeCamera#
Bases:
CCDArrayObserver modeling an idealised CCD-like imaging sensor with pinhole.
A ray triggered from each pixel always goes through the arbitrary pinhole point. The distance from pinhole and imaging sensor represents focal length.
- Parameters:
- pixels
tuple[int,int],optional A tuple of pixel dimensions for the camera, by default
(512, 512).- width
float,optional The CCD sensor x-width in metres, by default 35 mm.
- focal_length
float,optional The distance between pinhole and CCD sensor, by default 24 mm.
- pinhole_point
tuple[float,float],optional The position of pinhole point from the centre of CCD, which represents as (x, y) coordinate, by default
(0, 0).- pipelines
list[Pipeline],optional The list of pipelines that will process the spectrum measured at each pixel by the camera, by default
[RGBPipeline2D()].- **kwargs
kwargs and properties from
Observer2Dand_ObserverBase.
- pixels
Methods
Ask this Camera to Observe its world.
Returns an affine transform that, when applied to a vector or point, transforms the vector or point from the co-ordinate space of the calling node to the co-ordinate space of the target node.
Returns an affine transform from world space into this nodes local coordinate space.
Returns an affine transform from local space into the parent node's coordinate space.
Attributes
Focal length in metres.
The FrameSampler2D class for this observer.
Upper wavelength bound for sampled spectral range.
Lower wavelength bound for sampled spectral range.
The name of this node.
The parent of this node in the scenegraph.
Pinhole point from the centre of CCD
A list of pipelines to process the output spectra of these observations.
The number of samples to take per pixel.
Minimum number of paths before russian roulette style ray extinction.
Probability of ray extinction after every material intersection.
Relative weight of important path sampling.
Maximum number of Ray paths before terminating Ray.
The number of spectral samples over the wavelength range.
The number of smaller sub-spectrum rays the full spectrum will be divided into.
The transform for this node's coordinate system in relation to the parent node.
The CCD sensor x-width in metres.