GithubHelp home page GithubHelp logo

waseemkn / fuzzycolorimageenhancement-fuzzylogiccourse-ite5thyear Goto Github PK

View Code? Open in Web Editor NEW
14.0 1.0 9.0 942 KB

An implementation of a fuzzy color image enhancement algorithm

Jupyter Notebook 100.00%
fuzzy-logic image-enhancement python computer-vision

fuzzycolorimageenhancement-fuzzylogiccourse-ite5thyear's Introduction

Fuzzy Color Image Enhancement - Fuzzy Logic Course - ITE 5th Year

This repo is migrated to: https://github.com/mo-waseem/fuzzy-color-image-enhancements

Abstract

We can enhance the colors in an image by tunning two things brightness and contrast, this algorithm devided the image into fuzzy windows and every pixel has a membership degree to every window, the membership degrees are calculated depending on the distance between the window and the pixel, then the means and variances are calculated with respect to the membership degrees, the final image is obtained by summing up the images of every fuzzy window in a weight way, the weights used are membership degrees.

Algorithm Steps

  1. Convert the image to gray level space (if it is rgb convert every channel and work on one channel at a time then re-merge them).
  2. Calculate the pixels weights for every window.
  3. Calculate windows means and variances in a wieghted way.
  4. Do b_ij*f + a_ij where "a_ij" is the mean of ij window, "b_ij" is the variance of ij window, "f" is the image.
  5. Summing up the images of every fuzzy window in a weighted way.

Results

  • Grayscale:

alt text

  • RGB:

alt text

fuzzycolorimageenhancement-fuzzylogiccourse-ite5thyear's People

Contributors

waseemkn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.