Let us consider three gray scale intensities 252(11111100),122(01111010),250(01111010).
If i want to group them in to two groups,
I have to see directly intensities(252&250 are grouped together)
or i have to see hamming distance between intensities(250&122 are grouped together)
Which grouping is good or which intensities are nearer(252,250) or (122,250)