RidgeRun AEW Library: librraew  1.1
rraew_sensor Struct Reference

Sensor characteristics. More...

#include <rraew.h>

List of all members.

Public Attributes

struct rraew_colorpattern colorptn
 Bayer pattern order.
int max_exp_time
 Maximum exposure time.
int min_exp_time
 Minimum exposure time.
float max_gain
 Maximum gain.
float min_gain
 Minimum gain.
int n_gain_steps
 Number of gain ranges.
struct rraew_gain_stepgain_steps
 Gain steps for the different ranges.
RraewSetGain set_gain
 Pointer to function that sets the sensor gain (before the statistics hardware)
void * set_gain_target
 Pointer to the instance that contains the set_gain function.
RraewGetGain get_gain
 Pointer to function that gets the sensor gain (before the statistics hardware)
void * get_gain_target
 Pointer to the instance that contains the get_gain function.
RraewSetExposure set_exposure
 Pointer to function that sets exposure time on the sensor.
void * set_exposure_target
 Pointer to the instance that contains the set_exposure function.
RraewGetExposure get_exposure
 Pointer to function that gets exposure time on the sensor.
void * get_exposure_target
 Pointer to the instance that contains the get_exposure function.

Detailed Description

Sensor characteristics.

Struct to gather the set of camera's features that have to provide. Including ranges of the gains and exposure time, pointers to functions for set/get gains and exposure time.


Member Data Documentation

Bayer pattern order.

There are different configuration of the RGB pixels in a Bayer pattern. It is important to set the correct one (given by the sensor) for satisfactory algorithm results

Gain steps for the different ranges.

The array must be incrementally ordered, that means the lower range must be the firts element in the array.

Pointer to function that gets exposure time on the sensor.

Pointer to the instance that contains the get_exposure function.

For C applications this pointer can be NULL

Pointer to function that gets the sensor gain (before the statistics hardware)

Pointer to the instance that contains the get_gain function.

For C applications this pointer can be NULL

Maximum exposure time.

Defines the maximun value that can be asigned to the exposure time.
Should be in the same units that the exposure time in the set/get exposure function

Maximum gain.

Defines the maximun value that can be asigned to the sensor gain, so it refers to the maximun value allowed by the set gain function
Use floating point NOT fixed point

Minimum exposure time.

Defines the minimun value that can be asigned to the exposure time.
Should be in the same units that the exposure time in the set/get exposure function

Minimum gain.

Defines the minimun value that can be asigned to the sensor gain, so it refers to the minimun value allowed by the set gain function. Use floating point NOT fixed point

Number of gain ranges.

Usually the gain in a sensor can be divided in different ranges with different increment steps. For example the mt9p031 supports 3 ranges:

  • 1-4 increments in steps of 0.125
  • 4.25-8 increments in steps of 0.25
  • 9-128 increments in steps of 1
    Here you define the number of available ranges, the steps for each range is defined with gain_steps

Pointer to function that sets exposure time on the sensor.

Pointer to the instance that contains the set_exposure function.

For C applications this pointer can be NULL

Pointer to function that sets the sensor gain (before the statistics hardware)

Pointer to the instance that contains the set_gain function.

For C applications this pointer can be NULL


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