ALBULA  4.0.1
dectris.albula.DEfficiencyCorrection Class Reference


Implements the efficiency correction More...

Public Member Functions

def DEfficiencyCorrection ()
 Default constructor. More...
 
def correctImage (image, mask)
 Apply the correction to the image
Throws an exception when an error occurs (e.g. when required correction parameters are missing in the optional data) More...
 
def optionalData ()
 
def setOptionalData (optionalData)
 Use the parameters of this optional data object for the correction instead of the header information of the image. More...
 
def correctionImage ()
 

Detailed Description


Implements the efficiency correction

Constructor & Destructor Documentation

◆ DEfficiencyCorrection()

def dectris.albula.DEfficiencyCorrection.DEfficiencyCorrection ( )

Default constructor.

Member Function Documentation

◆ correctImage()

def dectris.albula.DEfficiencyCorrection.correctImage (   image,
  mask 
)

Apply the correction to the image
Throws an exception when an error occurs (e.g. when required correction parameters are missing in the optional data)

Parameters
imageDImage object to be corrected
maskDImage object. Pixels different from zero are not taken into account.

◆ correctionImage()

def dectris.albula.DEfficiencyCorrection.correctionImage ( )
Returns
DImage containing the correction factors

◆ optionalData()

def dectris.albula.DEfficiencyCorrection.optionalData ( )
Returns
OptionalData object defining the correction parameters

◆ setOptionalData()

def dectris.albula.DEfficiencyCorrection.setOptionalData (   optionalData)

Use the parameters of this optional data object for the correction instead of the header information of the image.

Parameters
optionalDataDImageOptionalData object. The header to be used