IntensityDistribution:

Path: SCPro/ProSensors

% Computes the pixel map intensity.
 The default intensity is 1/(1 + s*r^2) where r is the distance from the
 point source center. The output is normalized so that the sum of
 all pixels is 1. You can supply your own function.

 The intensity function is called as

   @intensityFun( r, s ) where s is scale factor

 Type IntensityDistribution for a demo
--------------------------------------------------------------------------
   Form:
   m = IntensityDistribution( 'initialize', n, m, w, s, fun )
   m = IntensityDistribution( 'update', p )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   action         (1,:)  'initialize' or 'update'

   'initialize'
   n              (1,1)   Rows
   m              (1,1)   Columns
   w              (1,1)   Pixel width
   s              (1,1)   Scale factor
   @intensityFun  (1,1)   Pointer to the intensity function

   'update'
   p              (2,:)   Points

   -------
   Outputs
   -------
   'initialize'
   none

   'update'
   m              (n,m)  Pixel array

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

Children:

Common: General/DeBlankLT
Common: Graphics/NewFig
Common: Graphics/PltStyle
Common: Graphics/XLabelS
Common: Graphics/YLabelS
Common: Graphics/ZLabelS

Back to the SCPro Module page