Pit Pattern Classification in Colonoscopy using Wavelets - WaveLab
Pit Pattern Classification in Colonoscopy using Wavelets - WaveLab
Pit Pattern Classification in Colonoscopy using Wavelets - WaveLab
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
4 Automated pit pattern classification<br />
(a) Source image (b) Accord<strong>in</strong>g co-occurrence matrix (d =<br />
5, direction is 0 degrees)<br />
Figure 4.1: An example image with its accord<strong>in</strong>g co-occurrence matrix<br />
In figure 4.1 a gray scale image with its accord<strong>in</strong>g co-occurrence matrix is shown. The<br />
relation R used to construct the co-occurrence matrix shown <strong>in</strong> figure 4.1(b) uses a distance<br />
value d of 5 pixel and a direction of 0 degrees, which is horizontal directed to the right.<br />
S<strong>in</strong>ce gray levels are discrete values, but wavelet coefficients conta<strong>in</strong>ed with<strong>in</strong> a subband<br />
are not, the wavelet coefficients have to be quantized before an accord<strong>in</strong>g co-occurrence<br />
matrix can be constructed. The quantization is done by first shift<strong>in</strong>g the wavelet coefficients<br />
such that all wavelet coefficients become positive. Then each coefficient is converted to its<br />
accord<strong>in</strong>g discrete value c d us<strong>in</strong>g the follow<strong>in</strong>g formula<br />
⌊ c(L − 1)<br />
⌋<br />
c d = 1 +<br />
m<br />
(4.14)<br />
where c is the already shifted coefficient value to be converted, L is the desired number of<br />
different levels and m is the highest value among all shifted coefficients.<br />
Now that the wavelet coefficients are converted to discrete values ∈ [1, L], we can construct<br />
a co-occurrence matrix with size L × L and update its contents based on the discrete<br />
wavelet coefficients.<br />
Possible features based on the co-occurrence matrix of a subband S i are for example contrast,<br />
energy, entropy, the <strong>in</strong>verse difference moment, cluster shade and cluster prom<strong>in</strong>ence.<br />
For a co-occurrence matrix C i of size w × w for a subband S i the respective formulas are as<br />
follows:<br />
Contrast<br />
∑w−1<br />
∑w−1<br />
f i = (x − y) 2 C i (x, y) (4.15)<br />
y=0 x=0<br />
40