ImagerPSF:

Path: Imaging/PSFUtils

% Finds the output of each imager pixel through numerical integration of PSF.
 The default plot output colors the pixels as a function of height. A built in
 2D Gaussian function is available for demos or as a reasonable approximation
 to a real point spread function.
   
 funPSF must be of the form:

       funPSF(x,y,d)

 x and y are arrays passed by integral2. They are two dimensional. Your
 function must return the same size array. funPSF gets passed the 
 centroids and intensities of the point spread functions through the
 data structure d as d.rPSF and d.iPSF. You can attach any other
 data you want to d.funData as shown above.

 Type ImagerPSF for a demo using RHSGaussianPSF. The demo is for a 70 by 60
 pixel imaging chip.
--------------------------------------------------------------------------
   Form:
   d = ImagerPSF       % default data structure
 	p = ImagerPSF( d, nPix )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   d	    (.)     Data structure for imager
                   .funPSF    (*)  Pointer to point spread function RHS
                   .funData   (.)  Function data
                   .rPSF     (2,:) Location of PSF in imager frame (um)
                                   1st row (x): columnwise
                                   2nd row (y): rowwise
                   .iPSF     (1,:) Magnitude of each PSF
                   .m        (1,1) Rows
                   .n        (1,1) Columns
                   .xPixel   (1,1) X dimension of each pixel (um)
                   .yPixel   (1,1) Y dimension of each pixel (um)
   nPix  (1,1)   Number of pixels (radius) to integrate each PSF over when
                    computing individual pixels values. default: 6
 
   -------
   Outputs
   -------
   p           (m,n)  Pixel output
   iC          (1,:)  Intensity of each centroid

--------------------------------------------------------------------------

Children:

Common: General/DeBlankLT
Common: Graphics/NewFig
Common: Graphics/PltStyle
Common: Graphics/XLabelS
Common: Graphics/YLabelS
Common: Graphics/ZLabelS
Imaging: PSFUtils/RHSGaussianPSF

Back to the Imaging Module page