BlurParameter:

Path: Imaging/Optics

% Find the blur parameter.

   if v = f sigma is zero. The default for D is inf. v may be a 1 D array.

   Type BlurParameter for a demo.

--------------------------------------------------------------------------
   Form:
   sigma = BlurParameter( f, v, r, N, lambda, D )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   f           (1,1)   Focal length (mm)
   v           (1,:)   Distance from image plane to lens (mm)
   r           (1,1)   Lens radius (mm)
   N           (1,1)   F stop
   lambda      (1,1)   Wavelength (nm)
   D           (1,1)   Distance of the object point to the lens (mm)

   -------
   Outputs
   -------
   sigma       (1,:)  Blur parameter/camera parametr

--------------------------------------------------------------------------
   Reference: Chaudhuri, S. and A. N. Rajagopalan, "Depth from Defocus:
              A Real Aperture Imaging Approach," Springer-Verlag, 1999, 
              p. 10.
--------------------------------------------------------------------------

Children:

Common: CommonData/SwooshWatermark
Common: General/CellToMat
Common: General/MatToCell
Common: General/Watermark
Common: Graphics/NewFig
Common: Graphics/Plot2D
Common: Graphics/PltStyle

Back to the Imaging Module page