Giter Site home page Giter Site logo

glcm's Introduction

* GLCM(Gray-level Co-occurrence Matrix) Implementation using C language 
- Implementation of GLCM features(http://haralick.org/journals/TexturalFeatures.pdf)  
- 13 features Implementation in the haralick`s features.
- gray-level quantization and some code optimization(ex: loop calculation) for fast processing speed.
- No 3rd party lib dependency, OpenCV was used only for image I/O handling.

* File Description
- Param.h: parameters setting for quantization level, test image size, neighborhood pixel distance, angle range 
- Vision_Test: main fuction
- GLCM: image quantization, GLCM calculation
- Data.h: arrays for algorithms 

* Program Description
- You can use any kind of OpenCV Version.
- For the minimization of dynamic memory allocation, I use array buffer. Thus, You must set the width and height(IMAGE_WIDTH, IMAGE_HEIGHT in Param.h) of the image in advance. 
- OpenCV was used only for image reading fuction(ex: cvLoadImage("lenna.bmp", CV_LOAD_IMAGE_GRAYSCALE)).
- This program use only gray scale image format But you can use color image format using above opencv code.  
- If you run the main fuction(Vision_Test.cpp), you can see the results of the haralick`s features.
- haralick`s features: Energy, Contrast, Correlation, Sum of Squares, Local Stability, Sum Average, Sum Variance, Sum Entropy, Entropy, Difference Variance, Difference Entropy, Information Measure Correlation 1 and Information Measure Correlation 2.
 
 

glcm's People

Contributors

mck0517 avatar

Watchers

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