Matlab CodeWarning: 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
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
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
vcoeff96.m
- Function that produces a vector of wavelet coefficients of a 32x32 block
and its eight surrounding
modify16.m
- Assigns color to the final image according to classification of 16x16
block.
|