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()

bullet.gif    where nGain is a number describing the camera gain.

bullet.gif    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


Mira Pro x64 Script User's Guide, Copyright Ⓒ 2023 Mirametrics, Inc. All Rights Reserved.