next up previous contents
Next: Bibliography Up: MatPIV behind the scenes Previous: Batch-processing with MatPIV   Contents

Using a parameter-file as input

Finally we shall mention that it is also possible to supply an m-file containing your parameters as input to matpiv. The file parameters_example.m gives an example of how this may be achieved with the images in the Demo 1 directory. The user would then execute the following:

>> [x,y,u,v,snr]=matpiv('parameters_example.m');

Here the file parameters_example.m is just a list of the parameters we would normally write on the command line:

% Parameter-example file 
im1= 'Demo1/im00.bmp'; %The "base" image
im2= 'Demo1/im04.bmp'; %The "cross" image
Dt=0.04; %Time between images
winsize=[64 64;64 64;32 32;32 32]; %interrogation region size
overlap=0.5; % Overlap of interrogation regions
method='multin'; %Method for interrogation (i.e. multiple passes)
wocofile='Demo1/worldco.mat'; %file containting the mapping from image to
                          %world coordinates
msk='Demo1/polymask.mat'; %file defining the regions to mask from the
                          %flow.



Johan K. Sveen 2004-08-06