-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmidprocess.m
More file actions
64 lines (54 loc) · 2.41 KB
/
midprocess.m
File metadata and controls
64 lines (54 loc) · 2.41 KB
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
classdef midprocess < process
%MIDPROCESS midprocess part of the prcessing pipeline. Takes
% uff.channel_data and uff.scan structures and returns a
% uff.beamformed_data class.
%
% See also PROCESS, CHANNEL_DATA, BEAMFORMED_DATA
% authors: Alfonso Rodriguez-Molares (alfonso.r.molares@ntnu.no)
% Ole Marius Hoel Rindal <olemarius@olemarius.net>
%
% $Date: 2017/09/10$
%% public properties
properties (Access = public)
channel_data % UFF.CHANNEL_DATA class
scan % UFF.SCAN class
receive_apodization % APODIZATION class
transmit_apodization % APODIZATION class
beamformed_data % UFF.BEAMFORMED_DATA class
end
%% constructor
methods (Access = public)
function h=midprocess()
%midprocess Constructor of process class
%
% Syntax:
% h = midprocess()
%
% See also BEAMFORMER, CHANNEL_DATA, BEAMFORMED_DATA
h.channel_data=uff.channel_data(); % CHANNEL_DATA
h.receive_apodization=uff.apodization(); % APODIZATION class
h.transmit_apodization=uff.apodization(); % APODIZATION class
h.scan=uff.scan(); % SCAN class
h.beamformed_data=uff.beamformed_data(); % BEAMFORMED_DATA class
end
end
%% set methods
methods
function h=set.channel_data(h,in_channel_data)
assert(isa(in_channel_data,'uff.channel_data'), 'The input is not a UFF.CHANNEL_DATA class. Check HELP UFF.CHANNEL_DATA.');
h.channel_data=in_channel_data;
end
function h=set.scan(h,in_scan)
assert(isa(in_scan,'uff.scan'), 'The input is not a UFF.SCAN class. Check HELP UFF.SCAN.');
h.scan=in_scan;
end
function h=set.receive_apodization(h,in_apodization)
assert(isa(in_apodization,'uff.apodization'), 'The input is not a UFF.APODIZATION class. Check HELP UFF.APODIZATION.');
h.receive_apodization=in_apodization;
end
function h=set.transmit_apodization(h,in_apodization)
assert(isa(in_apodization,'uff.apodization'), 'The input is not a UFF.APODIZATION class. Check HELP UFF.APODIZATION.');
h.transmit_apodization=in_apodization;
end
end
end