home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 5 / DATAFILE_PDCD5.iso / utilities / a / aim / !aim / macros / demo9 < prev    next >
Text File  |  1990-10-13  |  745b  |  18 lines

  1. * demo of image analysis
  2. *
  3. read cermet a        * read cermet image
  4. clear b              * clear the bitplanes
  5. thr                  * theshold the image (using defaults)
  6. inv 1                * make objects white (default: image B)
  7. propag 511,2,1,8,1,b * propagate the edge
  8. exor 1,2,1           * remove object connected to the edge
  9. bcopy 1 2 b b        * make a mask bitplane
  10. ero 3 1 6 0 b        * remove small objects
  11. propag 100 1 2 6 0 b * propagate remaining objects
  12. measure              * measure the white objects
  13. don 2                * automatic stretching
  14. label b,c,1,8        * "label" the objects
  15. don                  * back to normal display
  16.                      * .. effective at the next
  17.                      * .. display operation
  18.