nabu.preproc.double_flatfield_cuda
source module nabu.preproc.double_flatfield_cuda
Classes
-
CudaDoubleFlatField — Init double flat field with Cuda backend.
source class 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)
Bases : DoubleFlatField
Init double flat field with Cuda backend.
Methods
-
compute_double_flatfield — Read the radios and generate the "double flat field" by averaging and possibly other processing.
-
get_double_flatfield — Get the double flat field or a subregion of it.
-
apply_double_flatfield — Apply the "double flatfield" filter on a chunk of radios. The processing is done in-place !
source method CudaDoubleFlatField.compute_double_flatfield(radios, recompute=False)
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.
Raises
-
TypeError
source method CudaDoubleFlatField.get_double_flatfield(radios=None, compute=False)
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.
Raises
-
ValueError
source method CudaDoubleFlatField.apply_double_flatfield(radios)
Apply the "double flatfield" filter on a chunk of radios. The processing is done in-place !