Git Product home page Git Product logo

opencv-histlib's Introduction

OpenCV-histlib

HistLib is a C++ histogram visualization and manipulation library built with OpenCV. This library provides the ability to create custom histograms, generate histograms from grayscale/color images, and apply value channel normalization using a set of simple functions.

Please see Samples on how to use this library.

Input image Corresponding RGB histogram
Input Histogram

Changes

Version 0.3

  • Switched to the CMake build system
  • Refactored functions into an object oriented library
  • Cleaner sample code
  • Extensive commenting

Install

Checkout or extract the source into `/code/opencv-histlib`

# Make a new build directory for the project
mkdir ~/code/build/opencv-histlib
cd ~/code/build/opencv-histlib

# Initialize the CMake build environment
cmake ~/code/opencv-histlib/

# Copy images to the build directory  (required to run the sample code)
cp -Rf ~/code/opencv-histlib/images ./

# Build and run the sample code
make
./sample

The output from sample should look like this:

Created single channel histogram: ramp.hist.png
Created value histogram: bars.value.hist.png
Created BGR histogram: bars.rgb.hist.png
Created value histogram: sunset.gray.hist.png
Created BGR histogram: sunset.bgr.hist.png
Created value histogram: fiveShadesLowContrast.value.hist.png
Created value histogram: fiveShadesLowContrastNorm.value.hist.png
Created normalized image: fiveShadesLowContrastNorm.png
Created clipped image: fiveShadesLowContrastClipped.value.png
Created value histogram: fiveShadesLowContrastClipped.value.hist.png
Created value histogram: fiveShades.value.hist.png
Created value histogram: fiveShadesNorm.value.hist.png

opencv-histlib's People

Contributors

filitchp avatar

Watchers

James Cloos avatar ShengYu 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.