资源简介
新手学习opencv--基于Hog的视频行人检测
代码片段和文件信息
/*源文件 CvvImage.cpp*/
#include “StdAfx.h“
#include “CvvImage.h“
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CV_INLINE RECT NormalizeRect( RECT r );
CV_INLINE RECT NormalizeRect( RECT r )
{
int t;
if( r.left > r.right )
{
t = r.left;
r.left = r.right;
r.right = t;
}
if( r.top > r.bottom )
{
t = r.top;
r.top = r.bottom;
r.bottom = t;
}
return r;
}
CV_INLINE CvRect RectToCvRect( RECT sr );
CV_INLINE CvRect RectToCvRect( RECT sr )
{
sr = NormalizeRect( sr );
return cvRect( sr.left sr.top sr.right - sr.left sr.bottom - sr.top );
}
CV_INLINE RECT CvRectToRect( CvRect sr );
CV_INLINE RECT CvRectToRect( CvRect sr )
{
RECT dr;
dr.left = sr.x;
dr.top = sr.y;
dr.right = sr.x + sr.width;
dr.bottom = sr.y + sr.height;
return dr;
}
CV_INLINE IplROI RectToROI( RECT r );
CV_INLINE IplROI RectToROI( RECT r )
{
IplROI roi;
r = NormalizeRect( r );
roi.xOffset = r.left;
roi.yOffset = r.top;
roi.width = r.right - r.left;
roi.height = r.bottom - r.top;
roi.coi = 0;
return roi;
}
void FillBitmapInfo( BITMAPINFO* bmi int width int height int bpp int origin )
{
assert( bmi && width >= 0 && height >= 0 && (bpp == 8 || bpp == 24 || bpp == 32));
BITMAPINFOHEADER* bmih = &(bmi->bmiHeader);
memset( bmih 0 sizeof(*bmih));
bmih->biSize = sizeof(BITMAPINFOHEADER);
bmih->biWidth = width;
bmih->biHeight = origin ? abs(height) : -abs(height);
bmih->biPlanes = 1;
bmih->biBitCount = (unsigned short)bpp;
bmih->biCompression = BI_RGB;
if( bpp == 8 )
{
RGBQUAD* palette = bmi->bmiColors;
int i;
for( i = 0; i < 256; i++ )
{
palette[i].rgbBlue = palette[i].rgbGreen = palette[i].rgbRed = (BYTE)i;
palette[i].rgbReserved = 0;
}
}
}
CvvImage::CvvImage()
{
m_img = 0;
}
void CvvImage::Destroy()
{
cvReleaseImage( &m_img );
}
CvvImage::~CvvImage()
{
Destroy();
}
bool CvvImage::Create( int w int h int bpp int origin )
{
const unsigned max_img_size = 10000;
if( (bpp != 8 && bpp != 24 && bpp != 32) ||
(unsigned)w >= max_img_size || (unsigned)h >= max_img_size ||
(origin != IPL_ORIGIN_TL && origin != IPL_ORIGIN_BL))
{
assert(0); // most probably it is a programming error
return false;
}
if( !m_img || Bpp() != bpp || m_img->width != w || m_img->height != h )
{
if( m_img && m_img->nSize == sizeof(IplImage))
Destroy();
/* prepare IPL header */
m_img = cvCreateImage( cvSize( w h ) IPL_DEPTH_8U bpp/8 );
}
if( m_img )
m_img->origin = origin == 0 ? IPL_ORIGIN_TL : IPL_ORIGIN_BL;
return m_img != 0;
}
void CvvImage::CopyOf( CvvImage& image int desired_color )
{
Ip
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 7251 2016-05-15 11:42 PasserTest\PasserTest\CvvImage.cpp
文件 2054 2015-05-27 10:51 PasserTest\PasserTest\CvvImage.h
文件 3438 2013-12-20 17:49 PasserTest\PasserTest\include\opencv\cv.h
文件 2411 2013-12-20 17:49 PasserTest\PasserTest\include\opencv\cv.hpp
文件 2850 2013-12-20 17:49 PasserTest\PasserTest\include\opencv\cvaux.h
文件 2346 2013-12-20 17:49 PasserTest\PasserTest\include\opencv\cvaux.hpp
文件 2184 2013-12-20 17:49 PasserTest\PasserTest\include\opencv\cvwimage.h
文件 2465 2013-12-20 17:49 PasserTest\PasserTest\include\opencv\cxcore.h
文件 2423 2013-12-20 17:49 PasserTest\PasserTest\include\opencv\cxcore.hpp
文件 2265 2013-12-20 17:49 PasserTest\PasserTest\include\opencv\cxeigen.hpp
文件 110 2013-12-20 17:49 PasserTest\PasserTest\include\opencv\cxmisc.h
文件 2306 2013-12-20 17:49 PasserTest\PasserTest\include\opencv\highgui.h
文件 2189 2013-12-20 17:49 PasserTest\PasserTest\include\opencv\ml.h
文件 37635 2013-12-20 17:49 PasserTest\PasserTest\include\opencv2\calib3d\calib3d.hpp
文件 38471 2013-12-20 17:49 PasserTest\PasserTest\include\opencv2\contrib\contrib.hpp
文件 3042 2013-12-20 17:49 PasserTest\PasserTest\include\opencv2\contrib\detection_ba
文件 7099 2013-12-20 17:49 PasserTest\PasserTest\include\opencv2\contrib\hybridtracker.hpp
文件 12807 2013-12-20 17:49 PasserTest\PasserTest\include\opencv2\contrib\openfabmap.hpp
文件 23958 2013-12-20 17:49 PasserTest\PasserTest\include\opencv2\contrib\retina.hpp
文件 15428 2014-02-04 11:57 PasserTest\PasserTest\include\opencv2\core\affine.hpp
文件 186316 2014-02-04 11:57 PasserTest\PasserTest\include\opencv2\core\core.hpp
文件 78497 2014-03-05 13:02 PasserTest\PasserTest\include\opencv2\core\core_c.h
文件 7854 2013-12-20 17:49 PasserTest\PasserTest\include\opencv2\core\cuda_devptrs.hpp
文件 2198 2013-12-20 17:49 PasserTest\PasserTest\include\opencv2\core\devmem2d.hpp
文件 9464 2013-12-20 17:49 PasserTest\PasserTest\include\opencv2\core\eigen.hpp
文件 18705 2013-12-20 17:49 PasserTest\PasserTest\include\opencv2\core\gpumat.hpp
文件 34132 2013-12-20 17:49 PasserTest\PasserTest\include\opencv2\core\internal.hpp
文件 80561 2014-01-10 11:00 PasserTest\PasserTest\include\opencv2\core\mat.hpp
文件 9346 2013-12-20 17:49 PasserTest\PasserTest\include\opencv2\core\opengl_interop.hpp
文件 9919 2013-12-20 17:49 PasserTest\PasserTest\include\opencv2\core\opengl_interop_deprecated.hpp
............此处省略211个文件信息
相关资源
- HOG特征可视化C代码
- opencv视频行人检测1HOG+SVM
- 车流行人.rar
- HOG行人快速检测
- OpenCV2.4.4实现HOG行人检测
- KAIST_improved_annotations.tar
- 机器学习-MIT行人检测数据库
- 笔记本OpenCV调用摄像头进行人脸捕捉
- 行人识别video资源
- Indroduction_to_Mathematica_Statistics.HoggMcK
- 训练得到的900维 HOG特征-检测算子进行
- Solution to Introduction to Mathematical stati
- hogsvm行人数据集
- 基于Adaboost算法的实时行人检测系统
- 关于HOG+SVM的经典总结
- MIT行人数据集合
- 红外行人识别
- 视频行人检测
-
hog的xm
l与训练数据集 - 基于聚合通道特征ACF的行人检测
- OpenCV上目标跟踪和行人跟踪需要的视
- YOLOv3检测行人结果caltech reasonble
- 行人过街手动交通灯控制模块设计
- 视频行人检测源码
- 哈尔滨工业大学硕士论文-基于机器学
- 行人检测视频 hog 检测 直接可以使用
- 安全帽检测行人检测数据集视频图片
- Vehicle-And-Pedestrian-Detection-Using-Haar-Ca
- 基于hog+pca+svm行人检测源码
- 机器学习-Hog+SVM小狮子识别.zip
评论
共有 条评论