1. matlab函数bwareaopen──删除小面积对象格式:BW2 = bwareaopen(BW,P,conn)作用:删除二值图像BW中面积小于P的对象,默认情况下使用8邻域.算法:(1)Determine the connected components. L = bwlabeln(BW, conn);(2)Compute the area of each component. S = regionprops(L, 'Area');(3)Remove small objects.
matlab函数_连通区域 1. matlab函数bwareaopen──删除小面积对象格式:BW2 = bwareaopen(BW,P,conn)作用:删除二值图像BW中面积小于P的对象,默认情况下使用8邻域.算法:(1)Determine the connected components. L = bwlabeln(BW, conn);(2)Compute the area of each component. S = regionprops(L, 'Area');(3)Remove s
最关键的是compilers的选择(对于把Microsoft visual stdio 2005或者其他的编译器安装在自定义目录下的这一步非常关键) 以下是步骤:>> mex -setup % 这是必须的Please choose your compiler for building external interface (MEX) files: Would you like mex to locate installed compilers [y]/n? %这次选择13,或许你也可以用其他