io

IO module

Convenience functions for handling image paths, sorting paths and loading images.

The default dtype for the images is np.float32. This saves memory compared to np.float64 without significant losses in accuracy since these images are normally represented in a range from 0 -> 1 or -1 -> 1.

Functions

general_path_sorter(path_list, pattern)

General sorting of paths in ascending order with regex pattern.

image_paths(img_dir[, image_types])

Selects all images given in the image_types list from a directory

load_images(paths[, dtype])

Loads all images from the paths into memory and stores them in an ImageStack.

plot_cracks(image, cracks[, linewidth, ...])

Plots cracks in the foreground with an image in the background.

plot_gabor(kernel[, cmap])

Plot the real part of the Gabor kernel

save_images(images[, image_format, names, ...])

Save all images.

sort_paths(path_list[, sorting_key])

Sorts the given paths according to a sorting keyword.