![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
zz不倦
从事模式识别,通信对抗与干扰。
展开
-
LBP—局部二值模式
LBP原创 2022-08-02 17:24:29 · 1113 阅读 · 0 评论 -
SIFT—Python Code
SIFT,Python Code原创 2022-07-31 20:28:38 · 369 阅读 · 0 评论 -
SIFT—点局部特征原理
SIFT,特征描述原创 2022-07-31 19:01:24 · 479 阅读 · 0 评论 -
enumerate, zip -- Python
a, b = [19, 21, 16, 17, 18], [19, 21, 16, 17, 18]for c, (d, f) in enumerate(zip(a, b)): print(c, (d, f)) ## 0 (19, 19)1 (21, 21)2 (16, 16)3 (17, 17)4 (18, 18)g, (h, e) = enumerate((a, b))print(g, (h, e))## (0, [19, 21, 16, 17, 18]) (1,原创 2021-12-14 10:01:24 · 568 阅读 · 0 评论 -
For 的列表推导式
list_1 = [(x1,y1) for x1 in range(5) for y1 in range(3)] ###print(“list_1”)## list_1: [(0, 0), (0, 1), (0, 2), (1, 0), (1, 1), (1, 2), (2, 0), (2, 1), (2, 2), (3, 0), (3, 1), (3, 2), (4, 0), (4, 1), (4, 2)]list_1_1 = []for i in range(5): for j in原创 2021-11-23 10:29:31 · 167 阅读 · 0 评论 -
np中的0,1轴。方括号。np.sum函数
#np中的0,1轴。方括号。np.sum函数。import numpy as npa = np.array([1, 2, 4]) #此为(3,)阵,为列阵?b = np.array([[5, 3, 6]]) #此为(1, 3)阵,为行阵 print(a.shape, b.shape)print("===================")c = np.array([[1, 2, 6],[2, 2, 4],[5, 2, 1],[1, 4, 2]])print(c)print(c.shape原创 2021-05-06 17:36:00 · 190 阅读 · 0 评论 -
python.np.reshape
#reshape函数x=np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9], [1, 2, 1]])#要是矩阵形式print(’\n’)print(x.reshape(2, 6))print(’\n’)print(x.reshape(1,-1))#1行,列匹配print(’\n’)print(x.reshape(-1,2))#2列,行匹配[[1 2 3 4 5 6][7 8 9 1 2 1]][[1 2 3 4 5 6 7 8 9 1 2 1]][[1原创 2021-04-29 20:22:18 · 108 阅读 · 0 评论