知识点
Goodness2020
专注数学、机器学习
展开
-
利用CV打印程序运行时间
计时原创 2023-12-14 14:09:24 · 444 阅读 · 0 评论 -
python常用功能
python常用功能原创 2023-11-30 19:56:18 · 105 阅读 · 0 评论 -
深度图像的存储
深度图像的存储原创 2022-11-03 17:22:59 · 208 阅读 · 0 评论 -
Pytorch中tensor与numpy的数据转换
Pytorch中tensor与numpy的数据转换原创 2022-01-25 18:03:38 · 1819 阅读 · 0 评论 -
FFT/DFT/DCT
DFT/DCT原创 2022-09-26 11:19:05 · 632 阅读 · 0 评论 -
全概率公式和贝叶斯公式
全概率公式和贝叶斯公式原创 2022-07-21 20:54:07 · 7058 阅读 · 0 评论 -
b=a和b=a.copy()的区别
b=a和b=a.copy()的区别原创 2022-07-21 20:10:34 · 573 阅读 · 0 评论 -
Python中list和ndarray的区别
import numpy as npnum = [3, 4, 3]print(type(num)) # <class 'list'>num2 = num * 2print(num2) # [3, 4, 3, 3, 4, 3]arr = np.array(num)print(type(arr)) # <class 'numpy.ndarray'>arr2 = arr * 2print(arr2) # [6 8 6]tup = tuple(num).原创 2022-05-30 16:49:32 · 773 阅读 · 0 评论 -
C语言string和char之间的转换
#include <stdio.h>#include <string>int main(){ string str = "good"; const char* ch1 = str.c_str(); // string --> const char* const char* ch2 = str.data(); // string --> const char* int len = strlen(ch1); .原创 2022-05-27 13:53:06 · 2492 阅读 · 0 评论 -
C语言指针理解
#include <stdio.h>void swap(int* p1, int* p2){ int temp; temp = *p1; *p1 = *p2; *p2 = temp;}int main(int argc, char** argv){ int x, y; int* pt_x; int* pt_y; x = 2, y = 8; // x,y是一个整形变量 pt_x = &x; /.原创 2022-05-26 10:24:16 · 119 阅读 · 0 评论 -
Halcon读取文件夹下所有图片
list_files ('G:/1/test2', ['files','follow_links'], testImageFiles)tuple_regexp_select (testImageFiles, ['\\.(jpg)$ || .(bmp)$', 'ignore_case'], testImageFiles)原创 2022-05-25 09:06:24 · 765 阅读 · 0 评论 -
C++按行读取txt中数据
#include <string>#include <fstream>#include <iostream>using namespace std;int main(){ cout << "Hello World!" << endl; string path = "E:\\ImageDeepLearning110\\name_list.txt"; ifstream in(path); string .原创 2022-05-09 16:29:37 · 609 阅读 · 0 评论 -
python使用集合统计相同元素的个数
python使用集合统计相同元素的个数原创 2022-04-19 20:50:05 · 3052 阅读 · 0 评论 -
C++元组的读取
typedef tuple<int, int, char> encodeUnit; // 定义结构体encodeUnit tup = tuple<5, 2, 'a'>; // 初始化参数cout << get<0>(tup) << "," << get<1>(tup) << "," << get<2>(tup) << endl; // 打印 5,2,a...原创 2022-04-16 13:47:17 · 704 阅读 · 0 评论