自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(27)
  • 资源 (6)
  • 收藏
  • 关注

原创 网址收集

1.分类器训练2.视觉计算机研究论坛3.The Face Detection Homepage4.Face Recognition Homepage5.OpenCv中文网站6.coursera机器学习图像和视频处理fMRI数据统计分析并行异构编程7.Koding Free SSH VM8.cuda samples9.lwf10.object

2013-12-24 09:12:36 1151

转载 图片风格化

用源图像的色调风格来影响目标图片的风格(source为源图像:提取色调风格的图像;dst为目标图像,res为风格化后的图像)// // colortransfer.cpp// ColorTransfer// // Created by Rachel on 13-12-2.// Copyright (c) 2013年 ZJU. All rights reserved.

2013-12-31 22:05:02 1887

转载 国内人脸识别研究现状

最近几年,在国内掀起了一股图像处理、分析、识别的热潮,而其中的车牌识别和人脸识别无疑是其中的研究热潮。本人没有做过车牌识别的项目,不便叙述,不过,倒是可以跟大家聊聊最近几年国内在人脸识别领域的一些发展情况。广义的人脸识别实际包括构建人脸识别系统的一系列相关技术,包括图像采集,人脸定位,预处理,人脸特征提取,模式分类、判决识别等等。当然,还包括相应的摄像机,摄像头等光学设备,以及PC,DSP

2013-12-31 17:59:40 2584

原创 常用DOS命令

1.将某个文件下面的txt文件复制到另一文件夹下copy D:\*.txt D:\newFile2.删除某文件下的txt文件del D:\*.txt

2013-12-31 14:37:15 725

转载 malloc失败

今天遇到了一个问题,malloc失败,下边是其中的一部分代码,在一个循环中: if(cinfo->num_components == 1)   {    unsigned char* tmpBuf=(unsigned char* )malloc(cinfo->output_width*nPixelSize);       for(int k=0;k output_width

2013-12-26 15:16:50 1019

转载 VC内存泄漏检测工具_Visual Leak Detector

初识Visual Leak Detector       灵活自由是C/C++语言的一大特色,而这也为C/C++程序员出了一个难题。当程序越来越复杂时,内存的管理也会变得越加复杂,稍有不慎就会出现内存问 题。内存泄漏是最常见的内存问题之一。内存泄漏如果不是很严重,在短时间内对程序不会有太大的影响,这也使得内存泄漏问题有很强的隐蔽性,不容易被发现。 然而不管内存泄漏多么轻微,当程序长时间

2013-12-26 12:51:33 923

转载 opencv CvMat操作总结

综述:        OpenCV有针对矩阵操作的C语言函数. 许多其他方法提供了更加方便的C++接口,其效率与OpenCV一样.        OpenCV将向量作为1维矩阵处理.        矩阵按行存储,每行有4字节的校整.         分配矩阵空间:    CvMat* cvCreateMat(int rows, int cols, int type)

2013-12-23 17:36:58 978

转载 OpenCV的CvMat与cvSolve函数

[cpp] view plaincopy// vv.cpp : 定义控制台应用程序的入口点。  //  #include "stdafx.h"    #include     #include     #include     #include "cvaux.h" //必须引此头文件    #include "cxcore.h"    using namespace std;   

2013-12-23 17:08:48 1352

转载 CUDA 错误类型

CUDA error typesEnumerator:    cudaSuccess     The API call returned with no errors. In the case of query calls, this can also mean that the operation being queried is complete (see cudaEventQue

2013-12-19 10:34:31 23412

原创 cuda问题集

A1:我有N张图片,每张图片需要进行K次处理。我希望调用N个线程,每个线程处理一张图片,对每一张图片,我又希望能够调用K个线程,每个线程处理一次我该怎么做哦,求思路。Q1:N张图片对应N个block,每个block对应k个线程。__global__ kernelPicAdd ( uchar *pic1, uchar *pic2 ){  // get index  i = ..;

2013-12-18 14:58:49 985

原创 一个新奇的排序算法

看cuda时,偶然看到一个新奇的排序算法void selection_sort(unsigned int *data, int left, int right){ for (int i = left ; i <= right ; ++i) { unsigned min_val = data[i]; int min_idx = i;

2013-12-18 10:49:29 995

转载 关于矩阵最通俗的解释-超级经典zz

此文系转载,感谢原作雪蝴蝶,码这么多字,太辛苦了,不过读完确实让我对矩阵有新的理解!线性代数课程,无论你从行列式入手还是直接从矩阵入手,从一开始就充斥着莫名其妙。比如说,在全国一般工科院系教学中应用最广泛的同济线性代数教材(现在到了第四版),一上来就介绍逆序数这个“前无古人,后无来者”的古怪概念,然后用逆序数给出行列式的一个极不直观的定义,接着是一些简直犯傻的行列式性质和习题——把这行乘一

2013-12-12 17:41:10 1495

原创 Dword_align

程序运行时,突然停在Dword_align,然后跳出访问地址冲突的对话框,出现此问题的原因是:内存泄露,导致malloc失败,之后访问malloc分配的地址,自然出现地址冲突的错误。可用如下代码检测malloc是否成功执行:int*imgData; try { imgData=(int*)malloc(sizeof(int)*P); if(imgData==0) t

2013-12-12 17:19:18 1154

转载 内存泄露检测工具Using Visual Leak Detector

This section briefly describes the basics of using Visual Leak Detector (VLD).Important! : Before using VLD with any Visual C++ project, you must first add the Visual Leak Detector include and lib

2013-12-12 14:08:32 862

原创 cuda上使用printf函数

code:#include __global__ void helloCUDA(float f){ printf("Hello thread %d, f=%f\n", threadIdx.x, f);}int main(){ helloCUDA>>(1.2345f); cudaDeviceReset(); return 0;}设置:打开vs项目属

2013-12-11 17:34:19 7517

原创 何时释放Image

恼人的指针,先写下例子,原因改日再究。code1:int main(){ IplImage*img=cvLoadImage("test.jpg",0); uchar* a=(uchar*)img->imageData; size_t size=img->height*img->widthStep; int d_widthStep=img->widthStep; in

2013-12-11 14:50:08 823

原创 cuda结构体数组拷贝

逐一拷贝结构体元素code: struct cudaWeakr { int* loc; float* detaSb; };int main() { float arrayA[2][3] = { {1, 2 ,3},{11,22,33}}; int arrayB[3]={1, 2 ,3}; const int K=3; cudaWeakr*c

2013-12-11 12:55:48 3012

原创 cuda全局变量

code:#include #define nn (10)__device__ float a[nn];__global__ void kernel(float *out){ if (threadIdx.x < nn) out[threadIdx.x] = a[threadIdx.x]; }int main(){ const size_

2013-12-09 15:20:02 2773

原创 c++ string format

利用stringstream类stringstream ss;ssstring str=ss.str();code:#include #include #include#includeusing namespace std;int main () { ofstream ofile ("D:\\example.txt"); int value=123; s

2013-12-09 10:36:13 3998

原创 C++读写txt文件

code:#include #include #includeusing namespace std;int main () { ofstream ofile ("D:\\example.txt"); if (ofile.is_open()) { ofile << "This is a line.\n"; ofile << "This is another

2013-12-09 10:04:19 939

原创 C++编程中的error和可能的原因

Error1:访问内存地址冲突可能原因:数组越界Error2:OpenCv Error:Insufficinet memoryin unknow function,file ..\..\..\src\opencv\modules\core\src\alloc.cpp,line 52可能原因:内存泄露。比如在opncv里边,利用cvLoadImage打开了图像,却未采用cvRelease

2013-12-05 13:21:44 2574

转载 cuda 矩阵乘法

原始矩阵乘法#include #include #define BLOCK_SIZE 1typedef struct{int width;int height;float* elements;}Matrix;__global__ void MatMulKernel(const Matrix,const Matrix,Matrix);void MatMul(const Mat

2013-12-04 16:33:15 1163

原创 读取csv文件(C#,C++)

C++代码#include #include #include using namespace std;void ReadCSV(){ ifstream inf; inf.open("test.csv", ifstream::in); string line; int j=0; size_t comma = 0

2013-12-04 13:06:49 1125

原创 cuda入门——结合opncv和cuda编程(2)

opencv读入图片,将图片数据传递到cuda处理#include#include#include#include#includeusing namespace std;using namespace cv;#define NUM_BLOCK 300 // Number of thread blocks #define NUM_THREAD 64 __g

2013-12-03 17:58:13 1363

转载 C++ 测试时间函数

测试一段代码,或者一个函数是写完代码后经常要做的事。我习惯的写东西的顺序是:测试代码 -->  伪代码 --> 实际代码--> 更加高效的版本 -->带输入输出控制检测,出错验证的代码  -->更加灵活的版本下面列举下常用的时间测试方法: 1. 版本   [cpp] viewplaincopyclock_t

2013-12-03 13:26:27 904

转载 Tips for speed up your algorithm in the CUDA programming

There are a couple of things you can do to speed up your algorithm in the CUDA programming : 1.)Try to attain .75(75%) to 1 (100%) occupancy of every kernel execution.This can be ensured

2013-12-03 10:01:29 802

原创 CUDA入门——环境搭建,hello world cuda(1)

环境搭建hello cuda#include const int N = 16; const int blocksize = 16; __global__ void hello(char *a, int *b) { a[threadIdx.x] += b[threadIdx.x];} int main(){ char a[N] = "Hello \0\0\0\

2013-12-02 16:50:56 2153

C#+Emgu人脸检测 vs2010

一个C#+Egmu的人脸检测程序(基于windows窗体) 同时包括一个如何配置Egmu的说明文档 希望对初学者能有帮助

2012-12-17

16格数字拼图游戏

javascript写的拼图游戏,有比较详细的注释哦。head first ajax实例。

2012-10-30

asp.net网站小实例

head first ajax第三章实例,asp.net下运行,绝对可用。

2012-10-26

adaboost算法源码(c++)

adaboost源码,用c++写的。抛开了积分图计算等复杂的部分,专注于adaboost算法的具体实现过程,希望对初学者有帮助,也希望高手不吝指教。

2010-04-09

基于套接字函数的聊天室(入门级)

基于套接字函数的聊天室 比较简单,适合初学者

2009-08-15

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除