- 博客(5)
- 资源 (6)
- 收藏
- 关注
原创 快速排序 C++实现
#include#include#includeusing namespace std;void QuickSort(int *A,int low,int high){ int i=low,j=high; if(i<j) { int t=A[low]; while(i<j) {
2013-09-23 11:38:12 505
原创 堆排序 C++实现
#include#include#includeusing namespace std;void HeapAdjust(int *A,int s,int m){ int t=A[s]; for(int i=2*s+1;i<m;i=2*i+1) { if(i+1<m&&A[i]<A[i+1]) i++; if(t>
2013-09-23 11:16:03 590
转载 cv::Mat与iplimage类型如何进行互相转换
IplImage -> cv::Mat這個範例程式裡 image.cpp有啊,做個簡單的範例。Ex. IplImage* pImg = cvLoadImage("lena.jpg");cv::Mat img(pImg,0); //0是不複製影像,也就是pImg與img的data共用同個記憶體位置,header各自有cv::Mat -> IplImagecxcore.
2013-09-23 11:15:08 784
转载 VS2010+Opencv-2.4.0的配置攻略
原文地址:http://www.cnblogs.com/freedomshe/archive/2012/04/25/2470540.html摘要:在VS2010环境中应用Opencv,网上找到了很多配置方法,但大多都是老版本的,很多新手面对最新版本的Opencv无从下手,就给新手童鞋写了这么一篇超级详细的配置攻略,贴上来共享。要强调一点的就是,这种配置方法里使用的Opencv库是直接安装O
2013-09-10 22:33:24 514
原创 OpenCV 径向梯度变换
#include#include#includeint main(){ CvPoint center; double scale=-3; IplImage *image=cvLoadImage("Jellyfish.jpg"); center=cvPoint(image->width/2,image->height/2); for(int i=0;iheight
2013-09-09 16:53:38 1207
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人