Added segment size for pixel hamming