图像处理
jzdl
这个作者很懒,什么都没留下…
展开
-
OTSU大津法分割
不带掩膜 def otsu(img,gray_scale): pixel_count = np.zeros(gray_scale,dtype=np.int) #灰阶 pixel_pro = np.zeros(gray_scale,dtype=np.float) #比例 h,w = img.shape[0:2] pixel_sum = h*w maxPro = 0. kk = 0 threshold = 0 for i in range(g原创 2022-04-29 12:38:07 · 3493 阅读 · 0 评论 -
三角形分割法
三角形: void Triangle(Mat& src, Mat& dst) { int i = 0, j = 0; int gray; int temp = 0; bool isflipped = false; //求直方图 //void calcHist( const Mat* images, int nimages, // const int* channels, InputArray mask, // Out.原创 2022-04-29 12:34:39 · 322 阅读 · 0 评论