For each pixel within the lesion area, the euclidean distance from 6 RGB values is calculated
For each color, the count is increased if the pixel is closest to it
The end result is a vector of 6 values, each representing the count of pixels closest to the color, which will be
divided by the total number of pixels
For each color with a value greater than 0.01, a point is given to the TDS C score
Calculate the variance of the RGB values: \[variance=\sigma^2=\frac{1}{n}\sum_{i=1}^{n}(x_i-\bar{x})^2\]
where \(x_i\)
is the RGB value of the pixel, \(\bar{x}\) is the mean of the RGB values \(\bar{x}=\frac{1}{n}\sum_{i=1}^n
x_i\), and \(n\) is the number of pixels
Calculate the asymmetry score
The centroid is calculated
For each degree out of 360 degrees, the radii in polar coordinates are calculated
For each radii, the length of the symmetric radii is calculated and for pairs of which the difference of
distances is less than 10%, a point is given
The sum of points is the \(\mathrm{SFA}_i\) (Score For Axis) score.
The radius with the maximum \(\mathrm{SFA}\) score is defined as the major axis of symmetry.
The asymmetry score is calculated as follows:
Evaluation
Asymmetry score
major axis \(\geq 140\) and minor axis \(\geq 140\)
Symmetric across both axis ==> 0
major axis \(\geq 140\) and minor axis \(\lt 140\)