nabu.preproc.double_flatfield_cuda module

class nabu.preproc.double_flatfield_cuda.CudaDoubleFlatField(shape, result_url=None, sub_region=None, detector_corrector=None, input_is_mlog=True, output_is_mlog=False, average_is_on_log=False, sigma_filter=None, filter_mode='reflect', log_clip_min=None, log_clip_max=None, cuda_options=None)[source]

Bases: DoubleFlatField

Init double flat field with Cuda backend.

compute_double_flatfield(radios, recompute=False)[source]

Read the radios and generate the “double flat field” by averaging and possibly other processing.

Parameters:
  • radios (array) – Input radios chunk.

  • recompute (bool, optional) – Whether to recompute the double flatfield if already computed.

get_double_flatfield(radios=None, compute=False)[source]

Get the double flat field or a subregion of it.

Parameters:
  • radios (array, optional) – Input radios chunk

  • compute (bool, optional) – Whether to compute the double flatfield anyway even if a dump file exists.

apply_double_flatfield(radios)[source]

Apply the “double flatfield” filter on a chunk of radios. The processing is done in-place !