Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Daniel Bourgault
g_rect
Commits
1eda8cb8
Commit
1eda8cb8
authored
May 08, 2020
by
Daniel Bourgault
Browse files
Change the nameing convention of the figures produced (_GCP and _grect).
parent
729a68ae
Changes
1
Show whitespace changes
Inline
Side-by-side
src/g_rect/g_rect.m
100755 → 100644
View file @
1eda8cb8
...
...
@@ -197,20 +197,20 @@ fprintf(' Field or lab (field=true; lab=false):. %i\n',field)
fprintf
(
'\n'
)
% Display the image with GCPs;
%
image(imread(imgFname));
%image(imread(imgFname));
imagesc
(
imread
(
imgFname
));
colormap
(
gray
);
hold
on
for
i
=
1
:
ngcp
plot
(
i_gcp
(
i
),
j_gcp
(
i
),
'r.'
);
text
(
i_gcp
(
i
),
j_gcp
(
i
),[
num2str
(
i
),
'('
,
num2str
(
h_gcp
(
i
)),
')'
],
...
text
(
i_gcp
(
i
),
j_gcp
(
i
),[
' '
,
num2str
(
i
),
'('
,
num2str
(
h_gcp
(
i
)),
')'
],
...
'color'
,
'r'
,
...
'horizontalalignment'
,
'
righ
t'
,
...
'fontsize'
,
1
6
);
'horizontalalignment'
,
'
lef
t'
,
...
'fontsize'
,
1
0
);
end
title
(
'Ground Control Points Number (elevation in meters)'
,
'color'
,
'r'
);
print
-
dpng
-
r300
image1
.
png
daspect
([
1
1
1
]);
print
(
'
-dpng
'
,
'
-r300
'
,[
imgFname
(
1
:
end
-
4
),
'_GCP.png'
]);
fprintf
(
'\n'
)
ok
=
input
(
'Is it ok to proceed with the rectification (y/n): '
,
's'
);
...
...
@@ -420,5 +420,4 @@ if field
else
g_viz_lab
(
imgFname
,
outputFname
);
end
print
-
dpng
image2
.
png
print
(
'-dpng'
,
'-r300'
,[
imgFname
(
1
:
end
-
4
),
'_grect.png'
]);
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment