View Source Image.Options.ToneCurve (image v0.45.0)

Options and option validation for Image.apply_tone_curve/2.

Summary

Types

A percent expressed as a float in the range [0.0..1.0]

Range for setting the black point and white point. The range is 0..100 reflecting the values of L* in the Lab colorspace.

The adjustment range for the shadow, midpoint and highlights.

Functions

Valid range for setting the black point and white point.

The range in which the shadows, mids and highlights can be adjusted.

Types

@type positive_percent() :: float()

A percent expressed as a float in the range [0.0..1.0]

@type set_point() :: 0..100

Range for setting the black point and white point. The range is 0..100 reflecting the values of L* in the Lab colorspace.

@type tone_adjustment() :: -30..30

The adjustment range for the shadow, midpoint and highlights.

@type tone_curve_option() ::
  {:black_point, set_point()}
  | {:white_point, set_point()}
  | {:shadow_point, positive_percent()}
  | {:mid_point, positive_percent()}
  | {:highlight_point, positive_percent()}
  | {:shadows, tone_adjustment()}
  | {:mid_points, tone_adjustment()}
  | {:highlights, tone_adjustment()}

Options applicable to Image.apply_tone_curve/2.

@type tone_curve_options() :: [tone_curve_option()] | map()

Functions

Link to this macro

is_set_point(point)

View Source (macro)

Valid range for setting the black point and white point.

Link to this macro

is_tone_adjustment(tone)

View Source (macro)

The range in which the shadows, mids and highlights can be adjusted.

Link to this function

validate_options(options)

View Source

Validate the options for Image.apply_tone_curve/2.