Manual Exposure

When manual exposure is enabled the following parameters can be modified.

Exposure Time

The time in microseconds for an image exposure. Making it longer brightens the image (good for dark scenes) and making it shorter darkens the image. For moving scenes, shorter is better because there will be less motion blur in the image.

../_images/manual_exposure1.png

A 17,000 microsecond exposure. Notice that the fan is completely smeared.

../_images/manual_exposure2.png

A 1350 microsecond exposure. Notice how the image is much darker, but the fan is much less blurry.

Gain

The gain setting brightens the image with a predetermined combination of electrical (analog) and mathematical (digital) gain. Increasing gain allows you to have a brighter image with the same exposure time, but increases the noise in the image.

../_images/gain1.png

An image taken with 8000 microsecond exposure and gain of 2.0

../_images/gain2.png

An image taken with an exposure of 2000 microseconds and a gain of 8.0. Notice the increased noise, which comes with reduced motion blur.

Autoexposure

When autoexposure is enabled, the following parameters can be changed to modify the performance of the autoexposure algorithm

Maximum Exposure Time

Limits the exposure time to some value, and is useful when trying to limit motion blur in high speed situations.

Decay Rate

The autoexposure decay rage controls how many frames the camera takes to get the exposure right. In scenes where there are expected sudden flashes of light, it can be helpful to slow the autoexposure down

Intensity and Threshold

Autoexposure intensity and threshold parameters control the brightness of the image—what the autoexposure considers success. In a histogram of the image (where height is number of pixels and x-axis is brightness value) the autoexposure drives the exposure time until the threshold fraction of the pixels are below the intensity value. The camera defaults to intensity 0.5 and threshold 0.95, which means that the camera tries to make 95% of the pixels darker than 50% brightness. We do this to limit the number of pixels that become saturated in the image because saturated pixels have no information. Visually individuals tend to prefer images that have the threshold turned down below the default value of a bit, or that have the gamma Gamma turned up.

../_images/intensity1.png

A high dynamic range picture of the test setup.

../_images/intensity2.png

Intensity set to 0.1, threshold set to .885. The camera is attempting to make 88.5% of the pixels darker than 0.1 on a scale of 0.0 to 1.1

../_images/intensity3.png

Intensity set to 0.9, threshold still at .885. The camera is attempting to make 88.5% of the pixels darker than 0.9.

../_images/intensity4.png

Intensity set to 0.5, threshold set to 0.989. The camera is attempting to make 98.9% of the pixels darker than 0.5. In a high dynamic range scene like this, the autoexposure has to choose between seeing the detail in the light and seeing the detail on the target. This pair of threshold and intensity is an excellent strategy for limiting the number of saturated pixels in the image.

../_images/intensity5.png

Intensity set to 0.5, threshold set to 0.6. This allows us to see some more detail in the extremely dark black velvet background, while allowing about 40% of the bright pixels to fully saturate.

Region of Interest

A region of interest is defined four parameters (start_x, start_y, width, height) of a box in the unrectified image upon which the autoexposure operates. This is useful if a large portion of the image will contain the sky or will be blocked by the ego machine. The autoexposure will not use the data outside of the region of interest. Note that the region of interest horizontal values are on a range of 1-1920 and the vertical region of interest values are on a scale of 1-1200, even when the camera’s resolution is set to 960x600

../_images/roi1.png

Here, the exposure is set to an intensity of 0.9 and a threshold of 0.885 as above, but with a region of interest corresponding to the photography light. Now, the only pixels used to control the exposure are the pixels within the region of interest.

../_images/roi2.png

By moving the photography light out of the region of interest, the camera exposes well on the dark black wall, and the rest of the image is ignored (and therefore allowed to saturate.

Gamma

The gamma parameter sets the gamma correction of the image. It’s an exponential digital gain that applies more gain to darker pixels and less gain to brighter pixels. If there are dark parts of the scene that you’d like to brighten without saturating bright parts of the scene, you can increase this. If you’d like the image to be more linear, decrease this.

../_images/gamma1.png

This image, with a low gamma of 1.2, does not brighten the darker parts of the image, but instead gives a very linear response with the number of photons hitting the sensor.

../_images/gamma2.png

This image, taken with a gamma of 2.2, digitally brightens the dark parts of the image without brightening the bright parts of the image. It can make detail in dark parts of the image more apparent, but makes the images appear to have less overall contrast.

Frame Rate

Frame rate is the number of frames per second the camera outputs. There is something important to understand here: this is the output frame rate. The frame rate upon which the autoexposure operates is a whole number multiple of this frame rate near 30FPS. For example, if you set the frame rate to 9 FPS, the autoexposure will be correcting the image sensor at a rate of 27FPS. If you set the frame rate to 19 FPS, the autoexposure will operate at 19FPS.

Stereo Post-Filter

The stereo post-filter configuration filters the disparity image according to matching cost. A high Stereo Post Filter gives high confidence disparity images with very low density. A low stereo post filter gives a very high density disparity image with low accuracy and low confidence.

../_images/post_filter.png

Resolution

Resolution is parametrized by the triplet of (Width x Height x Disparities). The first number is the image width, the next number is the image height, and the last number is the maximum number of disparity levels. The disparity levels parameter affects the tradeoff between how far the camera can see and how fast the algorithm can run. Since we’ve done a bunch of work on increasing frame rates and for other reasons are limited to 30FPS, lots of these have a limit of 30FPS. The options are:

Resolution

Max FPS

1920 x 1200 x 256

9 FPS

1920 x 1200 x 128

15 FPS

1920 x 1200 x 64

15 FPS

960 x 600 x 256

30 FPS

960 x 600 x 128

30 FPS

960 x 600 x 64

30 FPS