xmipp3.protocols.protocol_preprocess.protocol_mask module

class xmipp3.protocols.protocol_preprocess.protocol_mask.XmippProtMask(**args)[source]

Bases: object

This class implement the common features for applying a mask with Xmipp either SetOfParticles, Volume or SetOfVolumes objects.

copyMaskFileStep(inputMaskFile, outputMaskFile)[source]

Create a local copy of the mask. We use ImageHandler.convert instead of copyFile because the mask could be inside an stack.

maskStep(args)[source]
class xmipp3.protocols.protocol_preprocess.protocol_mask.XmippProtMaskParticles(**kwargs)[source]

Bases: ProtMaskParticles, XmippProcessParticles, XmippProtMask, XmippGeometricalMask2D

Apply mask to a set of particles

GEOMETRY_BASECLASS

alias of XmippGeometricalMask2D

MASK_CLASSNAME = 'Mask'
MASK_FILE = 'mask.spi'
class xmipp3.protocols.protocol_preprocess.protocol_mask.XmippProtMaskVolumes(**kwargs)[source]

Bases: ProtMaskVolumes, XmippProcessVolumes, XmippProtMask, XmippGeometricalMask3D

Apply mask to a volume

GEOMETRY_BASECLASS

alias of XmippGeometricalMask3D

MASK_CLASSNAME = 'VolumeMask'
MASK_FILE = 'mask.vol'