EDNA Plugin: EDPluginExecNormalizeImagev1_2

Name:EDPluginExecNormalizeImagev1_2
Project:execPlugins
Path:execPlugins/plugins/EDPluginGroupNormalize-v1.0/plugins/EDPluginExecNormalizeImagev1_2.py
Author:Jérôme Kieffer
Date:05/03/2012
Copyright:2010-2012, European Synchrotron Radiation Facility, Grenoble, France
License:GPLv3+
Module doc:
Class doc:Plugin that normalizes an image (subtract dark current and divide by flat-field image, taking into account the exposure time)
v1.1 is compatible with EDShare -> lower memory footprint
v1.2 allows the scaling of images with a scale-factor

Datamodels: XSDataInputNormalize
targetNamespace "http://www.edna-site.org"

import XSDataCommon.XSDataInput
import XSDataCommon.XSDataResult
import XSDataCommon.XSDataImage
import XSDataCommon.XSDataImageExt
import XSDataCommon.XSDataTime
import XSDataCommon.XSDataBoolean
import XSDataCommon.XSDataFile
import XSDataCommon.XSDataDouble
import XSDataCommon.XSDataInteger
import XSDataCommon.XSDataString
import XSDataCommon.XSDataStatus
import XSDataCommon.XSDataImage
import XSDataCommon.XSDataLength
import XSDataCommon.XSDataArray



complex type XSDataInputNormalize extends XSDataInput {
    "Optionnaly can scale intensities on input data with the given factor"
    data : XSDataImageExt []
    dark : XSDataImageExt [] optional
    flat : XSDataImageExt [] optional
    output : XSDataImageExt  optional
    dataScaleFactor: XSDataDouble  optional
    darkScaleFactor: XSDataDouble  optional
    flatScaleFactor: XSDataDouble  optional
}

complex type XSDataResultNormalize extends XSDataResult {
    output: XSDataImageExt 
}