資源簡介
文檔包含了自己利用HOG+SVM制作樣本和訓練分類器的軟件,以及基于C++和opencv實現的HOG+SVM源代碼
代碼片段和文件信息
/**
*?The?MIT?License
*?
*?Copyright?(c)?2008?Naotoshi?Seo?
*?
*?Permission?is?hereby?granted?free?of?charge?to?any?person?obtaining?a?copy
*?of?this?software?and?associated?documentation?files?(the?“Software“)?to?deal
*?in?the?Software?without?restriction?including?without?limitation?the?rights
*?to?use?copy?modify?merge?publish?distribute?sublicense?and/or?sell
*?copies?of?the?Software?and?to?permit?persons?to?whom?the?Software?is
*?furnished?to?do?so?subject?to?the?following?conditions:
*?
*?The?above?copyright?notice?and?this?permission?notice?shall?be?included?in
*?all?copies?or?substantial?portions?of?the?Software.
*?
*?THE?SOFTWARE?IS?PROVIDED?“AS?IS“?WITHOUT?WARRANTY?OF?ANY?KIND?EXPRESS?OR
*?IMPLIED?INCLUDING?BUT?NOT?LIMITED?TO?THE?WARRANTIES?OF?MERCHANTABILITY
*?FITNESS?FOR?A?PARTICULAR?PURPOSE?AND?NONINFRINGEMENT.?IN?NO?EVENT?SHALL?THE
*?AUTHORS?OR?COPYRIGHT?HOLDERS?BE?LIABLE?FOR?ANY?CLAIM?DAMAGES?OR?OTHER
*?LIABILITY?WHETHER?IN?AN?ACTION?OF?CONTRACT?TORT?OR?OTHERWISE?ARISING?FROM
*?OUT?OF?OR?IN?CONNECTION?WITH?THE?SOFTWARE?OR?THE?USE?OR?OTHER?DEALINGS?IN
*?THE?SOFTWARE.
*/
#ifdef?_MSC_VER?//?MS?Visual?Studio
#pragma?warning(disable:4996)
#pragma?comment(lib?“cv.lib“)
#pragma?comment(lib?“cxcore.lib“)
#pragma?comment(lib?“cvaux.lib“)
#pragma?comment(lib?“highgui.lib“)
#endif
#include?“cv.h“
#include?“cvaux.h“
#include?“highgui.h“
#include?
#include?
#include?
#include?
#include?
#include?
#include?
#include?“get_filelist.h“
#include?“convert_format.h“
#include?“cvxrectangle.h“
using?namespace?std;
namespace?fs?=?boost::filesystem;
/**
*?A?structure?for?cvSetMouseCallback?function
*/
/*
typedef?struct?ImageClipperMouse?{
????const?char*?w_name;
????IplImage*?img;
????CvRect?rect;
????CvRect?circle;?//?use?x?y?for?center?width?as?radius.?width?==?0?means?watershed?is?off
}?ImageClipperMouse?;
inline?ImageClipperMouse?imageClipperMouse(?const?char*?w_name?IplImage*?img?CvRect&?rect?CvRect&?circle?)
{
????ImageClipperMouse?m?=?{?w_name?img?rect?circle?};
????return?m;
}*/
const?char*?param_w_name;
const?char*?param_miniw_name;
IplImage*???param_img;
CvRect??????param_rect;
CvRect??????param_circle;
int?????????param_rotate?=?0;
CvPoint?????param_shear?=?cvPoint(00);
inline?CvRect?cvShowImageAndWatershed(?const?char*?w_name?const?IplImage*?img?const?CvRect?&circle?)
{
????IplImage*?clone?=?cvCloneImage(?img?);
????IplImage*?markers??=?cvCreateImage(?cvGetSize(?clone?)?IPL_DEPTH_32S?1?);
????CvPoint?center?=?cvPoint(?circle.x?circle.y?);
????int?radius?=?circle.width;
????//?Set?watershed?markers.?Now?marker‘s?shape?is?like?circle
????//?Set?(1?*?radius)?-?(3?*?radius)?region?as?ambiguous?region?(0)?intuitively
????cvSet(?markers?cvScalarAll(?1?)?);
????cvCircle(?markers?center?3?*?radius?cvScalarAll(?0?)?CV_FIL
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???33720507??2013-09-26?14:28??acdsee9_zh-cn.rar
?????文件???????3659??2008-11-14?11:47??clipper\convert_format.h
?????文件?????724992??2008-09-02?18:22??clipper\cv100.dll
?????文件????1351680??2008-09-02?18:22??clipper\cv100d.dll
?????文件?????598067??2008-09-02?18:22??clipper\cvaux100.dll
?????文件??????49152??2008-09-02?18:22??clipper\cvcam100.dll
?????文件??????17057??2008-11-14?11:46??clipper\cvxrectangle.h
?????文件?????933888??2008-09-02?18:22??clipper\cxcore100.dll
?????文件????1634304??2008-09-02?18:22??clipper\cxcore100d.dll
?????文件?????131133??2008-09-02?18:22??clipper\cxts001.dll
?????文件???????3321??2008-11-07?10:42??clipper\get_filelist.h
?????文件???????5620??2008-10-15?20:56??clipper\haartrainingformat.pl
?????文件?????622592??2008-09-02?18:22??clipper\highgui100.dll
?????文件?????860160??2008-09-02?18:22??clipper\highgui100d.dll
?????文件??????39935??2013-09-26?11:32??clipper\imageclipper\lena.png_0000_0057_0028_0138_0138.png
?????文件??????31048??2008-11-14?11:49??clipper\imageclipper.cpp
?????文件?????159744??2008-11-14?11:51??clipper\imageclipper.exe
?????文件????????888??2008-10-15?17:42??clipper\imageclipper.sln
?????文件???????4207??2008-11-07?12:44??clipper\imageclipper.vcproj
?????文件?????117966??2007-12-10?12:07??clipper\lena.png
?????文件?????196608??2008-09-02?18:22??clipper\libguide40.dll
?????文件????????700??2008-09-02?18:28??clipper\Makefile
?????文件?????249904??2008-09-02?18:22??clipper\ml100.dll
?????目錄??????????0??2013-09-26?11:32??clipper\imageclipper
?????目錄??????????0??2013-09-26?11:32??clipper
?????文件?????140800??2013-09-26?15:14??代碼\Debug\HOG.exe
?????文件?????880500??2013-09-26?15:14??代碼\Debug\HOG.ilk
?????文件????2116608??2013-09-26?15:14??代碼\Debug\HOG.pdb
?????文件???????1658??2013-09-26?15:14??代碼\HOG\Debug\cl.command.1.tlog
?????文件??????55528??2013-09-26?15:14??代碼\HOG\Debug\CL.read.1.tlog
............此處省略84個文件信息
- 上一篇:算法設計實驗報告-求最大子段和問題
- 下一篇:onvif客戶端demo
評論
共有 條評論