基于python-opencv的图像最大幅值提取
2020-06-28 08:49:14 来源:易采站长站 作者:易采站长站整理
z2=matdistance(cxsearch(sub2))#求取第二心音的最大幅值
print("第一心音最大幅值",z1)
print("第二心音最大幅值",z2)
cv2.namedWindow("orient", 0) #显示未分割的原始图
cv2.resizeWindow("orient", 640, 480);
cv2.imshow("orient", image)
cv2.namedWindow("orient1", 0)#显示分割的子图1
cv2.resizeWindow("orient1", 640, 480);
cv2.imshow("orient1", sub1)
cv2.namedWindow("orient2", 0)#显示分割的子图2
cv2.resizeWindow("orient2", 640, 480);
cv2.imshow("orient2", sub2)
cv2.waitKey(0)
作者:allan_baba
暂时禁止评论













闽公网安备 35020302000061号