- hist(grid2D, stretch?, statistics?): number[]
-
Parameters
-
grid2D: number[][]
-
stretch: stretchType = stretchType.linear
-
Optional
statistics: {
max: number;
mean: number;
min: number;
}
-
max: number
-
mean: number
-
min: number
Returns number[]
- 直方图数组,长度为 256,每个元素表示对应灰度值的像素个数
直方图计算函数