nabu.preproc.flatfield_cuda module

class nabu.preproc.flatfield_cuda.CudaFlatFieldArrays(radios_shape, flats, darks, radios_indices=None, interpolation='linear', distortion_correction=None, nan_value=1.0, radios_srcurrent=None, flats_srcurrent=None, cuda_options=None)[source]

Bases: FlatFieldArrays

Initialize a flat-field normalization CUDA process. Please read the documentation of nabu.preproc.flatfield.FlatField for help on the parameters.

normalize_radios(radios)[source]

Apply a flat-field correction, with the current parameters, to a stack of radios.

Parameters:

radios_shape (pycuda.gpuarray.GPUArray) – Radios chunk.

nabu.preproc.flatfield_cuda.CudaFlatField

alias of CudaFlatFieldArrays

class nabu.preproc.flatfield_cuda.CudaFlatFieldDataUrls(radios_shape, flats, darks, radios_indices=None, interpolation='linear', distortion_correction=None, nan_value=1.0, radios_srcurrent=None, flats_srcurrent=None, cuda_options=None, **chunk_reader_kwargs)[source]

Bases: CudaFlatFieldArrays

Initialize a flat-field normalization CUDA process. Please read the documentation of nabu.preproc.flatfield.FlatField for help on the parameters.