An improved K-means clustering algorithm for fish image segmentation

作者:Yao, Hong; Duan, Qingling*; Li, Daoliang; Wang, Jianping
来源:Mathematical and Computer Modelling, 2013, 58(3-4): 784-792.
DOI:10.1016/j.mcm.2012.12.025

摘要

Fish contour extraction from images is the foundation of many fish image applications such as disease early warning and diagnostics, animal behavior, aquatic product processing, etc. In order to improve the accuracy and stability of fish image segmentation, we propose a new fish images segmentation method which is the combination of the K-means clustering segmentation algorithm and mathematical morphology. Firstly, the traditional K-means clustering segmentation algorithm has been improved for fish images. The best number of clusters is determined by the number of gray histogram peaks, and the cluster centers data is filtered by comparing the mean with the threshold decided by Otsu. Secondly, the opening and closing operations of mathematical morphology are used to get the contour of the fish body. The experimental results show that the algorithm realized the separation between the fish image and the background in the condition of complex backgrounds. Compared with Otsu and other segmentation algorithms, our algorithm is more accurate and stable.