new Segmentation()
Image
- Since:
- gve.Algorithms.Image
Methods
-
static KMeans(image, numClustersopt, numIterationsopt, neighborhoodSizeopt, gridSizeopt, forceConvergenceopt, uniqueLabelsopt)
-
对输入图像进行 K-Means 聚类
Parameters:
Name Type Attributes Description imageImage 待聚类的影像 numClustersNumber <optional>
聚类的数目 numIterationsNumber <optional>
迭代次数 neighborhoodSizeNumber <optional>
邻域大小 gridSizeNumber <optional>
网格单元大小 forceConvergenceBoolean <optional>
未达到收敛状态是否强制抛错 uniqueLabelsBoolean <optional>
是否分配唯一标签 Returns:
- Image- Tutorials:
-
- Tutorial: gve.Algorithms.Image.Segmentation
-
static SNIC(image, sizeopt, compactnessopt, connectivityopt, neighborhoodSizeopt, seedsopt)
-
基于 SNIC(简单非迭代聚类)的超像素聚类
Parameters:
Name Type Attributes Description imageImage 聚类的影像 sizeNumber <optional>
种子的大小 compactnessNumber <optional>
紧凑型因子 connectivityNumber <optional>
连接性 neighborhoodSizeNumber <optional>
邻域大小 seedsImage <optional>
用于连接性的影像 Returns:
- Image- Tutorials:
-
- Tutorial: gve.Algorithms.Image.Segmentation
-
static seedGrid(sizeopt, gridTypeopt)
-
为聚类选择种子像素
Parameters:
Name Type Attributes Description sizeNumber <optional>
种子大小 gridTypeString <optional>
网格类型(square|hex) Returns:
- Image- Tutorials:
-
- Tutorial: gve.Algorithms.Image.Segmentation