Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Вивчайте Histogram Equalization | Image Processing with OpenCV
Computer Vision Essentials

Свайпніть щоб показати меню

book
Histogram Equalization

Simple Histogram Equalization

Histogram equalization is a technique used to enhance the global contrast of an image. It works by redistributing the intensity values so that they span the entire possible range (0 to 255 in 8-bit images). This is especially useful for images that are too dark or too bright, as it makes features more visible by equalizing the histogram of pixel intensities.

  • cv2.equalizeHist(image)

    • image: input grayscale image (must be single-channel);

    • Returns a new image with enhanced contrast by stretching and flattening the histogram.

Adaptive Histogram Equalization (CLAHE)

CLAHE (Contrast Limited Adaptive Histogram Equalization) is an advanced version of histogram equalization that operates on small regions (tiles) of the image rather than the whole image. It enhances local contrast and avoids over-amplifying noise by limiting the histogram contrast within each tile.

  • cv2.createCLAHE(...) creates a CLAHE object with:

    • clipLimit: threshold for contrast limiting (higher value = more contrast);

    • tileGridSize: size of the grid for dividing the image into tiles (e.g., 8x8).

  • clahe.apply(image) applies CLAHE to the input image.

Завдання

Swipe to start coding

You are given an image variable:

  • Apply simple histogram equalization and store in equalized;
  • Define CLAHE class object in clahe variable;
  • Apply CLAHE histogram equalization and store in clahe_equalized (parameters recomendation: clipLimit=2.0 and tileGridSize=(8, 8)).

Рішення

Switch to desktopПерейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 2. Розділ 5

Запитати АІ

expand
ChatGPT

Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат

book
Histogram Equalization

Simple Histogram Equalization

Histogram equalization is a technique used to enhance the global contrast of an image. It works by redistributing the intensity values so that they span the entire possible range (0 to 255 in 8-bit images). This is especially useful for images that are too dark or too bright, as it makes features more visible by equalizing the histogram of pixel intensities.

  • cv2.equalizeHist(image)

    • image: input grayscale image (must be single-channel);

    • Returns a new image with enhanced contrast by stretching and flattening the histogram.

Adaptive Histogram Equalization (CLAHE)

CLAHE (Contrast Limited Adaptive Histogram Equalization) is an advanced version of histogram equalization that operates on small regions (tiles) of the image rather than the whole image. It enhances local contrast and avoids over-amplifying noise by limiting the histogram contrast within each tile.

  • cv2.createCLAHE(...) creates a CLAHE object with:

    • clipLimit: threshold for contrast limiting (higher value = more contrast);

    • tileGridSize: size of the grid for dividing the image into tiles (e.g., 8x8).

  • clahe.apply(image) applies CLAHE to the input image.

Завдання

Swipe to start coding

You are given an image variable:

  • Apply simple histogram equalization and store in equalized;
  • Define CLAHE class object in clahe variable;
  • Apply CLAHE histogram equalization and store in clahe_equalized (parameters recomendation: clipLimit=2.0 and tileGridSize=(8, 8)).

Рішення

Switch to desktopПерейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 2. Розділ 5
Switch to desktopПерейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Ми дуже хвилюємося, що щось пішло не так. Що трапилося?
some-alt