资源简介
灰度共生矩阵matlab代码 灰度共生矩阵matlab代码
代码片段和文件信息
function [GLCMSSI] = graycomatrix(varargin)
%GRAYCOMATRIX Create gray-level co-occurrence matrix.
% GLCMS = GRAYCOMATRIX(I) analyzes pairs of horizontally-adjacent pixels in
% a scaled version of I. If I is a binary image it is scaled to 2
% levels. If I is an intensity image it is scaled to 8 levels. In this
% case there are 8 x 8 = 64 possible ordered combinations of values for
% each pixel pair. GRAYCOMATRIX accumulates the total occurrence of each
% such combination producing a 8-by-8 output array GLCMS. The row and
% column subscripts in GLCMS correspond respectively to the first and second
% (scaled) pixel-pair values.
%
% GLCMS = GRAYCOMATRIX(IPARAM1VALUE1PARAM2VALUE2...) returns one or more
% gray-level co-occurrence matrices depending on the values of the optional
% parameter/value pairs. Parameter names can be abbreviated and case does
% not matter.
%
% Parameters include:
%
% ‘Offset‘ A p-by-2 array of offsets specifying the distance between
% the pixel-of-interest and its neighbor. Each row in the
% array is a two-element vector [ROW_OFFSET COL_OFFSET]
% that specifies the relationship or ‘Offset‘ between a
% pair of pixels. ROW_OFFSET is the number of rows between
% the pixel-of-interest and its neighbor. COL_OFFSET is the
% number of columns between the pixel-of-interest and its
% neighbor. For example if you want the number of
% occurrences where the pixel of interest is one pixel to the
% left of its neighbor then [ROW_OFFSET COL_OFFSET] is
% [0 1].
%
% Because this offset is often expressed as an angle the
% following table lists the offset values that specify common
% angles given the pixel distance D.
%
% Angle OFFSET
% ----- ------
% 0 [0 D]
% 45 [-D D]
% 90 [-D 0]
% 135 [-D -D]
%
% ROW_OFFSET and COL_OFFSET must be integers.
%
% Default: [0 1]
%
% ‘NumLevels‘ An integer specifying the number of gray levels to use when
% scaling the grayscale values in I. For example if
% ‘NumLevels‘ is 8 GRAYCOMATRIX scales the values in I so
% they are integers between 1 and 8. The number of gray levels
% determines the size of the gray-level co-occurrence matrix
% (GLCM).
%
% ‘NumLevels‘ must be an integer. ‘NumLevels‘ must be 2 if I
% is logical.
%
% Default: 8 for numeric
%
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 10978 2009-09-24 23:19 灰度共生矩阵matlab代码graycomatrix.m
----------- --------- ---------- ----- ----
10978 1
相关资源
- matlab 结构振动控制代码-RBPF
- matlab代码-雷达脉冲压缩及多普勒处理
- 基于SIFT特征的图像配准Matlab源代码
- MATLAB课程设计(cantor三分集)
- Matlab保留ROI区域
- 逆滤波,维纳滤波实现源代码MATLAB)
- 元胞自动机-Matlab实现.zip
- 沈再阳MATLAB信号处理 代码.zip
- MPC-test.zip
- 扩频方法实现图像水印
- 单相并网逆变器PQ仿真
- 学会用MATLAB实现傅里叶变换的时移,
-
Simuli
nk_RBF神经网络PID控制 -
基于F28335的Simuli
nk的PWM代码生成 - 基于粒子群算法的配电网无功优化.
- MATLAB 2009a 注册文件2017年11月11日之后
- 以MATLAB为平台的电弧模型
- 一个用matlab编写的串口调试程序,可
- 无线传感网仿真代码
- 开关磁阻电机MATLAB模型 非线性 电压
- 利用MATLAB从图片中提取曲线数据的小
- MATLAB写的成绩管理系统
- 基于PCA法的故障检测含matlab代码
- matlab版本的红外目标跟踪代码
- matlab的copula相关程序
- matlab中text函数在显示字符串时的使用
- jpeg压缩的matlab程序
- PIIFD描述符matlab源代码
- 自动驾驶多目标检测.7z
- 使用QQ监控Matlab程序运行
评论
共有 条评论