原创 codeforces 595 D. Max and Bike

D. Max and Bike time limit per test 2 seconds memory limit per test 256 megabytes input standard input output

原创 codeforces 604 D. Moodular Arithmetic

D. Moodular Arithmetic time limit per test 1 second memory limit per test 256 megabytes input standard input o

原创 codeforces 595 E. Edo and Magnets

E. Edo and Magnets time limit per test 1 second memory limit per test 256 megabytes input standard input outpu

原创 codeforces 604 E. Lieges of Legendre (sg函數)

E. Lieges of Legendre time limit per test 2 seconds memory limit per test 256 megabytes input standard input o

原创 歡迎來到whai的博客

歡迎來到whai的博客,我一般在csdn上更新我的博客http://blog.csdn.net/whai362

原创 日常學習記錄

日常學習記錄 2016.7.12 圖像主色的 K-Means 分析 Action Recognition using Visual Attention(基於CNN/LSTM的動作識別) Exploring the Space of Ad

原创 k-means聚類算法

一. 聚類的定義 聚類能夠將相似的樣本儘量歸入同一類,將不相似的樣本歸入不同的類,是一種無監督的機器學習算法。其中相似度的評價標準是人爲制定的,一般情況下用歐式距離來衡量相似度。 二. k-means算法 k-means算法的僞代碼如下:

原创 基於OpenCV實現的極值區域(Extremal Region)提取

一. 極值區域的定義 極值區域(Extremal Region, ER)是指區域外邊界的像素值嚴格大於區域內像素值的區域。 二. 實現思路 取不同的閾值θ ,把圖像二值化; 求二值化圖像中的連通區域,即爲er區域。 三. 代碼實現

原创 OpenCV 霍夫變換

一. 實驗內容 用OpenCV的霍夫變換來檢測圖片中的直線和圓。 二. 實驗代碼 //霍夫變換 class Task18 { public: void deal() { Mat src_img = imread("

原创 常用數學符號的 LaTeX 表示方法

常用數學符號的 LaTeX 表示方法 轉自http://www.mohu.org/info/symbols/symbols.htm (以下內容主要摘自“一份不太簡短的 LATEX2e 介紹”) 1、指數和下標可以用^和_後加相應字符來實

原创 theano學習筆記(一):Classifying MNIST digits using Logistic Regression

keras用得比較多,但是有時keras用起來不是很順手。因爲keras是基於theano或TensorFlow的,所以趁假期有空,先看看theano。 Classifying MNIST digits using Logistic Re

原创 OpenCV 鼠標操作

一. 實驗描述 用OpenCV的鼠標操作來繪製彩色矩形。 二. 實驗代碼 #include <string> #include <opencv2/opencv.hpp> using namespace cv; using namespac

原创 OpenCV 圖片尺寸縮放

一. 實驗描述 用OpenCV進行圖片尺寸的縮放。 二. 實驗代碼 //圖片尺寸縮放 class Task15 { public: void deal() { Mat src_img = imread("img\\

原创 OpenCV 簡單的圖像混合和滑動條使用

一. 任務描述 這裏對OpenCV中的滑動條進行簡單的使用,用滑動條來調節兩張圖片的混合比例。 二. 實驗代碼 #include <string> #include <opencv2/opencv.hpp> #include <openc

原创 基於Opencv實現Matlab的bwmorph中的bridge操作

工程需要,但是不能用matlab,所以用Opencv實現了一下bridge,也不難。 一. bridge操作的定義 在官方文檔https://cn.mathworks.com/help/images/ref/bwmorph.html中,b