S. Qureshi (November 2004)

This directory contains a few miscellaneous but useful M-files. Many of the projects in the
book have image data compiled directly into the project, for ease of testing. The 
generate_header_file.m script can be used to create one of these C header files from a
MATLAB image matrix. The script assumes that there is a variable I containing the pixel data.

In Appendix A, a streaming video wavelet denoising example is presented. A sample video of
cars outside the author's residence is included in this directory. The video was taken using
a Sony DSC-T1 digital camera. This camera puts out 480x640 MPEG bitstreams, and I down-converted
this MPEG to 240x320 using a combination of Apple QuickTime and the MATLAB script make_avi.m.
The hope was to have MATLAB functions do more of the the conversion, but there is a bug in 
MATLAB's AVI routines that prevent certain AVI files from being read correctly, see

http://www.mathworks.com/support/solutions/data/1-1AK0Z.html?solution=1-1AK0Z

for more information on this matter. In any event, to recreate what I did import cars.mpg into
QuickTime and from QuickTime export the mpeg as individual BMP frames. The make_avi.m script
reads a directory full of these color BMP files, resizes the frames using imresize,
and then uses the MATLAB movie2avi function to save an AVI that can then be reliably read back through MATLAB.

MPEG->AVI conversion can also be done using a variety of free tools available on the net. A
quick internet search or perusal of www.mpeg.org should result in a variety of utilities that
you can use to make monochrome AVI movies.
