User`s guide

8 Example Applications
Viewing the Comp
ressed Image
In “Compre ssing
an Image” on page 8-11, you compressed an image using
the 2-D DCT and Se
lector blocks. Now, you can use the 2-D IDCT block to
transform the im
agebacktothetimedomainandviewtheresult:
1 If you h ave n ot a
lready done so, define an intensity image in the MATLAB
workspace by ty
ping
I= imread('cameraman.tif');
I is a 256-by-256
matrix of 8-bit unsigned integer values.
2 If the model you created in “Compressing an Image” on page 8-11 is not
open on your desktop, you can open an equivalent model by typing
doc_compression
at the MATLAB command prompt.
3 Use the Block Processing1 b lock to set the size of the submatrices that the
block p asses to the subsystem. Set the Block size parameter to
{[4 4]}.
8-18