pwem.protocols.protocol_crop_resize_vols module

class pwem.protocols.protocol_crop_resize_vols.ProtCropResizeVols(**kwargs)[source]

Bases: EMProtocol

Cropping and resizing volumes. The protocol can resize the volumes in to manners:

  1. By setting a target sampling rate.

  2. By setting the output box dimensions.

The protocol also allows to crop or pad the volume, setting the output boxsize. This option is applied after the previous resizing option.

RESIZE_DIMENSIONS = 1
RESIZE_SAMPLINGRATE = 0
WINDOW_OP_CROP = 0
WINDOW_OP_WINDOW = 1
convertInputStep()[source]
createOutputStep()[source]
cropResizeStep()[source]
static readMRCfile(inVolFName: str) ndarray[source]
static writeMRCfile(vol: ndarray, fnOut: str) None[source]