Method of Compressing Digital Images Acquired in CFA Format