ess.imaging.tools.analysis#

Tools for image analysis and manipulation.

Functions

blockify(image, **sizes)

Blockify an image by folding it into blocks of specified sizes.

laplace_2d(image, dims)

Compute the Laplace operator of a 2d image using a kernel that approximates the second derivative in two dimensions.

resample(image, sizes[, method])

Resample an image by folding it into blocks of specified sizes and applying a reduction method.

sharpness(image, dims[, max_size])

Calculate the sharpness of an image by computing the Laplace operator and summing the absolute values of the results over specified dimensions.