/* This code implements an image compression scheme by estimating the */ /* current cell based on the neighbors values. It then stores the difference */ /* between the prediction and the actual value */ /* -- Submitted By: David Kolson (dkolson@ics.uci.edu) - 08 Dec 94 -- -- Verification Information: -- -- Verified By whom? Date Simulator -- -------- ------------ -------- ------------ -- Syntax yes Preeti R. Panda 17 Jan 95 - -- Functionality yes David Kolson ? - */ #define MAX 100 main () { int i, j; unsigned int a[MAX][MAX], prediction; for (i=0; i<MAX; i++) { for (j=0; j<MAX; j++) { prediction = 2 * a[i-1][j-1] + a[i-1][j] + a[i][j-1]; a[i][j] = a[i][j] - prediction; } } } <div align="center"><br /><script type="text/javascript"><!-- google_ad_client = "pub-7293844627074885"; //468x60, Created at 07. 11. 25 google_ad_slot = "8619794253"; google_ad_width = 468; google_ad_height = 60; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script><br /> </div>