Algorithm 1.
1: | Function Segmentation(I) | |
2: | {An image I of N × M pixel intensities} | |
3: | fori = 1 to N do | |
4: | forj = 1 to M do | |
5: | Obtain a window:
|
|
6: | Obtain pixel features:
|
|
7: | end for | |
8: | end for | |
9: | class-id = k-means(F,k,w) | |
10: | returnclass-id |