Preprocessor#

Constructor#

Preprocessor

Implements filtering operations on density arrays.

Filters#

Preprocessor.continuous_wedge_mask(...[, ...])

Generate a wedge in a given shape based on specified tilt angles and axis.

Preprocessor.step_wedge_mask(shape[, ...])

Create a wedge mask with the same shape as template by rotating a plane according to tilt angles.

Preprocessor.gaussian_filter(template, sigma)

Convolve an atomic structure with a Gaussian kernel.

Preprocessor.difference_of_gaussian_filter(...)

Apply the Difference of Gaussian (DoG) bandpass filter on the provided template.

Preprocessor.bandpass_filter(template, ...)

Apply a band-pass filter on the provided template, using a Butterworth approximation.

Preprocessor.local_gaussian_alignment_filter(...)

Simulate electron density by optimizing a sum of Gaussians.

Preprocessor.local_gaussian_filter(template, ...)

Wrapper for Preprocessor.local_gaussian_alignment_filter if no target is available.

Preprocessor.edge_gaussian_filter(template, ...)

Perform Gaussian filterring according to edges in the input template.

Preprocessor.mean_filter(template, width)

Perform mean filtering.

Preprocessor.rank_filter(template, rank)

Perform rank filtering.

Preprocessor.mipmap_filter(template, level)

Perform mip map antialiasing filtering.

Preprocessor.kaiserb_filter(template, width)

Apply Kaiser filter defined as:

Preprocessor.blob_filter(template, width)

Apply blob filter defined as:

Preprocessor.hamming_filter(template, width)

Apply Hamming filter defined as:

Utilities#

Preprocessor.interpolate_box(arr, box[, kind])

Resample arr within box using kind interpolation.