home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / t / timwin.zip / TIMWIN2.EXE / pak / DPARTS.CMD < prev    next >
OS/2 REXX Batch file  |  1992-08-05  |  650b  |  25 lines

  1. ;analysis of image 'parts' (consisting of electronic parts)
  2. ;shows:      fast segmentation, using min filter
  3. ;            in 'parts1': classification using CLP-op's
  4. ;expects:    image in a
  5. ;            Output LUT's initialized using 'ini'
  6. ;********************************************
  7. parms
  8.   int windisplay
  9. endparms
  10. era 
  11. lut 2 1
  12. dest p
  13. show p
  14. cstr a
  15. era 1 2 3       ;to keep colour bitplanes free
  16. *windispl h (windisplay+1)
  17. dest q
  18. min a 5          ;segmentation
  19. cstr             ;increase contrast
  20. comp q < 140     ;thresholding
  21. save b           ;store binary image in b
  22. *dparts1 windisplay        ;further processing
  23. stop
  24. 
  25.