These macros assume that the OptiNav beamforming .jar file is installed in ImageJ plugins folder. See ImageJ Macro Language for general information about macros.
BI_Macro_Batch_August_26_2010.txt
Macro to batch process all of the data files in a directory. Assumes the data were acquired with Camera Capture using the standard filename system.
Usage: First run Beamform Interactive in interactive mode using a representative data set to be sure that all of the preferences are adjusted appropriately.
Create output directories to store the image files (.avi or .tif stacks), the results tables (.txt or .csv ASCII), and the documentation preference files (.txt).
Run the macro and choose the processing modes and the input and output directories.
Known bug: if the time stamps of the .avi file and the .wav file differ by more than the seconds postion, then they will not be macthed up and processed. One solution is to use BI_Macro_Batch_January_16_2011.txt instead.
Updated January 16, 2011 to add new processing modes: Nearfield Acoustic Holography, MUSIC, and Orthogonal Beamforming.
BI_Macro_Batch_January_16_2011.txt
Macro to batch process data files from a list. The list should have two columns. The first column is the optical image data file name (.avi, .tif, etc.) and the second column is the
time series or CSM acoustic data file name (.wav, .bin, .tif, .mat). Tab, space, or CR delimiters.
Usage: First run Beamform Interactive in interactive mode using a representative data set to be sure that all of the preferences are adjusted appropriately.
Make the list file using a text editor or a spreadsheet (such as the test run log). Create output directories to store the image files (.avi or .tif stacks), the results tables (.txt or .csv ASCII), and the documentation preference files (.txt).
Run the macro and, input the list file, and choose the processing modes and the input and output directories.
Batch_CSM.txt
Macro to batch process all of the data files in a directory to compute the cross spectral matrices (runs CSM_IQ_FFT) and optionally save narrowband microphone spectra (individual and array median).
Usage: Open the macro and edit the three lines
nMics = 24;
keepCSM = true;
keepSpectra = true;
Before you run it.