leetcode(9) Array Partition I difficult:easy #561Given an array of 2n integers, your task is to group these integers into n pairs of integer, say (a1, b1), (a2, b2), …, (an, bn) which makes sum of min(ai, bi) for all i from 1 to n 2018-07-18 leetcode #leetcode
leetcode(8) SelfDividingNumbers difficult:easy #728A self-dividing number is a number that is divisible by every digit it contains.For example, 128 is a self-dividing number because 128 % 1 == 0, 128 % 2 == 0, and 128 % 8 == 0.Also, 2018-07-16 leetcode #leetcode
数字图像处理(1) 图像基础 图像采样和量化 图像采样数字化坐标值称为采样,对二维空间中连续的图像在水平和垂直方向上等间距地分割成矩形网状结构,所形成的微小方格称为像素点,小方格中的值由灰度值(方格区域亮度的平均值)表示,采样的实质就是用多少个像素点来描述一幅图像.采样时,若横向的像素数(列数)为M,纵向的像素数(行数)为N,则图像总像素数为M*N个像素; 采样间隔越大,即行列数少,则图像像素数越少,空间分辨率低,质量差,严重 2018-07-13 数字图像处理 #数字图像处理
blob detect 斑点检测斑点:与周围区域存在颜色差异或灰度差异的区域斑点检测的主要思路是检测出图像中比周围像素灰度大或者比周围区域灰度值小的区域 1.基于求导的微分方法 2.基于局部极值的分水岭算法,基于此OPENCV中提供simpleBlobDetector特征检测器12345678910111213141516#include<iostream>#include<vector>#i 2018-07-12 opencv3 #opencv samples
leetcode(7) PeakIndexInMountainArray difficult:easy #852Let’s call an array A a mountain if the following properties hold: A.length >= 3 There exists some 0 < i < A.length - 1 such that A[0] < A[1] < … A[i-1] < A[i] &g 2018-07-12 leetcode #leetcode
leetcode(6) JudgeRouteCircle difficult:easy #657Initially, there is a Robot at position (0, 0). Given a sequence of its moves, judge if this robot makes a circle, which means it moves back to the original place. The move sequence 2018-07-11 leetcode #leetcode
opencv3(3) opencv数据类型 基础数据类型 Point 坐标类Point有两种,2维Point和3维Point,Point可以转换为其他数据类型,比如vector或者matrix ScalaScalar继承于vectorScalar(b, g, r) :b->蓝色分量 g->绿色分量 r->红色分量Scalar(0, 0, 255) -> 红色像素点 Size 大小类Size和Point类似,两者可以互 2018-07-10 opencv3 #opencv3
leetcode(5) HammingDistance difficult:easy #461 The Hamming distance between two integers is the number of positions at which the corresponding bits are different. Given two integers x and y, calculate the Hamming distance. Exam 2018-07-10 leetcode #leetcode
leetcode(4) uniqueMorseCodeWords difficult:easy #804 International Morse Code defines a standard encoding where each letter is mapped to a series of dots and dashes, as follows: “a” maps to “.-“, “b” maps to “-…”, “c” maps to “-.-.”, 2018-07-10 leetcode #leetcode
leetcode(3) Jewels and Stones difficult:easy #771 You’re given strings J representing the types of stones that are jewels, and S representing the stones you have. Each character in S is a type of stone you have. You want to know 2018-07-08 leetcode #leetcode