home *** CD-ROM | disk | FTP | other *** search
- /*
- Control Tower Arexx Script
- Written By J.L. White
- (C)1995 Merlin's Software
-
- Lines=7
- 01=Remove Isolated Pixels
- 02=
- 03=This script loads each image of the File List Window
- 04=into ImageFX and given a threshold this will remove
- 05=pixels that have no similar neighboring pixels of
- 06=the same color. This can be used to reduce noise in
- 07=an image.
-
- */
-
- options results
-
- arg FrameNum TotalFiles
- address "IMAGEFX.1"
-
- if FrameNum = 0 then do
- RequestSlider '"Enter Amount To Remove Isolated Pixels!"' 0 255 240
- Answer = Result
- call open TempFile,"Ram:CT-IFRIP",W
- call writeln TempFile,Answer
- call close TempFile
- end
- else do
- call open TempFile,"Ram:CT-IFRIP",R
- line = readln(TempFile)
- parse var line Answer
- call close TempFile
- end
-
- RIP Answer
-
- exit
-