MATLAB PAGE
updated 05-20-01
some matlab scripts:
builds an image from the rgb component matrices
buildImage
takes 3 component matrices and builds one 3XN matrix
that represents a multivariate distribution (matrix of observations).
buildItUp
opposite of above
tearItDown
Takes a vector representing a discrete probability density function (PDF)
and returns the cumulative density function (CDF)
cdf
Takes a vector and builds a circulent matrix using this vector as the
first column.
circ
Takes a matrix representing the joint probability distribution of two
discrete random variables X(rows) Y(cols) and returns conditional
information Hx|y and Hy|x
cp
Takes an integer argument (N) and returns a Fourier transform matrix of
size N
ftm
Takes an integer argument (N) and returns a low pass filter of length N
H0
Takes an integer argument (N) and returns a high pass filter of length N
H1
Takes an integer argument (N) and a vector representing a PDF, returns
a vextor of length N representing the value of the inverse CDF at N equally
spaced points between 0 and 1.
inv_CDF
takes a pair of images of equal size and returns the 2d joint histogram.
joint_h
Takes a matrix and its covariance matrix and returns the KL transform
KL
takes a matrix representing a joint histogram returns the marginal
histograms Hx and Hy
marg
Takes a pair of images and returns the mutual information Ixy
MI
Normalizes a matrix (returns values between 0 and 1)
myNorm
Takes a vector p representing a 1D PDF and an integer N, returns a NxN
matrix of random numbers with the distribution p
rand2
Downsamples a vector.
downsample
Upsamples a vector inserting zeros.
upsample
A script that simulates two channel subband codling based on the "ideal"
lower (H0) and upper (H1) filters.
subband coding script
A script takes the rgb components of an image and treats them as samples
of a 3x1 vector random variable, computes the zero mean image, computes
the covariance matrix, uses the eigenvectors to decorrelate rgb ( the
KL transform ) rebuilds and displays new image.
decorrelate script
MAIN