CamSim  0.0.0
A rasterization-based simulator for various types of cameras
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
CamSim::ChipTiming Class Reference

Defines chip timings and therefore frames-per-second. More...

Public Member Functions

 ChipTiming ()
 Constructor. More...
 
double subFrameDuration () const
 Return the duration of one subframe resulting from these timings. More...
 
double subFramesPerSecond () const
 Return the subframes-per-second rate resulting from these timings. More...
 

Static Public Member Functions

static ChipTiming fromSubFramesPerSecond (float sfps)
 

Public Attributes

double exposureTime
 Exposure time for each subframe in seconds. More...
 
double readoutTime
 Readout time for each subframe in seconds. More...
 
double pauseTime
 Pause time after all subframes, before the start of a new frame. More...
 

Detailed Description

Defines chip timings and therefore frames-per-second.

In physically-based simulations, the exposure time is important since it determines how much energy a chip pixel receives.

For simple RGB simulation, physical quantities are irrelevant and you can simply set the exposure time to zero and the readout time to the duration of one frame.

Constructor & Destructor Documentation

◆ ChipTiming()

CamSim::ChipTiming::ChipTiming ( )

Constructor.

Member Function Documentation

◆ fromSubFramesPerSecond()

static ChipTiming CamSim::ChipTiming::fromSubFramesPerSecond ( float  sfps)
static

Generate chip timings from subframes-per-second. This ignores exposure time, so this is not suitable for physically-based simulations such as PMD simulation.

◆ subFrameDuration()

double CamSim::ChipTiming::subFrameDuration ( ) const
inline

Return the duration of one subframe resulting from these timings.

◆ subFramesPerSecond()

double CamSim::ChipTiming::subFramesPerSecond ( ) const
inline

Return the subframes-per-second rate resulting from these timings.

Member Data Documentation

◆ exposureTime

double CamSim::ChipTiming::exposureTime

Exposure time for each subframe in seconds.

◆ pauseTime

double CamSim::ChipTiming::pauseTime

Pause time after all subframes, before the start of a new frame.

◆ readoutTime

double CamSim::ChipTiming::readoutTime

Readout time for each subframe in seconds.


The documentation for this class was generated from the following file: