deepdisc.data_format.augment_image

Utilities for augmenting image data.

Attributes

LAMBDA_EFFS

A_EBV

Functions

redden(image[, rng_seed])

Redden the image based off of A_E(B-V) values

gaussblur(image[, rng_seed])

Convolve with a gaussian filter to mimic psf blurring

scale_psf(sigi, lambda_eff)

multiband_gaussblur(image[, rng_seed])

Convolve with a gaussian filter to mimic psf blurring

dc2_train_augs(image)

Get the augmentation list

Module Contents

LAMBDA_EFFS = [3671, 4827, 6223, 7546, 8691, 9712][source]
A_EBV[source]
redden(image, rng_seed=None)[source]

Redden the image based off of A_E(B-V) values

Parameters:

image (ndarray HxWxC)

Return type:

augmented image

gaussblur(image, rng_seed=None)[source]

Convolve with a gaussian filter to mimic psf blurring Assumes constant (achromatic) psf

Parameters:

image (ndarray)

Return type:

augmented image

scale_psf(sigi, lambda_eff)[source]
multiband_gaussblur(image, rng_seed=None)[source]

Convolve with a gaussian filter to mimic psf blurring PSF size changes across filters based on the scale_psf function

Parameters:

image (ndarray)

Return type:

augmented image

dc2_train_augs(image)[source]

Get the augmentation list

Parameters:

image (image) – The image to be augmented

Returns:

augs – The list of augs for training. Set to RandomRotation, RandomFlip, RandomCrop

Return type:

detectron_addons.KRandomAugmentationList