ISODATA procedure, part 1 — the first pass.
- Pick N arbitrary cluster means to start.
- Compute the spectral distance between each pixel and every cluster mean.
- Assign each pixel to its closest mean.
- After the pass, recompute each cluster’s mean using the actual pixels that ended
up in it — the means shift in feature space.
- Use the new means for the next iteration.