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.
function [sqrt_value] = calsqrt(a)NormKn = ceil(log2(a)) - 1;fprintf("Normalization input data is %d NormKn data is %d\n",a/2^NormKn,NormKn); a = a/2^NormKn;Kn = sqrt(2^NormKn);fprintf("Kn data is %d\n",Kn); y1 = (a-1/4)*2^20;x1 = (a+1