摘要:
/** 功能:BYTE组转IplImage,并可实现图像的上下倒置*入参:pImg,BYTE数组指针。byteSize BYTE数组大小,width图像宽,height图像高*返回:转化后的IplImage指针*/IplImage * Byte2IplImg( BYTE *pImg,long by... 阅读全文
posted @ 2012-12-06 15:28
废弃账号
阅读(137)
评论(0)
推荐(0)
摘要:
最近要做一个性别识别的项目,在人脸检测与五官定位上我采用OPENCV的haartraining进行定位,这里介绍下这两天我学习的如何用opencv训练自己的分类器。在这两天的学习里,我遇到了不少问题,不过我遇到了几个好心的大侠帮我解决了不少问题,特别是无忌,在这里我再次感谢他的帮助。 一、简介目... 阅读全文
posted @ 2012-12-06 15:28
废弃账号
阅读(799)
评论(0)
推荐(0)
摘要:
试题4: void GetMemory( char *p ){ p = (char *) malloc( 100 );}void Test( void ) { char *str = NULL; GetMemory( str ); strcpy( str, "hello worl... 阅读全文
posted @ 2012-12-06 15:28
废弃账号
阅读(108)
评论(0)
推荐(0)
摘要:
/*test.ini//////////////[index]name=小朱年龄=23 [index2]sex=男/////////////////*/ #include "stdio.h"#include "iostream.h"#include "windows.h" int main(... 阅读全文
posted @ 2012-12-06 15:28
废弃账号
阅读(83)
评论(0)
推荐(0)
摘要:
LOGFONT logfont; GetObject(::GetStockObject(DEFAULT_GUI_FONT),sizeof(logfont),&logfont); logfont.lfCharSet=GB2312_CHARSET; logfont.lfWeight = FW_N... 阅读全文
posted @ 2012-12-06 15:28
废弃账号
阅读(220)
评论(0)
推荐(0)
摘要:
1、new 是c++中的操作符,malloc是c 中的一个函数2、new 不止是分配内存,而且会调用类的构造函数,同理delete会调用类的析构函数,而malloc则只分配内存,不会进行初始化类成员的工作,同样free也不会调用析构函数3、内存泄漏对于malloc或者new都可以检查出来的,区别在... 阅读全文
posted @ 2012-12-06 15:28
废弃账号
阅读(199)
评论(0)
推荐(0)
摘要:
在编译配置里添加一个x64的就可以了。 从菜单【编译(Build)】->【配置管理(Configuration Manager)】 在弹出的窗口里的右上角有个【可用工程平台(Active solution platform)】下拉框,打开可以看到有个【新建】菜单,点击打开【新建工程平台】的对话... 阅读全文
posted @ 2012-12-06 15:28
废弃账号
阅读(392)
评论(0)
推荐(0)
摘要:
// ssss.cpp : Defines the entry point for the console application.// #include "stdafx.h"#include "windows.h"#include "string.h" //MFC-only stri... 阅读全文
posted @ 2012-12-06 15:28
废弃账号
阅读(678)
评论(0)
推荐(0)
摘要:
BOOL HasChineseChar(CString Cstr){int nLen = Cstr.GetLength();unsigned char ch1, ch2;for(int i = 0; i != nLen; ++i){ch1 = Cstr[i];if (ch1 >= 0xA0){re... 阅读全文
posted @ 2012-12-06 15:28
废弃账号
阅读(310)
评论(0)
推荐(0)
摘要:
#include #include #include #define BUFF_SIZE 1024wchar_t * ANSIToUnicode( const char* str ){ int textlen ; wchar_t * result; textlen = Mu... 阅读全文
posted @ 2012-12-06 15:28
废弃账号
阅读(176)
评论(0)
推荐(0)