Graphic CCD Imaging Primer
Imaging Made Easy and Fun!

Scripts

MaxIm DL offers scripting, both for camera control and for image processing. (AstroArt offers a "Pre-processing" feature which gives some of the power of MaxIm's image processing scripting abilities.)

Scripting for image processing is handy when we have a large number of images that we want to perform the same operations on. For example, if we have several dozen short-exposure images open, we might want to calibrate them all, convert them all to colour, remove hot & dead pixels from them all, etc. So, with all the images open on the screen, we just need to run a script to do all the work for us!

To run a script, we simply pull down the File menu, choose "Run Script", point to our script file, and run it!

A sample script is shown below. For each image, this script removes dead pixels, removes hot pixels, and converts to colour. See the MaxIm help file for more information on scripting.

Dim App
Set App = CreateObject("MaxIm.Application")
Set Docs = App.documents

i = 1
wscript.echo "Starting loop..."
For Each Doc in Docs
  wscript.echo "Working on image #" & i & "..."

  wscript.echo "Removing dead pixels..."
  Doc.KernelFilter 4,80

  wscript.echo "Removing hot  pixels..."
  Doc.KernelFilter 5,20

  ' MX7C Interlace mode, X offset
  Doc.ConvertColor 3,100,100,100,True,False

  i = i + 1
Next
wscript.echo "Processing Complete!"