← Back to all transforms
PlanckianJitter
Description
Randomly jitter the image illuminant along the Planckian locus. Physics-based color augmentation creates realistic variations in chromaticity, simulating illumination changes in a scene. Args: mode (Literal["blackbody", "cied"]): The mode of the transformation. `blackbody` simulates blackbody radiation, and `cied` uses the CIED illuminant series. temperature_limit (tuple[int, int]): Temperature range to sample from. For `blackbody` mode, the range should be within `[3000K, 15000K]`. For "cied" mode, the range should be within `[4000K, 15000K]`. Range should include white temperature `6000` Higher temperatures produce cooler (bluish) images. If not defined, it defaults to: - `[3000, 15000]` for `blackbody` mode - `[4000, 15000]` for `cied` mode p (float): Probability of applying the transform. Defaults to 0.5. sampling_method (Literal["uniform", "gaussian"]): Method to sample the temperature. "uniform" samples uniformly across the range, while "gaussian" samples from a Gaussian distribution. p (float): Probability of applying the transform. Defaults to 0.5. If `temperature_limit` is not defined, it defaults to: - `[3000, 15000]` for `blackbody` mode - `[4000, 15000]` for `cied` mode Targets: image Image types: uint8, float32 References: - https://github.com/TheZino/PlanckianJitter - https://arxiv.org/pdf/2202.07993.pdf
Parameters
- p: float (default: 0.5)
- mode: Literal['blackbody', 'cied'] (default: 'blackbody')
- temperature_limit: Annotated[tuple[int, int], AfterValidator(func=<function nondecreasing at 0x7e8f03f4ac00>)] | None (default: null)
- sampling_method: Literal['uniform', 'gaussian'] (default: 'uniform')
Targets
- Image
Try it out
Original Image (width = 484, height = 733):
Transformed Image:
Transform not yet applied