myImageLib

File reading

dirrec(path, filename)

Recursively look for all the directories of files with name filename.

readdata(folder[, ext, mode])

Wrapper of dirrec(), but easier to use when reading one type of files in a given folder.

Image processing

bpass(*args)

Apply bandpass filter on images.

to8bit(img16)

Enhance contrast and convert to 8-bit.

match_hist(im1, im2)

Match the histogram of im1 to that of im2

matlab_style_gauss2D([shape, sigma])

Generate a 2D gaussian mask - should give the same result as MATLAB's fspecial('gaussian',[shape],[sigma]).

Tools

bestcolor(n)

Default plot color scheme of Matplotlib and Matlab.

wowcolor(n)

WOW class color scheme, used in my density fluctuations paper.

show_progress(progress[, label, bar_length])

Display a progress bar in command line environment, which looks like

gauss1(x, a, x0, sigma, b)

1-d gaussian function.

xy_bin(xo, yo[, n, mode, bins])

Bin x, y data on log or linear scale

corrTrack

normxcorr2(template, image[, mode])

Compute normalized cross-correlation map between an image and a template.

FastPeakFind(data)

Detect peak in 2D images.

maxk(array, num_max)

Sort a numerical array and return the maximum num_max elements.

minimal_peakfind(img)

Minimal version of myImageLib.FastPeakFind().

track_spheres_dt(img, num_particles)

Use correlation tracking method to find spheres in an image.

Classes

rawImage(file_dir)

This class converts raw images to tif sequences.