CImage:Gain


The Gain method returns the inverse gain of the camera used to acquire the image. The units of the result are not specified but are usually [electrons per ADU].

Syntax

nGain = CImage:Gain()

where

    where nGain is a number describing the camera gain.

    On failure, this method returns 1.0.

Example

Suppose a CImage object I is attached to an image and was acquired with a camera having an inverse gain of 2.1 electrons per ADU. Then

     Printf( "Gain = %.2lf e/ADU", I:Gain() )

prints the following:

     Gain = 2.10 e/ADU

Related Topics

CImage class