摘要: 写Blog的原因 阅读全文
posted @ 2020-08-27 17:12 青蛙Frog1228 阅读(94) 评论(0) 推荐(0) 编辑
摘要: #### 16 bit 的灰度图如何在QT中显示 用Mat构造的 16 bit 灰度图 无法直接显示,需要转换成8 bit的灰度图在QT中显示(QT 5.12 version中Image没有Gray16的格式,QT 5.15+ 有,但是没有试过) 使用OpenCV自带的最大最小值归一法, ``` c 阅读全文
posted @ 2021-09-03 18:14 青蛙Frog1228 阅读(1166) 评论(0) 推荐(0) 编辑
摘要: What features of GPUs allow them to perform computations faster than a typical CPU? GPUs have a massively parallel processing architecture consisting 阅读全文
posted @ 2021-02-26 10:50 青蛙Frog1228 阅读(71) 评论(0) 推荐(0) 编辑
摘要: 什么是IO操作? I/O操作不仅指平常我们所知道的直接的文件、网络的读写、数据库操作还包括 Web Service、HttpRequest以及.Net Remoting等跨进程的调用。 IO分类: 同步阻塞式IO: 一个线程,等待IO结果返回再执行之后的语句。 同步非阻塞式IO: 一个线程,不用等待 阅读全文
posted @ 2021-02-20 15:02 青蛙Frog1228 阅读(69) 评论(0) 推荐(0) 编辑
摘要: Below is the note of the hinge loss, the image is from Stanford 2017 CS231N Slides, the note is added by myself. 阅读全文
posted @ 2021-01-31 22:36 青蛙Frog1228 阅读(70) 评论(0) 推荐(0) 编辑
摘要: C语言中用回调函数模仿C#中的事件 1 #include <stdio.h> 2 void (*func) (void); //定义一个函数指针func 3 4 //调用该函数相当于触发了事件。 5 //该事件触发后,会检查函数指针func是否为NULL,如果不为NULL,说明该指针已被赋值(相当于 阅读全文
posted @ 2020-10-13 23:06 青蛙Frog1228 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 使用setjmp()和longjmp()函数模拟C++中的try和catch #include<stdio.h> #include<setjmp.h> #include<stdlib.h> #define try if (!(ret = setjmp(buf))) #define catch(i) 阅读全文
posted @ 2020-10-13 22:57 青蛙Frog1228 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 因为我需要在开发板上(OMAPL138-ARM+Linux双核)连接一个USB转串口的设备,而内核中没有编译进相关驱动,所以无法识别出该设备,USB转串口线的芯片是PL2303,PL2303芯片驱动已经集成到了Linux的内核源码中,只是ARM Linux 把它剪裁掉了,需要重新编译为内核模块,并加 阅读全文
posted @ 2020-08-30 18:48 青蛙Frog1228 阅读(251) 评论(0) 推荐(0) 编辑
摘要: During my master period, my English level has improved a lot, especially in academic writing, listening and speaking. What impressed me deeply is thei 阅读全文
posted @ 2020-08-29 19:34 青蛙Frog1228 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 网上随便一搜,就可以看到BMP位图结构的详细说明,这篇文章专门谈一下其中的调色板。 多少位位图并不是指每一个颜色该用多少位表示,对于颜色来说,它始终都是24位(RGB),或者是32位(RGBA),而是指该位图每个像素点用多少位表示,若是n位位图,则该位图每个像素点用n位表示,该位图共有2n种颜色(对 阅读全文
posted @ 2020-08-27 12:19 青蛙Frog1228 阅读(1054) 评论(0) 推荐(0) 编辑