nabu.preproc.ctf_cuda module

class nabu.preproc.ctf_cuda.CudaCTFPhaseRetrieval(shape, geo_pars, delta_beta, padded_shape='auto', padding_mode='reflect', translation_vh=None, normalize_by_mean=False, lim1=1e-05, lim2=0.2, use_rfft=True, fftw_num_threads=None, logger=None, cuda_options=None)[source]

Bases: CTFPhaseRetrieval

Cuda back-end of CTFPhaseRetrieval

Initialize a CudaCTFPhaseRetrieval.

Parameters:
  • shape (tuple) – Shape of the images to process

  • padding_mode (str) – Padding mode. Default is “reflect”.

  • documentation. (Please refer to CTFPhaseRetrieval) –

set_input(data)
retrieve_phase(image, output=None)[source]

Perform padding on an image. Please see the documentation of CTFPhaseRetrieval.retrieve_phase().