**image_decimate_test**,
a MATLAB program which
calls image_decimate() to "decimate" an image by removing the even rows and columns,
resulting in a file that is about 1/4 the size of the original.

The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.

**IMAGE_DECIMATE** is available in
a MATLAB version.

image_decimate, a MATLAB library which compresses an image by dropping the even rows and columns of data.

- image_decimate_test.m, calls all the tests.
- image_decimate_test.sh, runs all the tests.
- image_decimate_test.txt, the output file.

- image_decimate_gray_test.m, tests image_decimate_gray().

**casablanca** is a grayscale image from a movie.

- casablanca.pgm, the original image.
- casablanca.png, the original image.
- casablanca2.pgm, the image after 1 decimation.
- casablanca2.png, the image after 1 decimation.
- casablanca4.pgm, - the image after 2 decimations.
- casablanca4.png, the image after 2 decimations.
- casablanca8.pgm, the image after 3 decimations.
- casablanca8.png, the image after 3 decimations.
- casablanca16.pgm, the image after 4 decimations.
- casablanca16.png, the image after 4 decimations.
- casablanca32.pgm, the image after 5 decimations.
- casablanca32.png, the image after 5 decimations.