GLCM-OpenCV

所属分类:OpenCV
开发工具:C/C++
文件大小:893KB
下载次数:4
上传日期:2020-04-29 15:34:42
上 传 者6843206
说明:  提取图像的灰度共生矩阵,计算整幅图像的纹理特征值图像。c++
(Extracting gray level co-occurrence matrix of image)

文件列表:
CMakeLists.txt (530, 2017-06-14)
image (0, 2017-06-14)
image\miska.jpg (69955, 2017-06-14)
image\Satellite.jpg (43707, 2017-06-14)
image\Test_Result.png (784233, 2017-06-14)
lib (0, 2017-06-14)
lib\libglcm.so (39038, 2017-06-14)
src (0, 2017-06-14)
src\glcm.cpp (23482, 2017-06-14)
src\glcm.h (3783, 2017-06-14)
src\main.cpp (3794, 2017-06-14)

This repository is the C++ Source Code of GLCM, which is based on OpenCV libraries after I learn about the theory of GLCM (Gray-level Co-occurrence Matrix). # GLCM's Theory I wrote a blog about GLCM's theory. And here is the web address: http://blog.csdn.net/ajianyingxiaoqinghan/article/details/71552744 # Files Introduction - src - Source Codes' Path - glcm.h - GLCM algorithm's head file source code - glcm.cpp - GLCM algorithm's C++ source code - main.cpp - GLCM algorithm's test program's source code - lib - the Generating Path of Dynamic-Link Library - image - the Path of Images for Algorithm Test Program - CMakeLists.txt - CMake File of this Project # Tutorial for Generating this Project ## 1. My Working Environment - Operating System: Ubuntu 14.04 LTS - OpenCV Version: 2.4.9 - Conditions before your cmake command: - have already done OpenCV's make & make install - have already done CMake's make & make install Besides, I also wrote the tutorial blog of how to install OpenCV 2.4.9 in Ubuntu 14.04. Here are the websites: CSDN:http://blog.csdn.net/ajianyingxiaoqinghan/article/details/62424132 GitHub:https://github.com/upcAutoLang/Blog/issues/1 ## 2. CMake this Project Open a terminal and enter in the path of folder named *GLCM_OpenCV*, then input commands like below: ```bash cmake ./ make ``` Then you will build this project. The path of binary files - /GLCM_OpenCV/build/bin The path of library files - /GLCM_OpenCV/build/lib # Test Results I run the algorithm test program by using image whose path is */GLCM_OpenCV/image/miska.jpg*, and the result is like below: ![](./image/Test_Result.png) the result of **Debug Version**: ```cpp Time of Magnitude Gray Image: 1.38906ms Time of Calculate Texture Features of the whole Image: 4126.57ms ``` the result of **Release Version**: ```cpp Time of Magnitude Gray Image: 0.452412ms Time of Calculate Texture Features of the whole Image: 1291.15ms ```

近期下载者

相关文件


收藏者