www.pudn.com > Digital_Image_Correlation_2010b.zip > large_displ.m, change:2010-11-20,size:1629b

function [displx disply]=large_displ; 
% this function creats displx and disply which you need for 
% automate_image_ld.m 
%% choose resizing factor 
% The reduction factor should be at least the largest step in your 
% experiment divided by the corrsize you choose in cpcorr.m but will be 
% better off being a little bit higher 
prompt = {'Enter reduction factor - Image will be resized in the first run to track large displacement:'}; 
dlg_title = 'Reduction factor for large displacements'; 
num_lines= 1; 
def     = {'5'}; 
answer = inputdlg(prompt,dlg_title,num_lines,def); 
reduction_factor = str2double(cell2mat(answer(1,1))); 
%% choose a small grid for reduced size images 
% the smaller the grid the faster this step 
msgboxwicon=msgbox('Define grid for reduced image size - use 50 to 100 markers per image.') 
save grid_x_small.dat grid_x -ascii -tabs 
save grid_y_small.dat grid_y -ascii -tabs 
%% choose a larger grid for large sized images 
msgboxwicon=msgbox('Define grid for detailed image analysis.') 
%% run automate_image.m 
%% calculate displx and disply 
displx=[0 displx]; 
disply=[0 disply]; 
save displx.dat displx -ascii -tabs 
save disply.dat disply -ascii -tabs 
%% start automate_image_ld