91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 9.95MB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發布日期: 2023-10-07
  • 語言: 其他
  • 標簽: Hog??行人??

資源簡介

新手學習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???????{
?????????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_based_tracker.hpp

?????文件???????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個文件信息

評論

共有 條評論