This repository has been archived by the owner on May 18, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 29
/
makeInstsDemo.m
80 lines (68 loc) · 2.28 KB
/
makeInstsDemo.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
function insts = makeInstsDemo
% insts = makeDJIInsts
%
% creates pixel instruments for DJI video. Types can be line or matrix
% this one is empty - just test image products.
cnt = 1;
% vBar instruments
y = [450 700];
x = [125: 25: 225];
z = 0;
for i = 1: length(x)
insts(cnt).type = 'line';
insts(cnt).xyz = [x(i) y(1) z; x(i) y(2) z];
eval(['insts(cnt).name = ''vBar' num2str(x(i)) ''';']);
eval(['insts(cnt).shortName = ''vBar' num2str(x(i)) ''';']);
cnt = cnt+1;
end
% some runup lines
x = [70 125];
y = [600:50:650];
z = 0;
for i = 1: length(y)
insts(cnt).type = 'line';
insts(cnt).xyz = [x(1) y(i) z; x(2) y(i) z];
eval(['insts(cnt).name = ''runup' num2str(y(i)) ''';']);
eval(['insts(cnt).shortName = ''runup' num2str(y(i)) ''';']);
cnt = cnt+1;
end
% cBathy array
x = [80 5 400]; % determine sample region and spacing
y = [450 5 900]; % format is [min del max]
z = 0;
insts(cnt).type = 'matrix';
insts(cnt).name = 'cBathyArray';
insts(cnt).shortName = 'mBW';
insts(cnt).x = x;
insts(cnt).y = y;
insts(cnt).z = z;
cnt = cnt+1;
% make some slices to check stability
insts(cnt).type = 'line';
insts(cnt).xyz = [300 540 7; 300 500 7];
insts(cnt).name = 'x = 300 pier transect';
insts(cnt).shortName = 'x300Slice';
cnt = cnt+1;
insts(cnt).type = 'line';
insts(cnt).xyz = [100 520 3; 115 520 3];
insts(cnt).name = 'y = 520 Piling x-transect';
insts(cnt).shortName = 'y517Slice';
%
% Copyright (C) 2017 Coastal Imaging Research Network
% and Oregon State University
% This program is free software: you can redistribute it and/or
% modify it under the terms of the GNU General Public License as
% published by the Free Software Foundation, version 3 of the
% License.
% This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
% You should have received a copy of the GNU General Public License
% along with this program. If not, see
% <http://www.gnu.org/licenses/>.
% CIRN: https://coastal-imaging-research-network.github.io/
% CIL: http://cil-www.coas.oregonstate.edu
%
%key UAVProcessingToolbox
%