Giter Site home page Giter Site logo

c-glcm's Introduction

C-GLCM

C++ source code of Grey Level Co-occurrence Matrix

This file contains source code for the texture measurment algorithm of "gray level co-occurence matrix (GLCM)" This code can produce result as exactly same as the "python scikit lib of GLCM"

This algorithm also reflects the implementation of the following paper "Textural Features for Image Classification"

The author "James Darrell McCauley" of this paper upload a Texture measurement code in this following link https://github.com/wnd-charm

I used this code and modify functions to create GLCM function for i own use. The file "C_GLCM.cpp" contains all the required functions for measuring texture from different angle and distance. For expamle a main function has been written to demonstrate how different texture features can be measured using GLCM for distance 1 and angle 0

Possible linking error can occure if these following libs are not included in Properties-> Linker -> additional dependencies

cv.lib cxcore.lib highgui.lib

A sample image is also provided for illustrates the GLCM tutorial of this following link http://www.fp.ucalgary.ca/mhallbey/tutorial.htm

the samle image is also creted based on the example of the above link z.bmp image has 8-bit data of 0 0 1 1 0 0 1 1
0 2 2 2 2 2 3 3

"glcmCusingMask" presents coding for glcm using a mask. here mask will indicate those pixel which GLCM will avoid during calculation. Here the mask Image in a binary image. white pixel location of the mask image will be avoid during GLCM calculation of the input image.

'glcmMaskExcel' presents coding for saving glcm analysis in excel using both input image and image mask reading from a path location of input directory.

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.