imhist
直方图的图像数据
语法
描述
(
计算灰度图像的直方图计数
,binLocations
)= imhist (我
)我
。的imhist
函数返回的直方图统计计数
和本地区binLocations
。箱子的数量的直方图是由图像类型。
(
指定数量的垃圾箱,计数
,binLocations
)= imhist (我
,n
)n
,用来计算直方图。
(
计算索引图像的直方图计数
,binLocations
)= imhist (X
,提出
)X
与colormap提出
。直方图colormap中的每个条目有一个本。
例子
输入参数
输出参数
提示
对于灰度图像,
n
垃圾箱的直方图都半开区间的宽度一个/ (n−1)。特别是,pth本是半开区间在哪里x是强度值。规模因素一个和偏移量B取决于类型图像的类如下:
数据类型 一个 B 双
1
0
单
1
0
int8
255年
128年
int16
65535年
32768年
int32
4294967295年
2147483648年
uint8
255年
0
uint16
65535年
0
uint32
4294967295年
0
逻辑
1
0
显示柱状图
计数
和binLocations
,使用命令
。阀杆
(binLocations计数)