|
CImage:SubBiasFrame
The SubBiasFrame method subtracts a bias
frame image from the current image. The result replaces the current
image.
Syntax
|
bResult = CImage:SubBiasFrame( Bias,
pixel_type=nil )
|
Bias is the CImage containing the bias
frame.
The optional
pixel_type specifies the output
pixel type as a number or string.
On success,
this method returns
true.
On failure,
false. is returned.
Remarks
This method applies a bias frame correction to the
image and updates the image header with the appropriate history and
other keywords. The
pixel type of the image may be changed as part of the
correction, for example, to increase the precision of the bias
removal procedure. Mira automatically handles mixing different
pixel types between the source image and the bias frame.
Example
The following script loads an image and subtracts a
bias frame. The output pixel type is changed to "float" to maintain
precision of the correction process. In practice you might maintain
the Bias frame in memory across a loop to process many images:
|
I = new_image()
|
|
|
I:Open( sPath )
|
|
|
Bias = new_image()
|
|
|
Bias:Open( sBiasPath )
|
|
|
I:SubBiasFrame(Bias,"float")
|
|
|
I:Save()
|
|
|
I:delete()
|
|
|
Bias:delete()
|
|
Related Topics
CImage class
SubBiasVal
SubBiasRef
Mira Pro x64 Script User's Guide, v.8.76 Copyright Ⓒ 2024
Mirametrics, Inc. All Rights Reserved.
|