Syntax
Document.SetPSF ( Type [, Radius ] )
Document.SetPSF ( Type, X, Y )
Parameters
PSFType Type - specifies the model to be used for the point-spread function
mxGaussianPSF (0) : use PSF with gaussian profile
mxExponentialPSF (1) : use PSF with exponential profile
mxPSFFromImage (2) : extract PSF from image
float Radius - radius parameter for PSF, corresponding to one standard deviation
short X - X coordinate of PSF within image of model PSF
short Y - Y coordinate of PSF within image of model PSF
Returns
Nothing
Remarks
Call this method after initializing deconvolution but before performing the first iteration. The Type parameter specifies how the point-spread function is to be modelled, as a mathematical gaussian or exponential figure of rotation, or as raw data extracted from the image.
When the two parameter form of the call is used, Type cannot be mxPSFFromImage. The second parameter must be a floating point value specifying the one-sigma radius of the PSF in pixels. Typical values are in the range 2 to 10.
When the three parameter form of the call is used, the second and third parameters should be integers between zero and the image width and height (respectively). They specify the coordinates of the center of a small region which will be treatd as the response of the sensor and optical system to an impulse, i.e., a point source. If Type is mxPSFFromImage, this data will be used directly as the point spread function; if it is mxGaussianPSF or mxExponentialPSF, the idealized curve of the appropriate shape with best fit to this data is used.
When only a single parameter (Type) is passed, SetPSF uses the coordinates of the largest pixel in the image as the center of the model region.
For more information on how to use this method, refer to Deconvolve.
This method is equivalent to the PSF Model tab of the Deconvolve command.