Commit 0ab1fe4aa4a33c7c30ada947fa4b6bdab847cd52

Authored by Daniel Bourgault
1 parent 821e679e
Exists in master

Change the name of the pameter files to g_rect_params.dat

Examples/Example_1/parameters.dat renamed to Examples/Example_1/g_rect_params.dat
Examples/Example_2/parameters.dat renamed to Examples/Example_2/g_rect_params.dat
Examples/Example_3/parameters.dat renamed to Examples/Example_3/g_rect_params.dat
src/g_rect/g_rect.m
... ... @@ -109,8 +109,10 @@ display(' Welcome to g_rect: a package for georectifying oblique images on a fl
109 109 display(' Authors: Daniel Bourgault and Rich Pawlowicz');
110 110 display(' ');
111 111 inputFname = input(' Enter the name of the parameter file: ','s');
  112 +if isempty(inputFname)
  113 + inputFname = 'g_rect_params.dat'; % Default name
  114 +end
112 115 fid = fopen(inputFname);
113   -
114 116 nHeaderLine = 0;
115 117 gcpData = false;
116 118  
... ... @@ -240,6 +242,9 @@ print('-dpng','-r300',[imgFname(1:end-4),'_GCP.png']);
240 242  
241 243 fprintf('\n')
242 244 ok = input('Is it ok to proceed with the rectification (y/n): ','s');
  245 +if isempty(ok)
  246 + ok = 'y'; % Default value
  247 +end
243 248 if ok ~= 'y'
244 249 return
245 250 end
... ...