home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Misc / EDG-CT1.DMS / in.adf / CT.run / Scripts2 / 5 / Remove_Isolated_Pixels < prev    next >
Encoding:
Text File  |  1995-10-17  |  833 b   |  39 lines

  1. /*
  2.                         Control Tower Arexx Script
  3.                            Written By J.L. White
  4.                          (C)1995 Merlin's Software
  5.  
  6. Lines=7
  7. 01=Remove Isolated Pixels
  8. 02= 
  9. 03=This script loads each image of the File List Window
  10. 04=into ImageFX and given a threshold this will remove
  11. 05=pixels that have no similar neighboring pixels of
  12. 06=the same color. This can be used to reduce noise in
  13. 07=an image.
  14.  
  15. */
  16.  
  17. options results
  18.  
  19. arg FrameNum TotalFiles
  20. address "IMAGEFX.1"
  21.  
  22. if FrameNum = 0 then do
  23.     RequestSlider '"Enter Amount To Remove Isolated Pixels!"' 0 255 240
  24.     Answer = Result
  25.     call open TempFile,"Ram:CT-IFRIP",W
  26.     call writeln TempFile,Answer
  27.     call close TempFile
  28.     end
  29. else do
  30.     call open TempFile,"Ram:CT-IFRIP",R
  31.     line = readln(TempFile)
  32.     parse var line Answer
  33.     call close TempFile
  34.     end
  35.  
  36. RIP Answer
  37.  
  38. exit
  39.