Powered by AppSignal & Oban Pro
Would you like to see your link here? Contact us

Equalize

livebooks/vix/equalize.livemd

Equalize

Mix.install([
  {:image, "~> 0.54"},
  {:kino, "~> 0.14"}
])

Prepare image

dark_image = Image.open!("/home/livebook/vix/dark.jpg")

Execution

[
  dark_image,
  Image.equalize!(dark_image),
  Image.equalize!(dark_image, :each),
  Image.equalize!(dark_image, :luminance)
]
|> Kino.Layout.grid(columns: 2)