摘要: 阅读全文
posted @ 2020-09-22 12:18 bH1pJ 阅读(28) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-09-22 12:18 bH1pJ 阅读(22) 评论(0) 推荐(0) 编辑
摘要: cv2读取jpg图片,读成灰度图 如果路径中有中文字符怎么办? def cv_imread(file_path): cv_img = cv2.imdecode(np.fromfile(file_path, dtype=np.uint8), -1)... 阅读全文
posted @ 2020-09-22 10:58 bH1pJ 阅读(147) 评论(0) 推荐(0) 编辑
摘要: cv2读取jpg图片,读成灰度图 如果路径中有中文字符怎么办? def cv_imread(file_path): cv_img = cv2.imdecode(np.fromfile(file_path, dtype=np.uint8), -1)... 阅读全文
posted @ 2020-09-22 10:58 bH1pJ 阅读(192) 评论(0) 推荐(0) 编辑
摘要: python做两个list的时间最短匹配 方案一: cfl = dirCellInfo['FileNamelist']#cellfilenamelistctl = dirCellInfo['FileTime']#celltimelistmtl =... 阅读全文
posted @ 2020-09-22 10:58 bH1pJ 阅读(37) 评论(0) 推荐(0) 编辑
摘要: python做两个list的时间最短匹配 方案一: cfl = dirCellInfo['FileNamelist']#cellfilenamelistctl = dirCellInfo['FileTime']#celltimelistmtl =... 阅读全文
posted @ 2020-09-22 10:58 bH1pJ 阅读(73) 评论(0) 推荐(0) 编辑
摘要: python 如何写tif文件 tiff_list = Nonecnt_num = 0for c in dirCellInfo['Filelist']: image = tifffile.imread(c) new_gray = ima... 阅读全文
posted @ 2020-09-22 10:57 bH1pJ 阅读(85) 评论(0) 推荐(0) 编辑
摘要: python 如何写tif文件 tiff_list = Nonecnt_num = 0for c in dirCellInfo['Filelist']: image = tifffile.imread(c) new_gray = ima... 阅读全文
posted @ 2020-09-22 10:57 bH1pJ 阅读(292) 评论(0) 推荐(0) 编辑
摘要: pip install opencv-python 阅读全文
posted @ 2020-09-22 10:57 bH1pJ 阅读(47) 评论(0) 推荐(0) 编辑
摘要: pip install opencv-python 阅读全文
posted @ 2020-09-22 10:57 bH1pJ 阅读(48) 评论(0) 推荐(0) 编辑
摘要: cv2 读中文路径的jpg 用numpy解析一下 cv2.imdecode(np.fromfile(dirMiceInfo['Filelist'][indexResult], dtype=np.uint8), -1) 阅读全文
posted @ 2020-09-22 10:56 bH1pJ 阅读(33) 评论(0) 推荐(0) 编辑
摘要: cv2 读中文路径的jpg 用numpy解析一下 cv2.imdecode(np.fromfile(dirMiceInfo['Filelist'][indexResult], dtype=np.uint8), -1) 阅读全文
posted @ 2020-09-22 10:56 bH1pJ 阅读(24) 评论(0) 推荐(0) 编辑
摘要: len(a) 阅读全文
posted @ 2020-09-22 10:56 bH1pJ 阅读(26) 评论(0) 推荐(0) 编辑
摘要: len(a) 阅读全文
posted @ 2020-09-22 10:56 bH1pJ 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 矩阵操作的常见运算? 创建一个向量; a = np. 1. 矩阵升维,把一个行向量,重复100次。(同理,把一个列向量重复100次) 2. 矩阵转置; 3. 生成一个随机矩阵?随机向量, 4. 获取矩阵的size 5. np转换成list ... 阅读全文
posted @ 2020-09-22 10:54 bH1pJ 阅读(27) 评论(0) 推荐(0) 编辑
摘要: 矩阵操作的常见运算? 创建一个向量; a = np. 1. 矩阵升维,把一个行向量,重复100次。(同理,把一个列向量重复100次) 2. 矩阵转置; 3. 生成一个随机矩阵?随机向量, 4. 获取矩阵的size 5. np转换成list ... 阅读全文
posted @ 2020-09-22 10:54 bH1pJ 阅读(31) 评论(0) 推荐(0) 编辑
摘要: 如何找到一个2维矩阵,每一列最大值,以及最大值的索引 mi = np.argmin(dm, axis=0) dm是一个2维矩阵,取列向量的最小值索引。 阅读全文
posted @ 2020-09-22 10:28 bH1pJ 阅读(35) 评论(0) 推荐(0) 编辑
摘要: 如何找到一个2维矩阵,每一列最大值,以及最大值的索引 mi = np.argmin(dm, axis=0) dm是一个2维矩阵,取列向量的最小值索引。 阅读全文
posted @ 2020-09-22 10:28 bH1pJ 阅读(42) 评论(0) 推荐(0) 编辑