nabu.preproc.ccd_cuda
source module nabu.preproc.ccd_cuda
Classes
-
CudaCCDFilter — Initialize a CudaCCDCorrection instance. Please refer to the documentation of CCDCorrection.
-
CudaLog — Helper class to take -log(radios)
source class CudaCCDFilter(radios_shape, correction_type='median_clip', median_clip_thresh=0.1, abs_diff=False, cuda_options=None)
Bases : CCDFilter
Initialize a CudaCCDCorrection instance. Please refer to the documentation of CCDCorrection.
Methods
-
median_clip_correction — Compute the median clip correction on one image.
source method CudaCCDFilter.median_clip_correction(radio, output=None)
Compute the median clip correction on one image.
Parameters
-
radio : cupy array — A radio image
-
output : cupy array — Output data.
source class CudaLog(radios_shape, clip_min=None, clip_max=None)
Bases : Log
Helper class to take -log(radios)
Initialize a Log processing.
Parameters
-
radios_shape : tuple — The shape of 3D radios stack.
-
clip_min : float, optional — Data smaller than this value is replaced by this value.
-
clip_max : float, optional. — Data bigger than this value is replaced by this value.
Methods
-
take_logarithm — Take the negative logarithm of a radios chunk.
source method CudaLog.take_logarithm(radios, clip_min=None, clip_max=None)
Take the negative logarithm of a radios chunk.
Parameters
-
radios : cupy array — Radios chunk If not provided, a new GPU array is created.
-
clip_min : float, optional — Before taking the logarithm, the values are clipped to this minimum.
-
clip_max : float, optional — Before taking the logarithm, the values are clipped to this maximum.