Matlab Code

Warning:  This code will only run with the Rice Wavelet Toolbox
 

 main.m  - Main program.  Breaks a 512x512 image into 32x32 blocks and classifies each block.  Returns the final 
                segmented image.

 classify512.m  - Classifies each 32x32 block as text, picture,background, or undetermined.

 makefinal.m  - Produces the final 512x512 image by assigning colors to pixels according to their classification

 classify32.m  - Takes one 32x32 block and assigns the appropriate color to each pixel according to the 
                       classification of the 32x32 block.

 classify16.m  - Classifies one of four 16x16 blocks of an unclassified 32x32 block.

 checkadjacent.m  - Function that determines whether a given 32x32 block has adjacent blocks that are text or 
                              pictures.

 vcoeff96.m  - Function that produces a vector of wavelet coefficients of a 32x32 block and its eight surrounding 
                     blocks.

 modify16.m  - Assigns color to the final image according to classification of 16x16 block.