This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
/* using MKL10 */ | |
#pragma comment(lib, "mkl_intel_lp64.lib") | |
#pragma comment(lib, "mkl_intel_thread.lib") | |
#pragma comment(lib, "mkl_core.lib") | |
#pragma comment(lib, "libiomp5md.lib") | |
#include <mkl.h> | |
#include <cmath> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* the wrapper of BLAS and LAPACK (MKL) */ | |
#pragma once | |
#include "blas.hpp" | |
#include <cstring> | |
#ifndef MAX | |
#define MAX(a, b) (((a) > (b)) ? (a) : (b)) | |
#endif | |
#ifndef MIN |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
// prepare | |
HoG hog(PATCH_SIZE, cv::Size(8, 8), cv::Size(2, 2), cv::Size(8, 8), 9); | |
// ...or... | |
MultiScaleHoG hog; | |
hog.add(PATCH_SIZE, cv::Size(4, 4), cv::Size(2, 2), cv::Size(4, 4), 9); | |
hog.add(PATCH_SIZE, cv::Size(16, 16), cv::Size(2, 2), cv::Size(8, 8), 9); | |
hog.add(PATCH_SIZE, cv::Size(32, 32), cv::Size(2, 2), cv::Size(16, 16), 9); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <useopencv.h> | |
#include <string> | |
#include <vector> | |
#include <iostream> | |
class InteractiveGrabcut { | |
cv::Mat src; | |
cv::Mat fgd, bgd; | |
bool ldrag, rdrag; | |
std::string name; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// use opencv | |
#include <opencv2/core/core.hpp> | |
#include <opencv2/imgproc/imgproc.hpp> | |
#include <opencv2/imgproc/imgproc_c.h> | |
#include <opencv2/highgui/highgui.hpp> | |
#include <opencv2/calib3d/calib3d.hpp> | |
#ifdef _DEBUG | |
#pragma comment( lib, "opencv_core229d.lib" ) | |
#pragma comment( lib, "opencv_imgproc229d.lib" ) | |
#pragma comment( lib, "opencv_highgui229d.lib" ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
#pragma warning ( disable : 4819 ) | |
#pragma warning ( disable : 4996 ) | |
#include <opencv2/core/core.hpp> | |
#include <opencv2/imgproc/imgproc.hpp> | |
#include <opencv2/imgproc/imgproc_c.h> | |
#include <opencv2/highgui/highgui.hpp> | |
#include <opencv2/calib3d/calib3d.hpp> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <useopencv.h> | |
template <typename T> | |
class BoxMat { | |
public: | |
const cv::Mat_<T>& mat; | |
int offsetX, offsetY; | |
int rows, cols; | |
BoxMat(const cv::Mat_<T>& mat, const int offsetY, const int offsetX, const cv::Size size) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/perl | |
use strict; | |
use warnings; | |
use Web::Scraper; | |
use LWP::UserAgent; | |
use URI; | |
use URI::Escape; | |
use Encode; | |
use utf8; |
NewerOlder