Commit c1a5bf26 authored by Daniel Bourgault's avatar Daniel Bourgault

Very small changes.

parent 1eda8cb8
......@@ -2,7 +2,7 @@
imgFname = 'IMG_6614.JPG';
firstImgFname = 'IMG_6614.JPG';
lastImgFname = 'IMG_6614.JPG';
outputFname = 'g_rect.mat';
outputFname = 'IMG_6614_grect.mat';
% Field or lab case situation.
% Set field = true for field situation and field = false for lab situation.
......
......@@ -4,7 +4,7 @@
imgFname = 'IMG_8368.jpg';
firstImgFname = 'IMG_8368.jpg';
lastImgFname = 'IMG_8368.jpg';
outputFname = 'IMG_8368.mat';
outputFname = 'IMG_8368_grect.mat';
% Field or lab case situation.
% Set field = true for field situation and field = false for lab situation.
......
......@@ -133,7 +133,7 @@ j_gcp = gcp.data(:,2);
lon_gcp0 = gcp.data(:,3);
lat_gcp0 = gcp.data(:,4);
[ngcp n_column] = size(gcp.data)
[ngcp n_column] = size(gcp.data);
% If there are 5 columns it means that elevation are provided
if n_column == 5
......@@ -169,6 +169,7 @@ end
%% Display information
fprintf('\n')
fprintf(' HOLA\n')
fprintf(' INPUT PARAMETERS\n')
fprintf(' Image filename: (imgFname):........... %s\n',imgFname)
fprintf(' First image: (firstImgFname):......... %s\n',firstImgFname)
......@@ -210,6 +211,8 @@ for i = 1:ngcp
end
title('Ground Control Points Number (elevation in meters)','color','r');
daspect([1 1 1]);
xlabel('Pixel')
ylabel('Pixel')
print('-dpng','-r300',[imgFname(1:end-4),'_GCP.png']);
fprintf('\n')
......
......@@ -123,6 +123,10 @@ end
clear LON LAT X Y
m_grid('box','fancy','fontsize',fs);
xlabel('Longitude');
ylabel('Latitude');
%m_gshhs('f','patch', 'gray');
%print('g_rect_drone_1', '-dpng')
if nargout > 1
......
......@@ -54,5 +54,7 @@ for n=1:length(i_gcp)
plot(LON(i_gcp(n),j_gcp(n)),LAT(i_gcp(n),j_gcp(n)),'rx','MarkerSize',ms,'linewidth',lw);
end
xlabel('x (m)');
ylabel('y (m)');
axis([lon_min lon_max lat_min lat_max]);
daspect([1 1 1]);
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment