求VC高手帮忙!!可追加分数!!!

来源:百度知道 编辑:UC知道 时间:2024/09/20 22:52:59
求高手帮我注解这段程序!!!
越详细越好非常感谢!!
我很急!!!可追加最高分数!!!谢谢!!
东西有点多~~麻烦您了~~!!
是图片处理部分的,运动人体目标检测部分程序,有兴趣的话给我发给邮件xiaoer-999@163.com给我!!我把整个程序给你粘过去!!再次感谢。下面是部分程序
// CaiImage.cpp: implementation of the CCaiImage class.
//
#include "stdafx.h"
#include "ImageCheck.h"
#include "CaiImage.h"
#include "stdlib.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

//// Construction/Destruction
/////CCaiImage::CCaiImage()
{
m_nImgType = 0;
pDib = NULL;
m_dwEffWidth = 0;
m_rtImgShow.SetRectEmpty();
m_bIsPrepare = FALSE;
memset(&head,0,sizeof(head));
m_bAutoFit = TRUE;
m_dwSize = 0;
}

CCaiImage::~CCaiImage()
{
Destroy();
}

BOOL CCaiImage::LoadBMP(CString strFilePath)
{
if (strFilePath.IsEmpty())
{
return FALSE;
}<

QQ里解决~~

这个我看的懂,就是对BMP格式的文件进行读取,
分别读取 文件头 信息头 调色板和 图像数据
有其他问题
qq +64924930

你要有诚意发一个完整的
niujingqian@163.com

// CaiImage.cpp: implementation of the CCaiImage class.
//
#include "stdafx.h"
#include "ImageCheck.h"
#include "CaiImage.h"
#include "stdlib.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

// Construction/Destruction
CCaiImage::CCaiImage() //采集图片构造函数
{
m_nImgType = 0; //图片类型
pDib = NULL;
m_dwEffWidth = 0;
m_rtImgShow.SetRectEmpty();
m_bIsPrepare = FALSE;
memset(&head,0,sizeof(head)); //应该是图片头
m_bAutoFit = TRUE;
m_dwSize = 0; //图片大小
}

CCaiImage::~CCaiImage() //采集图片析构函数
{
Destroy();
}

BOOL CCaiImage::LoadBMP(CString strFilePath) //导入BMP图片
{
if (strFilePath.IsEmpty()) //判断传入的路径名