-
Notifications
You must be signed in to change notification settings - Fork 0
/
Patch.m
46 lines (29 loc) · 1.25 KB
/
Patch.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
classdef Patch < handle
properties
rect ; % Vettore
features ; % Vettore
% Utilizzati dal metodo CreateSimulatedPatches.
SourceIdentity ;
isSimulated = 0;
end
methods
% Costruttore.
function obj = Patch(varargin)
% Varargin is an input variable in a function definition statement
% that allows the function to accept any number of input arguments.
obj.isSimulated = 0;
if nargin == 1
inputFeature = varargin{1};
obj.features = inputFeature;
end
if nargin == 3
inputFeatures = varargin{1};
inputRect = varargin{2};
inputIsSimulated = varargin{3};
obj.features = inputFeatures;
obj.rect = inputRect;
obj.isSimulated = inputIsSimulated ;
end
end
end
end