easyiec.problems.ImageEnhancement#

class easyiec.problems.ImageEnhancement(image=None, size=256)[source]#

Bases: Problem

Photo colour grading with an eleven-parameter pipeline.

Exposure, contrast, saturation, white balance (temperature and tint), gamma, highlights and shadows, vignette, sharpening and hue shift applied to a fixed photograph (scikit-image’s coffee sample when available, otherwise a synthetic landscape). The default hidden utility measures closeness to a reference grading (for benchmarks); real sessions state a goal (“warm, inviting, magazine-like”).

utility(x, target=None)[source]#

Default hidden utility in [0, 1] (ground truth of benchmarks).

With a target genome it is a Gaussian similarity of standardized phenotype features; subclasses with explicit objectives override it.

Examples using easyiec.problems.ImageEnhancement#

Verbal steering: “much brighter, slightly less saturated”

Verbal steering: "much brighter, slightly less saturated"

Photo enhancement: grading an image by eye

Photo enhancement: grading an image by eye

You and Claude together in a notebook gallery

You and Claude together in a notebook gallery