Detailed Contents
1. Introduction
2. Starting DigImage
3. Basic Operation
4. Sample Session
5. Command Files
6. Movies
7. Coordinate Systems
8. Warnings, Errors and Crashes
9. Utilities
10. Macros
11. Other Considerations
12. Updates
Appendix A: Menus
Index
Using INTRLACE.CMD, VTRGRAB.CMD and CONTOUR.CMD we may readily construct a command file DYECONT.CMD to automatically process the gravity current images into a series of contours on the same buffer. The basic processing of each frame is similar to that described in section 4
################################################################ # DyeCont.CMD # # Command sequence for acquiring, enhancing and contouring a # # time series. # # # # Control variables: # # !!a Number of buffers to be processed # # !!b Time offset for background buffer # # !!c Time offset for first foreground buffer # # !!d Interval between foreground buffers # # !!e Intensity contour # # !!f Minimum contour length # # !!g Length to smooth contours over # # !!h Correction scale factor # # Local variables: # # !!0 Current buffer # # !!1-=9 Passed parameters # ################################################################ # Start from main menu ; Return to main menu # Determine control variables. !^ Number of buffers to be processed ? !!a:=!!B !^ Time offset for background image ? !!b:=!!GT !^ Time offset for first foreground image ? !!c:=!!GT !^ Spacing between buffers ? !!d:=!!GT !^ Contour which intensity ? !!e:=!!GK !^ Minimum contour length (shorter contours will not be plotted) ? !!f:=!!K !^ Smooth contour over what length ? !!g:=!!K !^ Background correction scale factor (around 1) ? !!h:=!!GK # Set up the window to be used for the contouring - this will be done # interactively by the user, prompting them for the buffer to be # used during the specification processes, as well as interrupting ]] # the command file to allow interactive window selection. Z Take commands from keyboard W Set default window ; Return to main menu ############################################################### # Start off by acquiring the background and low pass # # filtering it. # ############################################################### # Set up parameters !!1:=1 # Acquire one buffer !!2:=!!Gb # Offset time !!3:=1 # Not used # Call VTRGrab.CMD to acquire buffers !P VTRGrab.CMD # Low pass convolution filter ; Return to main menu F: Filter C: Convolution filters L Low pass, MxN point 1 # Background in buffer 1 at the moment Screen - filter entire screen 7 # Number of rows in kernel 5 # Number of columns in kernel ; Return to main menu # Now copy filtered buffer to last buffer G: Grab/Display C Copy buffer 1 # Copy from !!M # Copy to maximum buffer number ; Return to main menu ############################################################### # Now acquire all the foreground buffers and apply the # # interlace filter to them. # ############################################################### # Set up parameters for acquisition !!1:=!!a # Number of buffers !!2:=!!Gc # Time offset of first buffer !!3:=!!Gd # Time spacing of buffers # Call VTRGrab.CMD !P VTRGrab.CMD # Set up parameters for filtering !!1:=1 # First buffer to be filtered !!2:=!!a # Last buffer to be filtered = the number of buffers # Call IntrLace.CMD !P IntrLace.CMD ############################################################### # We now want to enhance the images by dividing the foreground# # by the background and taking the log. We do not have a # # command file to do this, but the DigImage [;ED Correct dye # # image for background] can process a series of buffers # # automatically. # ############################################################### ; Return to main menu E: Enhance image D Correct Dye image for background variations !!M # Background image !!0:=1 # Initialise counter !!:SpecifyNextBuffer !!0 # Process this buffer !!0:=!!0+1 # Next one !!0>!!a :AllSpecified Yes, another buffer !:SpecifyNextBuffer !!:AllSpecified No, all buffers specified 1 # Place first corrected buffer back in itself !!Gh # Scale factor !!0:=1 - (1/!!Gh) # Zero black offset !!G0 Logarithmic correction Screen for correction ; Return to main menu ############################################################### # We may now contour the images, but first we should clear the# # destination buffer. As we have finished with the background # # buffer, we shall use it for the contours. # ############################################################### G: Grab/Display E Erase buffer !!M # The last buffer # Set up the parameters for the call !!1:=1 # The first buffer to be contoured !!2:=!!a # The last buffer = number of buffers !!3:=!!M # The destination buffer !!4:=!!e # The intensity contour !!5:=!!f # The minimum contour length !!6:=!!g # The smoothing length # Call Contour.CMD !P Contour.CMD ; Return to main menu |
DigImage documentation page
DigImage home page
Stuart Dalziel's home page