资源简介
该程序用于求解数字图像处理的灰度共生矩阵的纹理特征值,如熵、对比度,同质性、能量等。只需要将该m文件放在Matlab的安装目录:toolbox/images/images文件夹里,按照参数设定,直接调用即可。
代码片段和文件信息
function stats = graycopropswy(varargin)
%GRAYCOPROPS Properties of gray-level co-occurrence matrix.
% STATS = GRAYCOPROPS(GLCMPROPERTIES) normalizes the gray-level
% co-occurrence matrix (GLCM) so that the sum of its elements is one. Each
% element in the normalized GLCM (rc) is the joint probability occurrence
% of pixel pairs with a defined spatial relationship having gray level
% values r and c in the image. GRAYCOPROPS uses the normalized GLCM to
% calculate PROPERTIES.
%
% GLCM can be an m x n x p array of valid gray-level co-occurrence
% matrices. Each gray-level co-occurrence matrix is normalized so that its
% sum is one.
%
% PROPERTIES can be a comma-separated list of strings a cell array
% containing strings the string ‘all‘ or a space separated string. They
% can be abbreviated and case does not matter.
%
% Properties include:
%
% ‘Contrast‘ the intensity contrast between a pixel and its neighbor
% over the whole image. Range = [0 (size(GLCM1)-1)^2].
% Contrast is 0 for a constant image.
%
% ‘Correlation‘ statistical measure of how correlated a pixel is to its
% neighbor over the whole image. Range = [-1 1].
% Correlation is 1 or -1 for a perfectly positively or
% negatively correlated image. Correlation is NaN for a
% constant image.
%
% ‘Energy‘ summation of squared elements in the GLCM. Range = [0 1].
% Energy is 1 for a constant image.
%
% ‘Homogeneity‘ closeness of the distribution of elements in the GLCM to
% the GLCM diagonal. Range = [0 1]. Homogeneity is 1 for
% a diagonal GLCM.
%
% If PROPERTIES is the string ‘all‘ then all of the above properties are
% calculated. This is the default behavior. Please refer to the
% Documentation for more information on these properties.
%
% STATS is a structure with fields that are specified by PROPERTIES. Each
% field contains a 1 x p array where p is the number of gray-level
% co-occurrence matrices in GLCM. For example if GLCM is an 8 x 8 x 3 array
% and PROPERTIES is ‘Energy‘ then STATS is a structure containing the
% field ‘Energy‘. This field contains a 1 x 3 array.
%
% Notes
% -----
% Energy is also known as uniformity uniformity of energy and angular second
% moment.
%
% Contrast is also known as variance and inertia.
%
% Class Support
% -------------
% GLCM can be logical or numeric and it must contain real non-negative finite
% integers. STATS is a structure.
%
% Examples
% --------
% GLCM = [0 1 2 3;1 1 2 3;1 0 2 0;0 0 0 3];
% stats = graycoprops(GLCM)
%
% I = imread(‘circuit.tif‘);
% GLCM2 = graycomatrix(I‘Offset‘[2 0;0 2]);
% stats = graycoprops(GLCM2{‘contrast‘‘homogeneity‘})
%
% See also GRAYCOMATRIX.
% Copyright 2003-2005 The MathWorks Inc.
allStats = {‘Contrast‘‘Correlat
- 上一篇:dianliu_sudu_1.mdl
- 下一篇:基于多相滤波实现信道化
相关资源
- 数字图像处理matlab版m文件
- 数字图像处理基于MATLAB膨胀算法实现
- 数字图像处理-染色体计数
- MATLAB数字图像处理算法演示程序GUI
- 数字图像处理matlab版本书中源程序及
- 数字图像处理源冈萨雷斯源代码
- 灰度共生矩阵实现及四个主要特征提
- dipum_toolbox_2.0.1.zip数字图像处理课本自
- 数字图像处理(MATLAB版)第三版_冈萨
- 基于matlab的图像篡改检测2
- 数字图像处理图像压缩MATLAB程序及仿
- 数字图像处理图像增强MATLAB程序及仿
- 真彩色图像转 256 色图像的MATLAB实现
- 数字图像报告-图像空间域平滑的几种
- 图像变换 二维离散傅里叶变换
- 数字图像处理图像分割matlab算法代码
- 数字图像处理作业冈萨雷斯版源码M
- 数字图像处理MATLAB2015版 源代码
- MATLAB灰度共生矩阵纹理特征提取
- 冈萨雷斯数字图像处理matlab版.源代码
- Matlab数字图像处理 大作业
- 数字图像处理——基于视频的车流量
- matlab数字图像处理 有约束最小平方恢
- 基于灰度共生矩阵的图像分割
- 计算灰度共生矩阵的对比度
- 详解MATLAB数字图像处理
- 灰度共生矩阵matlab代码
- 灰度共生矩阵提取结肠癌图像特征,
- 数字图像处理文献综述
- matlab对两张彩色图进行直方图匹配并
评论
共有 条评论