this invention provides a method of pixel data compression in which sets of adjacent pixels are compressed in a manner which is sometimes lossy but which reserves the greatest loss of accuracy for circumstances where loss is masked by high frequency components of the original pixel data .