ECE/CS 533 Matlab Mfiles
These are Matlab Mfiles which we may be using during lectures. They
were developed on Matlab v.5.3. Some incompatibilities may exist when
running later version of Matlab. Many of them will be updated to
Matlab v.7 soon. This directory may be updated from
time to time with deletions and additions.
- conv2demo.m -- Demonstratioin of 2d convolution
using the sample in the lecture note
- Mydemo.m -- An introduction to Image
Processing (updated 9/2005)
- Cdemo.m -- Demonstration of color manipulation using
mysail.bmp (updated 9/2005)
- l5e2.m -- generate frequency response example
- l7e1.m -- demo 2D Fourier Transform
- alias.m -- demonstrating effect of alias
in 1D case.
Image Enhancement
- enh_pixel.m -- demonstrating pixel-based image
enhancement methods, including intensity transformation and histogram
equalization (new, 9/2005)
- histeqdemo.m -- histogram equalization example,
and test image file p64int.txt
histeq.m -- A callable subroutine of histogram
equalization
- freq.m -- demonstrating frequency domain fitlering
approaches.
- filterdemo.m -- demonstrating
spatial domain filtering approaches, and the test image file
lena.bmp
- p64.bmp -- a 64 by 64 gray scale image used
by freq.m and spatial.m
Image Restoration
- invfildemo.m -- demonstration of inverse
filter, Wiener filter and Constrained least square restoration methods
- motionblur.m -- generate linear motion
blur masks,
- blurdemo.m --
demonstrations of image blurring process
Image Coding
- entropy.m -- compute entropy of a given
probability vector
- huffman Coding --
huff_tbl.m generating huffman code table,
huff_enc.m huffman code Encoding, and
huff_dec.m huffman code decoding.
- Arithmetic coding Demostration --
arcodemo.m, Demonstration program,
arenc.m, encoding routine, and
ardec.m, decoding routine.
JPEG/MPEG encoding matlab mfiles
- jpegdemo.m -- Demonstrating Jpeg encoding.
- divq.m -- Weigthed quantization.
- dpcm.m -- JPEG DPCM for DC coefficient
- jdcenc.m -- DC Coefficient huffman Encoding.
- jacenc.m -- AC Coefficient huffman Encoding.
- int2bin.m -- Integer to binary (sign-mag)
representation. Needed by jdcenc.m, and jacenc.m.
- medemo.m -- demonstration of motion estimation
medemo.mat -- data file for medemo.m
Mathematical Morphology
- morphdemo.m -- Morphological Processing
demonstration
- hitnmiss.m -- subroutine for hit-n-miss transform
- imopen.m -- subroutine for opening operation
- imclose.m -- subroutine for closing operation
- fig915.m -- Figure 9.15, Region filling example,
Gonzales and Woods book, pp. 536.
- fig917.m -- Figure 9.17,
connected component extraction example, Gonzales and Woods book, pp. 537.
- fig921.m -- Figure 9.21, thinning example,
Gonzales and Woods book, pp. 542.
- fig924.m -- Figure 9.24, skeletonization example,
Gonzales and Woods book, pp. 545.
- boundarydemo.m -- demonstrate
boundary extraction, interior filling
imfill.m -- callable routine for interior filling
Image Segmentation
- threshdemo.m -- demonstration of global
and local thresholding for segmentation. Require kmeansf.m, kmeantest.m, dist.m
- houghdemo.m --
demonstration program for hough.m
- hough.m -- Hough transform for binary image.
Multiresolution Analysis
- waveletdemo.m -- demonstration of single level
discrete wavelet decomposition of an image
Supporting routines
- Clustering
clusterdemo.m -- Demonstration of Kmeans (LBG) clutering algorithm
for vector quantization.
kmeansf.m -- clustering engine called by kmeans.m.
kmeantest.m -- compute membership, and distortion
after clustering
- dgen2.m -- generate random mixture
of normal distributed data. Called by pca.m
- dist.m -- calculating distances
- datagen.m - data generation routine called by
clusterdemo.m
Last update: April 20, 2007
Return to Course Homepage