ALBULA  4.0.1
 All Classes Namespaces Functions Variables Pages
dectris.albula.DEfficiencyCorrection Class Reference

Implements the efficiency correction. More...

Public Member Functions

def DEfficiencyCorrection
 Default constructor. More...
 
def correctImage
 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
 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

def dectris.albula.DEfficiencyCorrection.DEfficiencyCorrection ( )

Default constructor.

Member Function Documentation

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.
def dectris.albula.DEfficiencyCorrection.correctionImage ( )
Returns
DImage containing the correction factors
def dectris.albula.DEfficiencyCorrection.optionalData ( )
Returns
OptionalData object defining the correction parameters
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