亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? haarlearner.cpp

?? MultiBoost 是c++實現的多類adaboost酸法。與傳統的adaboost算法主要解決二類分類問題不同
?? CPP
字號:
/** This file is part of MultiBoost, a multi-class * AdaBoost learner/classifier** Copyright (C) 2005-2006 Norman Casagrande* For informations write to nova77@gmail.com** This library is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Public* License as published by the Free Software Foundation; either* version 2.1 of the License, or (at your option) any later version.** This library is distributed in the hope that it will be useful,* but WITHOUT ANY WARRANTY; without even the implied warranty of* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU* Lesser General Public License for more details.** You should have received a copy of the GNU Lesser General Public* License along with this library; if not, write to the Free Software* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA**/#include "HaarLearner.h"#include "Others/HaarFeatures.h"#include "Utils/StreamTokenizer.h"#include "IO/HaarData.h"#include "IO/Serialization.h"#include "Utils/Args.h"#include <limits> // for numeric_limits#include <ctime> // for timenamespace MultiBoost {// ------------------------------------------------------------------------------void HaarLearner::declareArguments(nor_utils::Args& args){   args.declareArgument("ftypes",                         "Specify the list with the type of Haar-like features. This list can contain "                        "all the types requested at once. The types allowed are:\n"                        "  2v: 2 blocs vertical feature\n"                        "  2h: 2 blocs horizontal feature\n"                        "  3v: 3 blocs vertical feature\n"                        "  3h: 3 blocs horizontal feature\n"                        "  4q: 4 blocs squared feature\n"                        "For instance if you need all the 2 and 3 blocs type, just write:\n"                        "-ftypes 2v2h3v3h\n"                        "(DEFAULT: ALL of them will be selected)"                        , 1, "<list>");   args.declareArgument("csample",                        "Instead of computing all the possible combinations, select a set of "                        "random configurations. It is possible to specify the number of combinations "                        "or the amount of time per feature type. The options are:\n"                        "  num: The number of combination per type per iteration.\n"                        "  time: The amount of time (in seconds) per type per iteration.\n"                        "Example: -csample num 4 -> Set the number of random configurations to 4.\n"                        "Example: -csample time 120 -> Set the time to 2 minutes per type per iteration.",                        2, "<opt> <#|sec>");   args.declareArgument("seed", "Defines the seed for the random sampling.", 1, "<seedval>");   args.declareArgument("iisize",                         "Specify the size of the integral image representation for each example,\n"                        "Example: -iisize 128x64",                         1, "<width>x<height>");}// ------------------------------------------------------------------------------void HaarLearner::initOptions(nor_utils::Args& args){   // If the sampling is required   if (args.hasArgument("csample"))   {      string randSearch = args.getValue<string>("csample", 0);      // if the type is ST_NUM this is the number of samplings per feature per iteration      // if the type is ST_TIME this is the amount of time per feature per iteration      _samplingVal = args.getValue<int>("csample", 1);      if (randSearch == "num")         _samplingType = ST_NUM;      else if (randSearch == "time")         _samplingType = ST_TIME;   }   // defines the seed of the sampling method.   if (args.hasArgument("seed"))   {      unsigned int seed = args.getValue<unsigned int>("seed", 0);      srand(seed);   }}// ------------------------------------------------------------------------------void HaarLearner::save(ofstream& outputStream, int numTabs){   // save the type of feature   outputStream << Serialization::standardTag("type", _pSelectedFeature->getShortName(), numTabs) << endl;   // Save the coordinates and size of the feature   outputStream << Serialization::getTabs(numTabs) << "<rect>" << endl;      outputStream << Serialization::standardTag("x", _selectedConfig.x, numTabs+1) << endl;      outputStream << Serialization::standardTag("y", _selectedConfig.y, numTabs+1) << endl;      outputStream << Serialization::standardTag("width", _selectedConfig.width, numTabs+1) << endl;      outputStream << Serialization::standardTag("height", _selectedConfig.height, numTabs+1) << endl;   outputStream << Serialization::getTabs(numTabs) << "</rect>" << endl;}// -----------------------------------------------------------------------void HaarLearner::load(nor_utils::StreamTokenizer& st){   // get the type of feature   string shortName = UnSerialization::seekAndParseEnclosedValue<string>(st, "type");   // get it from the registered features   _pSelectedFeature = HaarFeature::RegisteredFeatures().getFeature(shortName);   // Load the coordinates and size of the feature   _selectedConfig.x = UnSerialization::seekAndParseEnclosedValue<short>(st, "x");   _selectedConfig.y = UnSerialization::seekAndParseEnclosedValue<short>(st, "y");   _selectedConfig.width = UnSerialization::seekAndParseEnclosedValue<short>(st, "width");   _selectedConfig.height = UnSerialization::seekAndParseEnclosedValue<short>(st, "height");}// ------------------------------------------------------------------------------} // end of MultiBoost namespace

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一本一道综合狠狠老| av成人老司机| 日韩理论片在线| 欧美一区二区三区在线电影| 成人做爰69片免费看网站| 亚洲综合免费观看高清在线观看| 日韩精品一区二区三区四区视频 | 粉嫩高潮美女一区二区三区| 亚洲第一久久影院| 国产日韩综合av| 欧美日韩aaa| 99热国产精品| 国产精品一区不卡| 蜜桃久久av一区| 亚洲精品欧美激情| 欧美国产丝袜视频| 精品国产麻豆免费人成网站| 欧美色图第一页| 色综合天天综合在线视频| 成人午夜视频在线观看| 欧美国产精品一区二区| 日韩欧美国产一区二区三区| 欧美性生交片4| 91在线观看地址| 在线中文字幕不卡| 亚洲精品日日夜夜| 国产精品久久久久久久久免费樱桃| 欧美变态凌虐bdsm| 欧美一区二区三区播放老司机| 在线视频国产一区| 色婷婷av一区二区| 99国产精品一区| 成人激情免费电影网址| 国产精品综合在线视频| 久久99国产精品久久| 日本网站在线观看一区二区三区 | 国产91在线观看丝袜| 蜜臀a∨国产成人精品| 视频一区二区不卡| 婷婷开心久久网| 天堂午夜影视日韩欧美一区二区| 亚洲妇女屁股眼交7| 亚洲超丰满肉感bbw| 亚洲第一搞黄网站| 日日噜噜夜夜狠狠视频欧美人| 亚洲午夜久久久| 亚洲自拍偷拍图区| 亚洲成人黄色小说| 日本亚洲视频在线| 免费人成网站在线观看欧美高清| 蜜臀av一区二区三区| 理论片日本一区| 黄色小说综合网站| 国产在线不卡一卡二卡三卡四卡| 激情伊人五月天久久综合| 精品一区二区三区的国产在线播放| 另类小说欧美激情| 国产精品一区二区三区乱码| 成人av资源下载| 91视频观看免费| 欧美调教femdomvk| 日韩欧美国产系列| 国产视频一区二区在线| 亚洲欧美在线高清| 亚洲曰韩产成在线| 免费一级片91| 国产成人亚洲精品青草天美| 99久久亚洲一区二区三区青草| 91久久精品日日躁夜夜躁欧美| 欧美亚洲国产一区二区三区va | 精品国产乱码久久久久久牛牛| 精品国产不卡一区二区三区| 欧美极品另类videosde| 亚洲视频免费在线观看| 视频在线观看国产精品| 国产一区欧美二区| 99re66热这里只有精品3直播| 欧美视频在线一区| 久久奇米777| 综合激情网...| 青青草精品视频| 成人亚洲精品久久久久软件| 欧美三级在线播放| 久久久亚洲精品石原莉奈 | 国产日韩欧美在线一区| 亚洲区小说区图片区qvod| 日韩vs国产vs欧美| 成人伦理片在线| 制服丝袜亚洲色图| 国产精品色哟哟网站| 亚洲1区2区3区4区| 丰满亚洲少妇av| 欧美日韩一区视频| 国产午夜亚洲精品羞羞网站| 亚洲图片欧美色图| 国产高清久久久| 欧美日韩国产在线播放网站| 国产视频一区在线观看| 亚洲国产精品一区二区久久恐怖片 | 久久爱www久久做| 国产高清视频一区| 在线播放91灌醉迷j高跟美女 | 亚洲高清在线精品| 成人动漫视频在线| 欧美r级电影在线观看| 一区二区三区日韩欧美精品| 国产伦精一区二区三区| 欧美二区三区的天堂| 综合久久久久久| 国产激情视频一区二区在线观看 | 美女视频免费一区| 在线欧美日韩精品| 中文字幕日韩一区| 国产精品88av| 精品三级在线观看| 天天色天天爱天天射综合| 99精品视频中文字幕| 国产日本欧美一区二区| 国内久久精品视频| 日韩欧美亚洲一区二区| 五月天丁香久久| 欧美怡红院视频| 亚洲毛片av在线| www.亚洲在线| 国产精品久久久久桃色tv| 国产一区二区按摩在线观看| 精品日韩一区二区三区| 青青草精品视频| 欧美电影一区二区三区| 亚洲高清中文字幕| 欧美色窝79yyyycom| 尤物视频一区二区| 91丝袜美腿高跟国产极品老师 | 色婷婷国产精品久久包臀| 国产精品伦理在线| 成人免费看视频| 国产精品日日摸夜夜摸av| 国产福利精品一区二区| 国产日产欧美一区| 国产91高潮流白浆在线麻豆| 国产偷国产偷精品高清尤物| 国产乱码精品1区2区3区| 国产日产欧美一区| 国产盗摄女厕一区二区三区| 久久久久99精品一区| 国产精品自产自拍| 欧美国产激情一区二区三区蜜月| 国产成人亚洲综合色影视| 国产精品国产精品国产专区不蜜| 91视视频在线观看入口直接观看www | 日本一区二区三区在线观看| 高清av一区二区| 国产亚洲综合在线| 成人av先锋影音| 亚洲人成影院在线观看| 欧美亚州韩日在线看免费版国语版| 亚洲影院理伦片| 日韩丝袜情趣美女图片| 国产精一区二区三区| 中文字幕中文字幕一区| 色一情一乱一乱一91av| 五月天激情综合网| 久久中文娱乐网| av一区二区不卡| 亚洲gay无套男同| 欧美va在线播放| 粉嫩av一区二区三区| 亚洲男人的天堂在线aⅴ视频| 91.com在线观看| 国产电影精品久久禁18| 一区二区三区日本| 日韩西西人体444www| 成人一区二区三区视频在线观看| 亚洲三级在线免费观看| 91精品在线一区二区| 国产精品911| 亚洲丶国产丶欧美一区二区三区| 精品国产第一区二区三区观看体验| 99久久精品情趣| 美女在线视频一区| 椎名由奈av一区二区三区| 欧美一区二区三区在线观看视频| 国产成人免费网站| 亚洲一区二区欧美| 26uuu国产电影一区二区| 一本久久综合亚洲鲁鲁五月天 | 日韩 欧美一区二区三区| 中文av字幕一区| 欧美老女人第四色| 成人高清免费在线播放| 日韩精品欧美精品| 中文字幕在线观看一区| 555夜色666亚洲国产免| 91女厕偷拍女厕偷拍高清| 久草中文综合在线| 亚洲一区二区精品久久av| 国产三级精品三级| 91麻豆精品国产无毒不卡在线观看| a4yy欧美一区二区三区| 韩国v欧美v亚洲v日本v|