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 >
Wrap
OS/2 REXX Batch file
|
1992-08-05
|
650b
|
25 lines
;analysis of image 'parts' (consisting of electronic parts)
;shows: fast segmentation, using min filter
; in 'parts1': classification using CLP-op's
;expects: image in a
; Output LUT's initialized using 'ini'
;********************************************
parms
int windisplay
endparms
era
lut 2 1
dest p
show p
cstr a
era 1 2 3 ;to keep colour bitplanes free
*windispl h (windisplay+1)
dest q
min a 5 ;segmentation
cstr ;increase contrast
comp q < 140 ;thresholding
save b ;store binary image in b
*dparts1 windisplay ;further processing
stop