home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 5 / DATAFILE_PDCD5.iso / utilities / a / aim / !aim / macros / pyramids < prev   
Encoding:
Text File  |  1992-11-17  |  636 b   |  12 lines

  1. * From rectangles to pyramids
  2. * Before running this demo you should copy the GreySprite 'cbpGRS' of
  3. * the supplementary disk to the image directory of AIM.
  4. readf cbpGRS a     * Brochure of 'Centrum voor Beeldbew. en Patroonh.'
  5. thresh a b 1       * Make binary by thresholding
  6. remove             * remove the 'noise'
  7. invert             * object pixels should be white
  8. bcopy 1 2 b b      * save in bitplane 2
  9. eros 2 1 6 0 b i   * 2 erosionsteps removes the thin lines
  10. propag 3 1 2 6 0 b * restore the shape: propagate bit 1 into bit2
  11. dist 1 b c         * distance transform, greyvalue image in C
  12. contrast c c       * do a contrast stretch