home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Datafile PD-CD 5
/
DATAFILE_PDCD5.iso
/
utilities
/
a
/
aim
/
!aim
/
macros
/
demo5
< prev
next >
Wrap
Text File
|
1988-07-03
|
520b
|
19 lines
* example of shading correction by subtraction of
* the background.
* background is calculated by maxmin filtering
*
ton * timer on
readf scheme,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,B,31 * min filter
sub A,B,255 * subtract background
* obtain from the corrected image
* a binary image by thresholding
thresh B,B,1,220 * threshold
toff