- 博客(10)
- 资源 (7)
- 收藏
- 关注
转载 乘法器——verilog
串行乘法器 两个N位二进制数x、y的乘积利用移位操作来实现。module multi_CX(clk, x, y, result); input clk; input [7:0] x, y; output [15:0] result; reg [15:0] result; parameter s0 = 0, s1 = 1, s2 = 2; reg [2:
2016-09-22 10:36:47 8556
原创 快速排序法
#include<stdlib.h>#include<stdio.h>int partion(int a[], int low, int high){ int pivot = a[low]; while (low < high) { while (low<high&&a[high]>=pivot) high--; a[low] = a[hi
2016-09-20 21:19:46 315
原创 冒泡排序法
#include<stdio.h>#include<stdlib.h>void swap(int&a, int&b){ int c; c = a; a = b; b = c;}int bubble_sort(int a[], int len){ int flag; for(int i = 0; i < len - 1; i++) {
2016-09-20 20:31:20 320
原创 二分查找法
方法一:非递归的方法#include<stdio.h>#include<stdlib.h>int binary_s(int a[], int len, int k){ int low = 0; int high = len - 1; while (low <= high) { int mid = (low + high) / 2;
2016-09-20 17:17:26 445
转载 图像处理-一阶和二阶导数
参考: http://www.cnblogs.com/pegasus/archive/2011/05/20/2051780.html
2016-09-19 11:16:14 7109
转载 sift算子
参考: http://www.cnblogs.com/ronny/p/4028776.html http://blog.csdn.net/zddblog/article/details/7521424 http://blog.csdn.net/abcjennifer/article/details/7639681
2016-09-17 12:14:03 404
原创 混合高斯背景建模——opencv
混合高斯背景建模原理: 代码:#include<opencv2/highgui.hpp>#include<opencv2/core.hpp>#include<opencv2/opencv.hpp>using namespace std;using namespace cv;int main(){ CvCapture*capture = cvCreateFileC
2016-09-03 12:11:37 5438 8
原创 运动目标检测(混合高斯)——opencv3.0.0
因为opencv版本的不同,相应函数的使用方法也不同,本例程是基于opencv3.0.0的。 参考: http://blog.csdn.net/h_wlyfw/article/details/38731589?utm_source=tuicool&utm_medium=referralhttp://blog.csdn.net/xiaowei_cqu/article/details/2368918
2016-09-01 15:22:00 4788
原创 运动目标检测(帧间差分法)——opencv
#include<opencv2/opencv.hpp>#include<iostream>using namespace std;using namespace cv;int main(){ VideoCapture capture("C:\\Users\\aoe\\Desktop\\avi\\walk.avi");//获取视频 if (!capture.isOpened()
2016-09-01 11:08:49 13420
AXI4_master_slave源码对应分析
2018-06-08
AXI4_Lite_master源码分析
2018-06-08
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人