-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathTester.m
More file actions
79 lines (60 loc) · 2.52 KB
/
Copy pathTester.m
File metadata and controls
79 lines (60 loc) · 2.52 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
%Run the program. Pick the default parameters or input your own.
DermLogo = 0;
TrimCorners = 1;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SampleWidthR = 1/5;
SampleHeightR = 1/5;
SkinWidthR = 1/4; %think of upper and lower boxes
SkinHeightR = 1/20;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%secondary, tertiary... blob area limit:
BlobCutOff = 1/12;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%shaping factor for sterel
ShapeFactor = 1/100;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%unwrap depth
UnWrapDepth = 0.9; % [0,1)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
RoughVal = 40;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
TextureSampleSizeR = 1/5;
TextureSampleSizeC = 1/5;
TextureEntropyNeighborhood = 9; %MUST BE ODD
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
ColorClusterSize = 5;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
NumberToTake = 4;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GradientVarLength = 500;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
EntropyFiltSize = 50;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
HairFactor = 3/100;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
minCutOff = 0.02;
maxCutOff = 0.81;
for i=25:25
tic;
im = imread(['m' num2str(i) '.jpg']);
[MelanomaVector, im] = ExtractFeatures( im, DermLogo, TrimCorners, SampleWidthR, SampleHeightR, ...
SkinWidthR, SkinHeightR, BlobCutOff, ShapeFactor, UnWrapDepth, RoughVal, TextureSampleSizeR, TextureSampleSizeC, ...
TextureEntropyNeighborhood, ColorClusterSize, NumberToTake, GradientVarLength, EntropyFiltSize, HairFactor, minCutOff, maxCutOff);
toc;
end
%ColorVarMatrix: contains variance values for the three color channels.
%AvgColor: Average color in RGB space.
%ClusterCentroids: Color centroid in RGB from kmeans
%SymErrorBinaryX: error in the best symmetry achieved through the
%X-axis
%SymErrorBinaryY: same as SymErrorBinaryX but applies to the
%corresponding Y axis
%GradientChangeAvg: Average value of gradient inwards from the
%perimeter
%GradientChangeVar: Variance of gradient inwards from the perimeter
%CoOcMatrix: Coocurance matrix for a sample of the lesion
%CoOcMatrixProp: Properties of the CoOcurance matrix.
%SampleEntropy: Resized and scaled entropy filtered segment of the
%legion
%Roughness: Value of the edge roughness of rhe lesion
%NoOfComponents: No of components found within the cutoff threshold.