Preprocessor#

class Preprocessor[source]#

Bases: object

Implements filtering operations on density arrays.

Methods

Preprocessor.apply_method(method, parameters)

Invoke Preprocessor.method using parameters.

Preprocessor.bandpass_filter(template, ...)

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

Preprocessor.bandpass_mask(shape, lowpass, ...)

Compute an approximate Butterworth bundpass filter.

Preprocessor.blob_filter(template, width)

Apply blob filter defined as:

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

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

Preprocessor.difference_of_gaussian_filter(...)

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

Preprocessor.edge_gaussian_filter(template, ...)

Perform Gaussian filterring according to edges in the input template.

Preprocessor.gaussian_filter(template, sigma)

Convolve an atomic structure with a Gaussian kernel.

Preprocessor.hamming_filter(template, width)

Apply Hamming filter defined as:

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

Resample arr within box using kind interpolation.

Preprocessor.kaiserb_filter(template, width)

Apply Kaiser filter defined as:

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.mean_filter(template, width)

Perform mean filtering.

Preprocessor.median_filter(template[, size])

Perform median filtering.

Preprocessor.method_to_id(method, parameters)

Generate a unique ID for a specific method operation.

Preprocessor.mipmap_filter(template, level)

Perform mip map antialiasing filtering.

Preprocessor.rank_filter(template, rank)

Perform rank filtering.

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

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