pingwyn.core.func.process

Functions

affine_correct(image, vectors_from, lattice_to)

Perform an affine transformation on an image.

align_rows(image[, mask, method])

Perform Gwyddion-like median row alignment of images.

bin(obj[, bins, keep_dims, method])

Bin an object by combining datapoints.

clip(obj[, min, max, relative])

Clip data to cut off extreme values.

curve_fix_zero(curve[, strat])

Shift a curve such that the points at x = 0 or y = 0 are set to zero.

fix_zero(obj, *args, **kwargs)

Wrapper for pingwyn.image_fix_zero, pingwyn.curve_fix_zero and pingwyn.profile_fix_zero.

image_fix_zero(image[, mask])

Set minimum value of an image to zero.

normalise(obj[, strat])

Normalise an object.

profile_fix_zero(profile[, strat])

Shift a profile such that for each curve in the profile, the points at x = 0 or y = 0 are set to zero.

remove_artefacts(image_trace, image_retrace)

Remove a variety of scanning artefacts using FFT based feature detection.

remove_plane(image[, order, mask])

Remove an n-th order polynomial background from an image

smooth(obj, n_points[, strat])

Smooth data points.

square_pixels(image)

Resize an image such that the width and height of a pixel are equal (i.e. square).