xmipp3.protocols.protocol_tilt_analysis module

class xmipp3.protocols.protocol_tilt_analysis.XmippProtTiltAnalysis(**args)[source]

Bases: ProtMicrographs, Protocol

Estimate the tilt of a micrograph, by analyzing the PSD correlations of different segments of the image.

calculateTiltCorrelationStep(mic)[source]
createOutputStep()[source]
getInputMicrographs()[source]
getInputMicrographsPointer()[source]
static getPSDs(micFolder, ID)[source]

Return the Mic folder where find the PSDs in the tmp folder.

getWindowSize()[source]

Function to get the window size, automatically or the one set by the user.

initializeStep()[source]
processMicrographStep(micDict)[source]
stats = {}
xmipp3.protocols.protocol_tilt_analysis.applyTransform(imag_array, M, shape)[source]

Apply a transformation(M) to a np array(imag) and return it in a given shape

xmipp3.protocols.protocol_tilt_analysis.computeStats(correlations)[source]
xmipp3.protocols.protocol_tilt_analysis.rotation(imag, angle, shape, P)[source]

Rotate a np.array and return also the transformation matrix #imag: np.array #angle: angle in degrees #shape: output shape #P: transform matrix (further transformation in addition to the rotation)

xmipp3.protocols.protocol_tilt_analysis.setAttribute(obj, label, value)[source]
xmipp3.protocols.protocol_tilt_analysis.window_coordinates2D(x, y, windStep)[source]