# Single-Image-Dehazing-Python
python implementation of the paper: "Efficient Image Dehazing with Boundary Constraint and Contextual Regularization"
## Quickstart
This library performs image dehazing.
## Installation
To install, run:
```
$ pip install image_dehazer
```
## Usage:
```Python
import image_dehazer # Load the library
HazeImg = cv2.imread('image_path') # read input image -- **must be a color image**
HazeCorrectedImg, HazeMap = image_dehazer.remove_haze(HazeImg) # Remove Haze
cv2.imshow('input image', HazeImg); # display the original hazy image
cv2.imshow('enhanced_image', HazeCorrectedImg); # display the result
cv2.imshow('HazeMap', HazeMap); # display the HazeMap
cv2.waitKey(0) # hold the display window
### user controllable parameters (with their default values):
airlightEstimation_windowSze=15
boundaryConstraint_windowSze=3
C0=20
C1=300
regularize_lambda=0.1
sigma=0.5
delta=0.85
showHazeTransmissionMap=True
```
As easy as that!
Raw data
{
"_id": null,
"home_page": "https://github.com/Utkarsh-Deshmukh/Single-Image-Dehazing-Python",
"name": "image-dehazer",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "Single Image Dehazing,Haze Removal",
"author": "utkarsh-deshmukh",
"author_email": "utkarsh.deshmukh@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/e2/cc/203bef9960516b2403f5811449b12c6ca3f5bd7928d9cd8c9268e43d79d2/image_dehazer-0.0.9.tar.gz",
"platform": null,
"description": "# Single-Image-Dehazing-Python\r\npython implementation of the paper: \"Efficient Image Dehazing with Boundary Constraint and Contextual Regularization\"\r\n\r\n\r\n## Quickstart\r\nThis library performs image dehazing.\r\n\r\n## Installation\r\n\r\nTo install, run:\r\n```\r\n$ pip install image_dehazer\r\n```\r\n\r\n## Usage:\r\n```Python\r\nimport image_dehazer\t\t\t\t\t\t\t\t\t\t# Load the library\r\n\r\nHazeImg = cv2.imread('image_path')\t\t\t\t\t\t# read input image -- **must be a color image**\r\nHazeCorrectedImg, HazeMap = image_dehazer.remove_haze(HazeImg)\t\t# Remove Haze\r\n\r\ncv2.imshow('input image', HazeImg);\t\t\t\t\t\t# display the original hazy image\r\ncv2.imshow('enhanced_image', HazeCorrectedImg);\t\t\t# display the result\r\ncv2.imshow('HazeMap', HazeMap);\t\t\t\t\t\t\t# display the HazeMap\r\ncv2.waitKey(0)\t\t\t\t\t\t\t\t\t\t\t# hold the display window\r\n\r\n\r\n### user controllable parameters (with their default values):\r\nairlightEstimation_windowSze=15\r\nboundaryConstraint_windowSze=3\r\nC0=20\r\nC1=300\r\nregularize_lambda=0.1\r\nsigma=0.5\r\ndelta=0.85\r\nshowHazeTransmissionMap=True\r\n```\r\nAs easy as that!\r\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "remove haze from images",
"version": "0.0.9",
"split_keywords": [
"single image dehazing",
"haze removal"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "e2cc203bef9960516b2403f5811449b12c6ca3f5bd7928d9cd8c9268e43d79d2",
"md5": "fc7d379f4936b467cbee0c968f84a067",
"sha256": "67323e36fc7c5da604ca8dd1fde9e58197b896e86b75e559174091581b811ad3"
},
"downloads": -1,
"filename": "image_dehazer-0.0.9.tar.gz",
"has_sig": false,
"md5_digest": "fc7d379f4936b467cbee0c968f84a067",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 6189,
"upload_time": "2023-02-08T20:13:57",
"upload_time_iso_8601": "2023-02-08T20:13:57.357226Z",
"url": "https://files.pythonhosted.org/packages/e2/cc/203bef9960516b2403f5811449b12c6ca3f5bd7928d9cd8c9268e43d79d2/image_dehazer-0.0.9.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-02-08 20:13:57",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "Utkarsh-Deshmukh",
"github_project": "Single-Image-Dehazing-Python",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "image-dehazer"
}