home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Crawly Crypt Collection 1
/
crawlyvol1.bin
/
graphics
/
aim_xtra
/
corsha.aim
< prev
next >
Wrap
Text File
|
1988-08-17
|
538b
|
19 lines
* example of shading correction by subtraction of
* the background.
* background is calculated by maxmin filtering
*
ton * timer on
readf SCHEME.IM,A * read image
* thresholding is not possible
* with uncorrected image:
thresh A,B,1
* calculate the background by
* maxmin filtering
lmax A,B,31 * max filter
lmin B,C,31 * min filter
sub A,C,255 * subtract background
* obtain from the corrected image
* a binary image by thresholding
thresh C,B,1,220 * threshold
toff