Skip to content

Commit

Permalink
Added red shoreline colour for nonQAd shorelines
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchharley committed Feb 1, 2021
1 parent 26531b8 commit 98f9541
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions GUI/CSPGloadImage.m
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,12 @@
data_plan.Iplan = Iplan;
data_plan.metadata = metadata;
axes(handles.oblq_image) %Plot to oblq image axis
gcp_handle_oblq = plot(metadata.gcps.UVpicked(:,1),metadata.gcps.UVpicked(:,2),'go','markerfacecolor', 'g', 'markersize', 3);
if ~isnan(metadata.gcps.UVpicked) %If rectification was done using bulk mode, this is set to NaN
gcp_handle_oblq = plot(metadata.gcps.UVpicked(:,1),metadata.gcps.UVpicked(:,2),'go','markerfacecolor', 'g', 'markersize', 3);
else
gcp_handle_oblq =NaN;
disp('Image appears to have been rectified using bulk mapper. Manually-picked points will not be shown')
end
data.gcp_handle_oblq = gcp_handle_oblq;
set(handles.plan_image,'UserData',data_plan) %Store rectified info in userdata of plan_image
end
Expand All @@ -69,9 +74,15 @@
if exist(fullfile(sldir,sl_fname),'file')
load(fullfile(sldir,sl_fname));
axes(handles.plan_image)
sl_handle_plan = plot(sl.xyz(:,1),sl.xyz(:,2),'y','linewidth',2);
if isfield(sl,'QA')&&sl.QA==0
sl_color = 'r'; %Make shoreline colour red if it is nonQA'd
else
sl_color = 'y';
end

sl_handle_plan = plot(sl.xyz(:,1),sl.xyz(:,2),sl_color,'linewidth',2);
axes(handles.oblq_image)
sl_handle_oblq = plot(sl.UV(:,1),sl.UV(:,2),'y','linewidth',2);
sl_handle_oblq = plot(sl.UV(:,1),sl.UV(:,2),sl_color,'linewidth',2);
data_plan.sl_handle_plan = sl_handle_plan;
data_plan.sl = sl;
data.sl_handle_oblq = sl_handle_oblq;
Expand Down

0 comments on commit 98f9541

Please sign in to comment.