bwareaopen函数的功能是删除二值图像中小面积白色对象 BW2 = bwareaopen(BW,P,conn),删除二值图像BW中面积小于P的对象,默认情况下conn使用8邻域。 注意删除的是白色对象,不是黑色对象