中文说明:在此代码中,还有一个 RGB 图像和图像中有一些昆虫。目的是要分割的昆虫。由于该图像是彩色,k-均值聚类使用基于 L * * 使用 b * 颜色空间和 5 大类群。由于这种昆虫是红色的带有红色波段的最大 chorom 群集一直被看作昆虫群集。一些形态学算子应用于取得更好的结果。
English Description:
In this code, there is a RGB image and there are some insects in the image. The aim is to segment the insects. As the image is color, k-means clustering is used based on L*a*b* color space and 5 clusters are used. Since the insects are red, the cluster with maximum chorom in red band has been considered as insects cluster. Some morphological operators are applied to achieved better result.