pwem.protocols.protocol_align_movies module
- class pwem.protocols.protocol_align_movies.ProtAlignMovies(**kwargs)[source]
Bases:
ProtProcessMovies
Base class for movie alignment protocols such as: motioncorr, crosscorrelation and optical flow
Alignment parameters are defined in common. For example, the frames range used for alignment and final sum, the binning factor or the cropping options (region of interest)
- composePSDImages(psdImg1, psdImg2, outputFn, outputFnUncorrected=None, outputFnCorrected=None)[source]
Compose a single PSD image: left part from psd1 (uncorrected PSD), right-part from psd2 (corrected PSD)
- computePSDImages(movie, fnUncorrected, fnCorrected, outputFnUncorrected=None, outputFnCorrected=None)[source]
- computePSDs(movie, fnUncorrected, fnCorrected, outputFnUncorrected=None, outputFnCorrected=None)[source]
- computeThumbnail(inputFn, scaleFactor=6, outputFn=None)[source]
Generates a thumbnail of the input file
- correctGain(movieFn, outputFn, gainFn=None, darkFn=None)[source]
correct a movie with both gain and dark images
- evenOddCapable = False
- class pwem.protocols.protocol_align_movies.ProtAverageFrames(**kwargs)[source]
Bases:
ProtAlignMovies
Very simple protocol to align all the frames of a given data collection session. It can be used as a sanity check.