 These methods are presented in the following subsections.Halftone images can be compressed using two methods.One of the methods is similar to the context-based arithmetic coding algorithm, which adaptively positions the template pixels in order to obtain correlations between the adjacent pixels.