ImageFlattenerOptions¶
- class giant.image_processing.image_flattener.ImageFlattenerOptions(image_flattening_noise_approximation: giant.image_processing.image_flattener.ImageFlatteningNoiseApprox = <ImageFlatteningNoiseApprox.GLOBAL: 1>, local_flattening_kernel_size: int = 7)[source]¶
- Parameters:
image_flattening_noise_approximation (ImageFlatteningNoiseApprox)
local_flattening_kernel_size (int)
- image_flattening_noise_approximation: ImageFlatteningNoiseApprox = 1¶
This specifies whether to globally flatten the image and compute a single noise level or to locally do so.
Generally global is sufficient for star identification purposes. If you are trying to extract very dim stars (or particles) then you may need to use the
'LOCAL'
option, which is much better for low SNR targets but much slower.
- local_flattening_kernel_size: int = 7¶
This specifies the half size of the kernel to use when locally flattening an image.
If you are using global flattening of an image this is ignored.
The size of the kernel/region used in flattening the image will be
2*local_flattening_kernel_size+1
.