思路: 1. 前后两帧相减,得到差分图像 2.在差分图像里求像素最大的点(最亮的点) 这样就得到,移动微小物体 #include "check.h"#include <iostream.h> void main() #ifndef CHECK_H#define CHECK_H#include "cv.h"#include "highgui.h"#include "cvcam.h"#include "check.h"#define _I8(image,x,y) (*((unsigned char*)(image)->imageData+(image)->widthStep*(y)+(x))) //直接调用图像的像素,x、y为整数(图像数据应为32F)#define _I32(img,x,y) ((float*)((img)->imageData + (img)->widthStep*(y)))[(x)]class CCheck#endif #include "check.h"#include <iostream.h> void main() 相关文章: 2021-07-25 2021-11-26 2021-12-29 2022-01-10 2022-12-23 2022-12-23 2022-12-23