- 博客(10)
- 资源 (18)
- 收藏
- 关注
转载 读指定时间的视频
int ReadVideo(char* filename, int t_start, int t_stop){ unsigned int max_num=0; VideoCapture cap(filename); if (!cap.isOpened()) { printf("\nNo Videl found!\n"); return
2012-08-28 08:49:22 470
转载 c++ 读写文本文件
fstream提供了三个类,用来实现c++对文件的操作。(文件的创建、读、写)。 ifstream -- 从已有的文件读 ofstream -- 向文件写内容 fstream - 打开文件供读写 文件打开模式: ios::in 读 ios::out 写 ios::app 从文件末尾开始写 ios::binary
2012-08-21 17:09:54 604
转载 求N个数中最大的K个数的几种方法与实现
某笔试题:内存中有一个长数组,有100W条记录, 每个记录为一个struct array, sizeof( array ) = 512, 在这个struct里有一个int型成员变量weight, 现要取得按个weight值从大到小排序的前500个数组单元(求N里的前K个大的数) 直接贴代码吧,废话少讲(先说方法吧)~~~~解释在注释里:) const static long N = 1
2012-08-18 12:11:55 1874
原创 图片格式 ppm to bmp c++
#include #include #include #include #include using namespace std; int main(int argc, char * argv[]) { char* pFilename="54.ppm"; ifstream ifile;//input ppm file ofstream ofil
2012-08-15 18:09:30 1523 1
原创 图片格式 jpg到ppm c++代码
// ipgToppm.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include #include #include #include #include using namespace std; void jpg2ppm(char* input, char
2012-08-15 16:49:32 3008
转载 HOG Detector ~ Training OLTbinaries
http://lego.twgg.org/?p=852 最近糊里糊塗的完成了 HOG Detector 對於輪胎偵測的訓練(效果挺優 !!), 都要感謝此網站的達人:http://blog.baifaces.com/baifaces/blog/work/opencv-hog-peopledetector-trainning.html 在此也記錄一下,我實作時的疑難雜症吧!! 實作平台是:U
2012-08-14 22:09:12 1939
转载 在windows下运行Felzenszwalb的Discriminatively Trained Deformable Part Models matlab代码
http://blog.csdn.net/pozen/article/details/7023742 Felzenszwalb的Discriminatively Trained Deformable Part Models URL:http://www.cs.brown.edu/~pff/latent/ 据说是目前最好的object detection method。我自己试了一下,效果真的不
2012-08-04 11:53:08 2056
转载 OpenCv xml
int sub_test_opencv_xml_write(void) { // 创建文件存储对象 CvFileStorage *fs=cvOpenFileStorage("test.xml",0,CV_STORAGE_WRITE); // 写注释 cvWriteComment(fs,"测试写XML文件",1); // 开始写结构,类型是图map,也就是有名字的无序节点集合 cvS
2012-08-03 00:40:29 964
转载 c++ 排序算法程序
// paixu.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include "iostream" #include "vector" #include using namespace std; struct student { string name; int score; }; bool compare(int a,int b
2012-08-02 20:53:27 512
转载 OpenCv xml读
<?xml version="1.0"?> <opencv_storage> <folder>Hello World</folder> <filename>E:\\4562.jpg</filename> <!-- <filename>"E:\\4562.jpg"</filename> --> <source> <database> <one>123</one> <two>name</two> </database> <image>flickr</image>
2012-08-01 08:38:25 862
ipp-75060a0c662c0800f48995b7e9b085f6-ippicv_2017u2_win_intel64_20170418
2017-12-27
移动最小二乘
2015-05-24
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人