{"id":23123341,"url":"https://github.com/ghnmqdtg/image_histogram_equalization","last_synced_at":"2025-06-26T00:04:45.239Z","repository":{"id":160810707,"uuid":"555291582","full_name":"ghnmqdtg/image_histogram_equalization","owner":"ghnmqdtg","description":"A project to implement the histogram equalization with Python","archived":false,"fork":false,"pushed_at":"2023-01-16T06:41:51.000Z","size":1844,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-04T04:26:59.830Z","etag":null,"topics":["histogram-equalization","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ghnmqdtg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-10-21T09:44:29.000Z","updated_at":"2023-01-16T06:43:25.000Z","dependencies_parsed_at":"2023-06-10T12:15:30.794Z","dependency_job_id":null,"html_url":"https://github.com/ghnmqdtg/image_histogram_equalization","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ghnmqdtg/image_histogram_equalization","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghnmqdtg%2Fimage_histogram_equalization","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghnmqdtg%2Fimage_histogram_equalization/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghnmqdtg%2Fimage_histogram_equalization/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghnmqdtg%2Fimage_histogram_equalization/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ghnmqdtg","download_url":"https://codeload.github.com/ghnmqdtg/image_histogram_equalization/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghnmqdtg%2Fimage_histogram_equalization/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261973725,"owners_count":23238586,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["histogram-equalization","python"],"created_at":"2024-12-17T07:33:44.202Z","updated_at":"2025-06-26T00:04:45.190Z","avatar_url":"https://github.com/ghnmqdtg.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Image Histogram Equalization with Python\n## Introduction\nThis project is to implement histogram equalization with Python. You can put the target image in folder `./src` and set the configurations in `./config`. For details, please refer to the comments in the codes.\n\n## Results\n\n## Input and Output\n\u003e For the example image, I decreased the brightness of the original image and converted it to grayscale.\n\n\u003ctable border=\"0\"\u003e\n \u003ctr\u003e\n    \u003ctd\u003e\u003cb style=\"font-size:20px\"\u003eInput image\u003c/b\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003cb style=\"font-size:20px\"\u003eOutput image\u003c/b\u003e\u003c/td\u003e\n \u003c/tr\u003e\n \u003ctr\u003e\n    \u003ctd\u003e\u003cimg src=\"./dest/img_original.jpg\"\u003e\u003c/img\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003cimg src=\"./dest/img_equalized.jpg\"\u003e\u003c/img\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/table\u003e\n\n## Analysis\nThe following two plots compare the PDF (Probability Density Function) and CDF (cumulative distribution function) of input and output images.\n\nAs you can see, after applying the histogram equalization, the pixel intensity distribution (PDF) becomes more dispersed. And the CDF is uniformly distributed.\n\n\u003ctable border=\"0\"\u003e\n \u003ctr\u003e\n    \u003ctd\u003e\u003cb style=\"font-size:20px\"\u003ePDF\u003c/b\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003cb style=\"font-size:20px\"\u003eCDF\u003c/b\u003e\u003c/td\u003e\n \u003c/tr\u003e\n \u003ctr\u003e\n    \u003ctd\u003e\u003cimg src=\"./dest/analysis_PDF.jpg\"\u003e\u003c/img\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003cimg src=\"./dest/analysis_CDF.jpg\"\u003e\u003c/img\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/table\u003e\n\n\n## Development Environment\n```\nPython 3.9.6\nMacOS 12.6\n```\n\n## How to use it?\n1. Install the dependencies\n    ```shell\n    pip install -r requirements.txt\n    ```\n2. Update the `config.py` if needed\n\n3. Run the `main.py`\n    ```shell\n    python main.py\n    ```\n\n\u003cstyle\u003e\n\ntd {\n    /* border:black thin solid; */\n    max-width:50%;\n    width:50%;\n}\n\ntable {\n    width:100%;\n}\n\n\u003c/style\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghnmqdtg%2Fimage_histogram_equalization","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fghnmqdtg%2Fimage_histogram_equalization","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghnmqdtg%2Fimage_histogram_equalization/lists"}