home *** CD-ROM | disk | FTP | other *** search
/ Really Useful CD 1 / ReallyUsefulCD1.iso / extras / graphics / aim / _aim / macros / _corshad next >
Encoding:
Text File  |  1990-08-26  |  307 b   |  11 lines

  1. * shading correction by subtraction of
  2. * the background.
  3. * background is calculated by maxmin filtering
  4. * source image should be in A, result in B.
  5. *
  6. * calculate the background by
  7. * maxmin filtering
  8. lmax A,B,31         * max filter
  9. lmin B,B,31         * min filter
  10. sub A,B,255         * subtract background
  11.