Skip to content
プロジェクト

概要

Single Image Haze Removal Using Dark Channel Prior

デザイン・メディア

この数値の測り方

できること

  • Realize end-to-end single image defogging without relying on additional auxiliary images
  • Optimize transmission map with guided filtering to avoid edge blurring and halo artifacts
  • Preserve image texture details and natural color restoration while removing haze
  • Lightweight code, low operation threshold and easy secondary development and migration

計測したスター増加

24時間
0
7日間
0
15日間
0
1か月
履歴を収集中

期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。

Single Image Dehazing Based on Dark Channel Prior

Introduction

This project implements a classic single-image dehazing algorithm based on the Dark Channel Prior (DCP) theory. To optimize the image restoration effect and eliminate halo artifacts generated by traditional dark channel algorithms, the project introduces Guided Image Filtering for soft refinement of the transmission map.

The algorithm effectively removes atmospheric haze, restores the true color and texture details of blurred hazy images, and features simple deployment, fast operation and outstanding restoration performance, which is suitable for basic research and engineering application of image defogging.

Dependencies

This project is developed based on Python, and the required third-party libraries are as follows:

  • OpenCV: Used for image reading, preprocessing, pixel operation and result output

  • NumPy: Used for matrix operation, numerical calculation and algorithm logic implementation

You can install all dependencies quickly via the following command:

pip install opencv-python numpy

Algorithm Principle & Reference

The core algorithm of this project comes from two classic top conferences in computer vision, and the theoretical system is mature and reliable:

  • Dark Channel Prior Kaiming He, Jian Sun, Xiaoou Tang. Single Image Haze Removal Using Dark Channel Prior.CVPR 2009. This paper proposes the dark channel prior rule for hazy images, which is the core theoretical basis for single-image defogging.

  • Guided Image Filtering Kaiming He, Jian Sun, Xiaoou Tang. Guided Image Filtering. ECCV 2010. The guided filtering algorithm is used to optimize the rough transmission map obtained by DCP, smooth the image while retaining edge details, and suppress defogging artifacts.

Effect Demonstration

The following shows the comparison effect of the original hazy image and the dehazed image processed by the algorithm:

Comparison between hazy input images (input/) and dehazed output images (output/):

Hazy Input 1 Dehazed Output 1



Hazy Input 2 Dehazed Output 2



Hazy Input 3 Dehazed Output 3

Left: Hazy Input Image | Right: Dehazed Result Image

Left: Original hazy image | Right: Image after dehazing processing

Core Features

  • Realize end-to-end single image defogging without relying on additional auxiliary images

  • Optimize transmission map with guided filtering to avoid edge blurring and halo artifacts

  • Preserve image texture details and natural color restoration while removing haze

  • Lightweight code, low operation threshold and easy secondary development and migration

関連プロジェクトを探す

読み込み中…