PinholeCamera#

class cherab.lhd.observer.imaging.PinholeCamera#

Bases: CCDArray

Observer 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:
pixelstuple[int, int], optional

A tuple of pixel dimensions for the camera, by default (512, 512).

widthfloat, optional

The CCD sensor x-width in metres, by default 35 mm.

focal_lengthfloat, optional

The distance between pinhole and CCD sensor, by default 24 mm.

pinhole_pointtuple[float, float], optional

The position of pinhole point from the centre of CCD, which represents as (x, y) coordinate, by default (0, 0).

pipelineslist[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 Observer2D and _ObserverBase.

Methods

observe

Ask this Camera to Observe its world.

to

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.

to_local

Returns an affine transform from world space into this nodes local coordinate space.

to_root

Returns an affine transform from local space into the parent node's coordinate space.

Attributes

children

focal_length

Focal length in metres.

frame_sampler

The FrameSampler2D class for this observer.

max_wavelength

Upper wavelength bound for sampled spectral range.

meta

min_wavelength

Lower wavelength bound for sampled spectral range.

name

The name of this node.

parent

The parent of this node in the scenegraph.

pinhole_point

Pinhole point from the centre of CCD

pipelines

A list of pipelines to process the output spectra of these observations.

pixel_samples

The number of samples to take per pixel.

pixels

quiet

ray_extinction_min_depth

Minimum number of paths before russian roulette style ray extinction.

ray_extinction_prob

Probability of ray extinction after every material intersection.

ray_importance_sampling

ray_important_path_weight

Relative weight of important path sampling.

ray_max_depth

Maximum number of Ray paths before terminating Ray.

render_complete

render_engine

root

spectral_bins

The number of spectral samples over the wavelength range.

spectral_rays

The number of smaller sub-spectrum rays the full spectrum will be divided into.

transform

The transform for this node's coordinate system in relation to the parent node.

width

The CCD sensor x-width in metres.