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
/*------------------------------------------------------------------------------------------*\ | |
This file contains material supporting chapter 7 of the cookbook: | |
Computer Vision Programming using the OpenCV Library. | |
by Robert Laganiere, Packt Publishing, 2011. | |
This program is free software; permission is hereby granted to use, copy, modify, | |
and distribute this source code, or portions thereof, for any purpose, without fee, | |
subject to the restriction that the copyright notice may not be removed | |
or altered from any source or altered source distribution. | |
The software is released on an as-is basis and without any warranties of any kind. |
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
#if !defined OFINDER | |
#define OFINDER | |
#include <opencv2/imgproc/imgproc.hpp> | |
#include <opencv2/core/core.hpp> | |
#include <opencv2/highgui/highgui.hpp> | |
class ObjectFinder { | |
private: |
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
#if !defined COLHISTOGRAM | |
#define COLHISTOGRAM | |
#include <opencv2/core/core.hpp> | |
#include <opencv2/imgproc/imgproc.hpp> | |
class ColorHistogram { | |
private: |
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
#if !defined HISTOGRAM | |
#define HISTOGRAM | |
#include <opencv2/core/core.hpp> | |
#include <opencv2/imgproc/imgproc.hpp> | |
class Histogram1D { | |
private: |
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
#!/bin/python3 | |
import sys | |
import os | |
import time | |
import subprocess | |
def write(layout, title, current, category, target): | |
yaml = '''\ | |
title: {1} |
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
# name: margin-note | |
# key: mnote | |
# -- | |
{% mnote ${2:index} %} ${1:text} {% endmnote %}$0 |
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
{% mnote index %} | |
Margin note string | |
{% endmnote %} |
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
<% if (cache) { %> | |
bootstrap.min.css | |
bootstrap-responsive.min.css | |
style.min.css | |
responsive.min.css | |
<% } else {%> | |
bootstrap.css | |
bootstrap-responsive.css | |
style.css | |
responsive.css |
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
{{# env.production }} | |
bootstrap.min.css | |
bootstrap-responsive.min.css | |
style.min.css | |
responsive.min.css | |
{{/ env.production }} | |
{{^ env.production }} | |
bootstrap.css | |
bootstrap-responsive.css | |
style.css |
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
var render = hexo.render; | |
/** | |
* alert tag | |
* | |
* Syntax: | |
* {% alert caption [style] %} | |
* Alert string | |
* {% endalert %} | |
*/ |