where h(i) denotes the frequency of occurrence for value i in histogram.Assume the ’0’ and ’1’ in the secret message of length C are equally distributed, the distortion D between original and stego pixels can be computed by the shifting value of each bin in the histogram and computed as