Code Monkey home page Code Monkey logo

color-equalize-hist-sample's Introduction

color-equalize-hist-sample

カラー画像に対するヒストグラム平坦化のOpenCVサンプルです。
画像をRGBからYUVに変換し、Y(輝度情報)のヒストグラム平坦化を実施することで、
カラー画像に対しヒストグラム平坦化を行っています。

Requirement

  • OpenCV 3.4.2 or later

Demo

サンプル画像でのデモの実行方法は以下です。

python color_equalize_hist.py

また、Webカメラを用いたデモの実行方法は以下です。
デモ実行時には、以下のオプションが指定可能です。

  • --device
    カメラデバイス番号の指定 (デフォルト:0)
  • --width
    カメラキャプチャ時の横幅 (デフォルト:960)
  • --height
    カメラキャプチャ時の縦幅 (デフォルト:540)
  • --use_CLAHE
    ヒストグラム平坦化にCLAHEを用いるか (デフォルト:未指定)
    ※コントラスト制限適応ヒストグラム平坦化(CLAHE, Contrast Limited Adaptive Histogram Equalization)
python sample.py

Author

高橋かずひと(https://twitter.com/KzhtTkhs)

License

color-equalize-hist-sample is under Apache-2.0 License.

また、サンプルの画像はフリー素材ぱくたそ様の写真を利用しています。

color-equalize-hist-sample's People

Contributors

kazuhito00 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  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.