摘要: ORB算法ORB是是ORiented Brief的简称。ORB的描述在下面文章中:Ethan Rublee and Vincent Rabaud and Kurt Konolige and Gary Bradski, ORB: an efcient alternative to SI... 阅读全文
posted @ 2017-11-17 22:28 wangyaning 阅读(7903) 评论(0) 推荐(0)
摘要: Surf(Speed Up Robust Feature)Surf算法的原理 1.构建Hessian矩阵构造高斯金字塔尺度空间其实surf构造的金字塔图像... 阅读全文
posted @ 2017-11-17 22:28 wangyaning 阅读(2615) 评论(0) 推荐(0)
摘要: 识别算法概述:SIFT/SURF基于灰度图,一、首先建立图像金字塔,形成三维的图像空间,通过Hessian矩阵获取每一层的局部极大值,然后进行在极值点周围26个点进行NMS,从而得到粗略的特征点,再使用二次插值法得到精确特征点所在的层(尺度),即完成了尺度不变。 二、在特征点选取一个与尺度相应的邻域... 阅读全文
posted @ 2017-11-17 22:28 wangyaning 阅读(8110) 评论(0) 推荐(0)
摘要: 概述排序有内部排序和外部排序,内部排序是数据记录在内存中进行排序,而外部排序是因排序的数据很大,一次不能容纳全部的排序记录,在排序过程中需要访问外存。我们这里说说八大排序就是内部排序。 当n较大,则应采用时间复杂度为O(nlog2n)的排序方法:快速排序、堆排序或归并排序序。 快速排序:... 阅读全文
posted @ 2017-11-17 22:28 wangyaning 阅读(339) 评论(0) 推荐(0)
摘要: 论文下载地址:http://research.microsoft.com/en-us/um/people/jiansun/papers/GuidedFilter_ECCV10.pdf本文主要介绍导向滤波,但是在网上看这算法还能去雾,不知道是具体是怎么利用导向滤波实现去雾的,希望过来人指点迷津,这块... 阅读全文
posted @ 2017-11-17 22:28 wangyaning 阅读(552) 评论(0) 推荐(0)
摘要: 1.python 的安装网上很多关于django跟python 开发的资料,这块我正在实习准备用这个两个合起来搞一个基于web 的东西出来现在开始学习,写点东西记录一下心得。开发环境是windows的,所以我们到python官网下载64位的windows操作系统的安装包:https://www.py... 阅读全文
posted @ 2017-11-17 22:28 wangyaning 阅读(430) 评论(0) 推荐(0)
摘要: 后面还有一个问题,是我把txt生成了,但是网页没有返回我还不知道,现在怎么直接返回txt并且展示出来txt 的内容,希望大牛不吝赐教首先有一个问题django1.7之前,这样用:HttpResponse(simplejson.dumps({“status”: ‘200’, “message”:u’登... 阅读全文
posted @ 2017-11-17 22:28 wangyaning 阅读(479) 评论(0) 推荐(0)
摘要: 上面是没有调用cleaned_data的提交结果,可见模版直接把form里面的整个标签都接收过来了下面是调用cleaned_data 的结果django 的表单,提交上来之后是这样的:#coding: gb2312from django import formsclass ContactForm(f... 阅读全文
posted @ 2017-11-17 22:28 wangyaning 阅读(117) 评论(0) 推荐(0)
摘要: 就是几个动物,自动排列生成什么的class Animal(object): def __init__(self,name,weight): self.name = name self.weight = weight def eat(self): self.weight +=1 def spea... 阅读全文
posted @ 2017-11-17 22:28 wangyaning 阅读(1378) 评论(0) 推荐(0)
摘要: 一直找不到opencv stereo matching的根据和原理出处,下面这个文章贴了个链接,有时间看看: Basically OpenCV provides 2 methods to calculate a dense disparity map:cvFindStereoCorrespond... 阅读全文
posted @ 2017-11-17 22:28 wangyaning 阅读(363) 评论(0) 推荐(0)
摘要: Description:Count the number of prime numbers less than a non-negative number, n 提示晒数法:http://en.wikipedia.org/wiki/Sieve_of_Eratostheneshttps://p... 阅读全文
posted @ 2017-11-17 22:28 wangyaning 阅读(121) 评论(0) 推荐(0)
摘要: Remove all elements from a linked list of integers that have valueval.ExampleGiven: 1 --> 2 --> 6 --> 3 --> 4 --> 5 --> 6, val = 6Return: 1 --> 2 --... 阅读全文
posted @ 2017-11-17 22:28 wangyaning 阅读(104) 评论(0) 推荐(0)
摘要: Write an algorithm to determine if a number is "happy".A happy number is a number defined by the following process: Starting with any positive intege... 阅读全文
posted @ 2017-11-17 22:28 wangyaning 阅读(195) 评论(0) 推荐(0)
摘要: Climbing Stairs You are climbing a stair case. It takes n steps to reach to the top.Each time you can either climb 1 or 2 steps... 阅读全文
posted @ 2017-11-17 22:28 wangyaning 阅读(95) 评论(0) 推荐(0)
摘要: Given two strings s and t, determine if they are isomorphic.Two strings are isomorphic if the characters in s can be replaced to get t.All occ... 阅读全文
posted @ 2017-11-17 22:28 wangyaning 阅读(129) 评论(0) 推荐(0)
摘要: 今天看了一个华为西安研究院的一个女生代码大神的总结很有感悟,下面这句话送给大家:只有好的程序员才能写出人类可以理解的代码You are a professional robber planning to rob houses along a street. Each house ha... 阅读全文
posted @ 2017-11-17 22:28 wangyaning 阅读(158) 评论(0) 推荐(0)
摘要: 实现效果:这个其实是一个非常常见的功能,大家都会考虑给自己简单的工程做一个背景界面。其实只要在view类中重载OnEraseBkgnd()这个函数就好了。代码如下:BOOL CdddView::OnEraseBkgnd(CDC* pDC){ // TODO: 在此添加消息处理程... 阅读全文
posted @ 2017-11-17 22:28 wangyaning 阅读(732) 评论(0) 推荐(0)
摘要: Reverse bits of a given 32 bits unsigned integer.For example, given input 43261596 (represented in binary as 00000010100101000001111010011100)... 阅读全文
posted @ 2017-11-17 22:28 wangyaning 阅读(123) 评论(0) 推荐(0)
摘要: Rotate an array of n elements to the right by k steps.For example, with n = 7 and k = 3, the array [1,2,3,4,5,6,7] is rotated to [5,6,7,1,2,3,... 阅读全文
posted @ 2017-11-17 22:28 wangyaning 阅读(131) 评论(0) 推荐(0)
摘要: Given an integer n, return the number of trailing zeroes in n!.Note: Your solution should be in logarithmic time complexity.解决思路: 决定阶乘末尾零的个数其实... 阅读全文
posted @ 2017-11-17 22:28 wangyaning 阅读(128) 评论(0) 推荐(0)
摘要: Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 ⌋ times.You may assume t... 阅读全文
posted @ 2017-11-17 22:28 wangyaning 阅读(117) 评论(0) 推荐(0)
摘要: Compare two version numbers version1 and version2. If version1 > version2 return 1, if version1 22; return 1.Example2: version1==”11.22.33”,... 阅读全文
posted @ 2017-11-17 22:28 wangyaning 阅读(190) 评论(0) 推荐(0)
摘要: Write a program to find the node at which the intersection of two singly linked lists begins.For example, the following two linked lists: A: ... 阅读全文
posted @ 2017-11-17 22:28 wangyaning 阅读(156) 评论(0) 推荐(0)
摘要: 项目主页:http://grinninglizard.com/tinyxml2docs/index.html tinyxml2.h /*Original code by Lee Thomason (www.grinninglizard.com)This software is provided... 阅读全文
posted @ 2017-11-17 22:28 wangyaning 阅读(1694) 评论(0) 推荐(0)
摘要: Given a sorted linked list, delete all duplicates such that each element appear only once. For example, Given 1->1->2, return 1->2. Given 1-... 阅读全文
posted @ 2017-11-17 22:28 wangyaning 阅读(155) 评论(0) 推荐(0)
摘要: Maximum Depth of Binary Tree Total Accepted: 63668 Total Submissions: 141121 My Submissions Question Solution Given a binary tree, find it... 阅读全文
posted @ 2017-11-17 22:28 wangyaning 阅读(184) 评论(0) 推荐(0)
摘要: Reverse digits of an integer.Example1: x = 123, return 321 Example2: x = -123, return -321 click to show spoilers.Have you thought about this?... 阅读全文
posted @ 2017-11-17 22:28 wangyaning 阅读(138) 评论(0) 推荐(0)
摘要: Design a stack that supports push, pop, top, and retrieving the minimum element in constant time. • push(x) – Push element x onto stack. • p... 阅读全文
posted @ 2017-11-17 22:28 wangyaning 阅读(189) 评论(0) 推荐(0)
摘要: image算法测试iteratoralgorithmfeatures原创文章,转载请注明出处:http://blog.csdn.net/crzy_sparrow/article/details/7391511文章目录:一、Harris角点检测基本理论二、opencv代码实现三、改进的Harris角... 阅读全文
posted @ 2017-11-17 22:28 wangyaning 阅读(381) 评论(0) 推荐(0)
摘要: http://www.cnblogs.com/sleepwalker/p/3676600.html?utm_source=tuicoolhttp://blog.csdn.net/carson2005/article/details/9502053 Retinex理论Retinex理论始于Lan... 阅读全文
posted @ 2017-11-17 22:28 wangyaning 阅读(277) 评论(0) 推荐(0)
摘要: 问题来源:http://bbs.csdn.net/topics/390998279?page=1#post-398983061 // Only_once.cpp : 定义控制台应用程序的入口点。////请参考>#include "StdAfx.h"#include #include usi... 阅读全文
posted @ 2017-11-17 22:28 wangyaning 阅读(374) 评论(0) 推荐(0)
摘要: 话不多说,上代码: #include #include #include using namespace std;const int DO = 261;const int RE = 293;const int MI = 329;const int FA = 349;const int SO = 39... 阅读全文
posted @ 2017-11-17 22:28 wangyaning 阅读(380) 评论(0) 推荐(0)
摘要: 今天听说很多同志们写毕业论文重复率过高的问题,大牛说用图片代替字就行了,我就想用OpenCV实现一下看看能不能搞,果不其然还是可以的!!!主要的难点在于普通格式的图片背景不透明,需要使用背景透明的png格式图片就行。 主要思想和步骤: 1.首先配置好FreeType与Ope... 阅读全文
posted @ 2017-11-17 22:28 wangyaning 阅读(495) 评论(0) 推荐(0)
摘要: 转载请注明出处:http://blog.csdn.net/wangyaninglm/article/details/44151213,来自:shiter编写程序的艺术 1.绪论图切割算法是组合图论的经典算法之一。近年来,许多学者将其应用到图像和视频分割中,取得了很好的效果。本文简单介绍了图切算法和交... 阅读全文
posted @ 2017-11-17 22:28 wangyaning 阅读(600) 评论(0) 推荐(0)
摘要: 1.FAST(featuresfrom accelerated segment test)算法 http://blog.csdn.net/yang_xian521/article/details/7411438 特征点检测和匹配是计算机视觉中一个很有用的技术。在物体检测,视觉跟踪,三维常年关键等领域... 阅读全文
posted @ 2017-11-17 22:28 wangyaning 阅读(8512) 评论(0) 推荐(0)
摘要: 出处:http://blog.csdn.net/euler1983/article/details/5959622算法优化algorithmgraphtree任务这篇文章说的是Yuri Boykov and Vladimir Kolmogorov在2004年提出的一种基于增广路径的求解最大流最小割... 阅读全文
posted @ 2017-11-17 22:28 wangyaning 阅读(293) 评论(0) 推荐(0)
摘要: 四种简单的图像显著性区域特征提取方法-----> AC/HC/LC/FT。分类: 图像处理 2014-08-03 12:40 4088人阅读 评论(4) 收藏 举报salient region detec显著性检测laviewpbt 2014.8.3 编辑Email:laviewpbt@sina.... 阅读全文
posted @ 2017-11-17 22:28 wangyaning 阅读(1197) 评论(0) 推荐(0)
摘要: 题目:输入一个正整数,若该数能用几个连续正整数之和表示,则输出所有可能的正整数序列。一个正整数有可能可以被表示为n(n>=2)个连续正整数之和,如: 15=1+2+3+4+5 15=4+5+6 15=7+8有些数可以写成连续N(>1)个自然数之和,比如14=2+3+4+5;有些不能,比如8.那么如何... 阅读全文
posted @ 2017-11-17 22:28 wangyaning 阅读(1241) 评论(0) 推荐(0)
摘要: 效果还是有点问题的,希望大家共同探讨一下 // FindRotation-angle.cpp : 定义控制台应用程序的入口点。//// findContours.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include #include #includ... 阅读全文
posted @ 2017-11-17 22:28 wangyaning 阅读(5055) 评论(0) 推荐(0)
摘要: Contains Duplicate Total Accepted: 26477 Total Submissions: 73478 My SubmissionsGiven an array of integers, find if the array contains any duplicate... 阅读全文
posted @ 2017-11-17 22:27 wangyaning 阅读(151) 评论(0) 推荐(0)
摘要: 深度有限遍历记录层数:增加一个level//深度优先遍历void depthFirstSearch(Tree root){ stack > nodeStack; //使用C++的STL标准模板库 nodeStack.push(make_pair(0, root)); Node *... 阅读全文
posted @ 2017-11-17 22:27 wangyaning 阅读(462) 评论(0) 推荐(0)
摘要: Given numRows, generate the first numRows of Pascal's triangle.For example, given numRows = 5,Return [ [1], [1,1], [1,2,1], [1,3,3,1], [1,4,... 阅读全文
posted @ 2017-11-17 22:27 wangyaning 阅读(102) 评论(0) 推荐(0)
摘要: 内推阿里电话面试中面试官给我出的一个题:我想的头一个解决方案,就是放到stl 的map里面对出现的频率作为pair的第二个字段进行排序,之后按照排序结果返回:下面口说无凭,show your code,当然在讨论帖子中遭遇了工程界大牛的sql代码在技术上的碾压。什么是做工程的,什么是工程师的思维,不... 阅读全文
posted @ 2017-11-17 22:27 wangyaning 阅读(611) 评论(0) 推荐(0)
摘要: Balanced Binary Tree Total Accepted: 63288 Total Submissions: 198315 My Submissions Given a binary tree, determine if it is heig... 阅读全文
posted @ 2017-11-17 22:27 wangyaning 阅读(157) 评论(0) 推荐(0)
摘要: Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by level).For example:Given binary tree {3,... 阅读全文
posted @ 2017-11-17 22:27 wangyaning 阅读(123) 评论(0) 推荐(0)
摘要: Symmetric Tree Total Accepted: 61440 Total Submissions: 194643 My Submissions Given a binary tree, check whether it is a mirror... 阅读全文
posted @ 2017-11-17 22:27 wangyaning 阅读(152) 评论(0) 推荐(0)
摘要: ios swift 实现饼状图进度条//// ProgressControl.swift// L02MyProgressControl//// Created by plter on 7/29/14.// Copyright (c) 2014 jikexueyuan. All rights ... 阅读全文
posted @ 2017-11-17 22:27 wangyaning 阅读(1294) 评论(0) 推荐(0)
摘要: 讨论帖:http://bbs.csdn.net/topics/391542633 在Matlab下,使用imfill可以很容易的完成孔洞填充操作,感觉这是一个极为常用的方法,然而不知道为什么Opencv里面却没有集成这个函数。在网上查了好多关于Opencv下的孔洞填充方法,大部分使用轮廓查找方... 阅读全文
posted @ 2017-11-17 22:27 wangyaning 阅读(5678) 评论(0) 推荐(0)
摘要: Add Binary Total Accepted: 46815 Total Submissions: 189215 My Submissions Given two binary strings, return their sum (also a bin... 阅读全文
posted @ 2017-11-17 22:27 wangyaning 阅读(162) 评论(0) 推荐(0)
摘要: Given a string containing just the characters '(', ')', '{', '}', '[' and']', determine if the input string is valid.The brackets must close in the co... 阅读全文
posted @ 2017-11-17 22:27 wangyaning 阅读(124) 评论(0) 推荐(0)
摘要: Write a function to find the longest common prefix string amongst an array of strings.我的解决方案:class Solution {public: string longestCommonPrefix(vec... 阅读全文
posted @ 2017-11-17 22:27 wangyaning 阅读(217) 评论(0) 推荐(0)
摘要: 编辑部的主页:好像没啥用http://shop.oreilly.com/product/0636920022923.do每章的代码,github上面的:中文版https://github.com/willard-yuan/pcv-book-codegithub上面,英文版:https://githu... 阅读全文
posted @ 2017-11-17 22:27 wangyaning 阅读(3666) 评论(0) 推荐(0)
摘要: Determine whether an integer is a palindrome. Do this without extra space.click to show spoilers.Some hints: Could negative integers be palin... 阅读全文
posted @ 2017-11-17 22:27 wangyaning 阅读(140) 评论(0) 推荐(0)
摘要: 给大家推荐两个学习的地址:极客学院的视频:http://www.jikexueyuan.com/path/ios/一个博客:http://blog.csdn.net/lizhongfu2013/article/details/29210015主要想要实现一个模仿的登陆界面代码://// Login... 阅读全文
posted @ 2017-11-17 22:27 wangyaning 阅读(503) 评论(0) 推荐(0)
摘要: Remove Duplicates from Sorted ArrayTotal Accepted:66627 Total Submissions:212739 My Submissions Given a sorted array, remove the... 阅读全文
posted @ 2017-11-17 22:27 wangyaning 阅读(82) 评论(0) 推荐(0)
摘要: Given two sorted integer arrays nums1 and nums2, merge nums2 intonums1 as one sorted array.Note:You may assume that nums1 has enough space (size tha... 阅读全文
posted @ 2017-11-17 22:27 wangyaning 阅读(122) 评论(0) 推荐(0)
摘要: 代码:#include #include #include #include #include #pragma comment(lib, "gdiplus.lib")using namespace std;using namespace Gdiplus;int main() { Gdiplus... 阅读全文
posted @ 2017-11-17 22:27 wangyaning 阅读(1023) 评论(0) 推荐(0)
摘要: Remove Element Total Accepted: 60351 Total Submissions: 187833 My Submissions Given an array and a value, remove all instances ... 阅读全文
posted @ 2017-11-17 22:27 wangyaning 阅读(110) 评论(0) 推荐(0)
摘要: String to Integer (atoi)Total Accepted:52232Total Submissions:401038My Submissions Implement atoi to convert a string to an integer.Hint: Carefully co... 阅读全文
posted @ 2017-11-17 22:27 wangyaning 阅读(155) 评论(0) 推荐(0)
摘要: 上面是没有调用cleaned_data的提交结果,可见模版直接把form里面的整个标签都接收过来了下面是调用cleaned_data 的结果django 的表单,提交上来之后是这样的:#coding: gb2312from django import formsclass ContactForm(f... 阅读全文
posted @ 2017-11-17 22:27 wangyaning 阅读(196) 评论(0) 推荐(0)
摘要: 论文下载地址:http://research.microsoft.com/en-us/um/people/jiansun/papers/GuidedFilter_ECCV10.pdf本文主要介绍导向滤波,但是在网上看这算法还能去雾,不知道是具体是怎么利用导向滤波实现去雾的,希望过来人指点迷津,这块... 阅读全文
posted @ 2017-11-17 22:27 wangyaning 阅读(3222) 评论(0) 推荐(0)
摘要: 概述排序有内部排序和外部排序,内部排序是数据记录在内存中进行排序,而外部排序是因排序的数据很大,一次不能容纳全部的排序记录,在排序过程中需要访问外存。我们这里说说八大排序就是内部排序。 当n较大,则应采用时间复杂度为O(nlog2n)的排序方法:快速排序、堆排序或归并排序序。 快速排序:... 阅读全文
posted @ 2017-11-17 22:27 wangyaning 阅读(1074) 评论(0) 推荐(0)
摘要: Surf(Speed Up Robust Feature)Surf算法的原理 1.构建Hessian矩阵构造高斯金字塔尺度空间其实surf构造的金字塔图像... 阅读全文
posted @ 2017-11-17 22:27 wangyaning 阅读(526) 评论(0) 推荐(0)
摘要: image算法测试iteratoralgorithmfeatures原创文章,转载请注明出处:http://blog.csdn.net/crzy_sparrow/article/details/7391511文章目录:一、Harris角点检测基本理论二、opencv代码实现三、改进的Harris角... 阅读全文
posted @ 2017-11-17 22:27 wangyaning 阅读(3043) 评论(0) 推荐(0)
摘要: http://www.cnblogs.com/sleepwalker/p/3676600.html?utm_source=tuicoolhttp://blog.csdn.net/carson2005/article/details/9502053 Retinex理论Retinex理论始于Lan... 阅读全文
posted @ 2017-11-17 22:27 wangyaning 阅读(6508) 评论(2) 推荐(1)
摘要: 问题来源:http://bbs.csdn.net/topics/390998279?page=1#post-398983061 // Only_once.cpp : 定义控制台应用程序的入口点。////请参考>#include "StdAfx.h"#include #include usi... 阅读全文
posted @ 2017-11-17 22:27 wangyaning 阅读(124) 评论(0) 推荐(0)
摘要: 话不多说,上代码: #include #include #include using namespace std;const int DO = 261;const int RE = 293;const int MI = 329;const int FA = 349;const int SO = 39... 阅读全文
posted @ 2017-11-17 22:27 wangyaning 阅读(180) 评论(0) 推荐(0)
摘要: 今天听说很多同志们写毕业论文重复率过高的问题,大牛说用图片代替字就行了,我就想用OpenCV实现一下看看能不能搞,果不其然还是可以的!!!主要的难点在于普通格式的图片背景不透明,需要使用背景透明的png格式图片就行。 主要思想和步骤: 1.首先配置好FreeType与Ope... 阅读全文
posted @ 2017-11-17 22:27 wangyaning 阅读(2064) 评论(0) 推荐(0)
摘要: 转载请注明出处:http://blog.csdn.net/wangyaninglm/article/details/44151213,来自:shiter编写程序的艺术 1.绪论图切割算法是组合图论的经典算法之一。近年来,许多学者将其应用到图像和视频分割中,取得了很好的效果。本文简单介绍了图切算法和交... 阅读全文
posted @ 2017-11-17 22:27 wangyaning 阅读(18204) 评论(0) 推荐(2)
摘要: 1.FAST(featuresfrom accelerated segment test)算法 http://blog.csdn.net/yang_xian521/article/details/7411438 特征点检测和匹配是计算机视觉中一个很有用的技术。在物体检测,视觉跟踪,三维常年关键等领域... 阅读全文
posted @ 2017-11-17 22:27 wangyaning 阅读(554) 评论(0) 推荐(0)
摘要: 上代码先:问题代码来源:http://blog.csdn.net/v_JULY_v // MaxSum.cpp : 定义控制台应用程序的入口点。////copyright@ July//July、updated,2011.05.25。#include "stdafx.h"#include usi... 阅读全文
posted @ 2017-11-17 22:27 wangyaning 阅读(158) 评论(0) 推荐(0)
摘要: 大牛没有能做出来的题,我们要好好做一做 Invert a binary tree. 4 / \ 2 7 / \ / \1 3 6 9to 4 / \ 7 2 / \ / \9 6 3 1Trivia:This prob... 阅读全文
posted @ 2017-11-17 22:27 wangyaning 阅读(195) 评论(0) 推荐(0)
摘要: Rotate an array of n elements to the right by k steps.For example, with n = 7 and k = 3, the array [1,2,3,4,5,6,7] is rotated to [5,6,7,1,2,3,... 阅读全文
posted @ 2017-11-17 22:27 wangyaning 阅读(94) 评论(0) 推荐(0)
摘要: 四种简单的图像显著性区域特征提取方法-----> AC/HC/LC/FT。分类: 图像处理 2014-08-03 12:40 4088人阅读 评论(4) 收藏 举报salient region detec显著性检测laviewpbt 2014.8.3 编辑Email:laviewpbt@sina.... 阅读全文
posted @ 2017-11-17 22:27 wangyaning 阅读(1084) 评论(0) 推荐(0)
摘要: 2010 年中兴面试题 编程求解: 输入两个整数n 和m,从数列1,2,3.......n 中随意取几个数, 使其和等于m ,要求将其中所有的可能组合列出来。// 21 题递归方法 //copyright@ July && yansha //July、yansha,updated。 #include... 阅读全文
posted @ 2017-11-17 22:27 wangyaning 阅读(303) 评论(0) 推荐(0)
摘要: 题目:输入一个正整数,若该数能用几个连续正整数之和表示,则输出所有可能的正整数序列。一个正整数有可能可以被表示为n(n>=2)个连续正整数之和,如: 15=1+2+3+4+5 15=4+5+6 15=7+8有些数可以写成连续N(>1)个自然数之和,比如14=2+3+4+5;有些不能,比如8.那么如何... 阅读全文
posted @ 2017-11-17 22:27 wangyaning 阅读(268) 评论(0) 推荐(0)
摘要: 效果还是有点问题的,希望大家共同探讨一下 // FindRotation-angle.cpp : 定义控制台应用程序的入口点。//// findContours.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include #include #includ... 阅读全文
posted @ 2017-11-17 22:27 wangyaning 阅读(633) 评论(0) 推荐(0)
摘要: 代码,有参考别人的代码// haha_mirror.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include#include "cv.h"#include "highgui.h"#include "math.h"#include "opencv2/core/... 阅读全文
posted @ 2017-11-17 22:27 wangyaning 阅读(1263) 评论(0) 推荐(0)
摘要: 原文出处:http://lincccc.blogspot.tw/2011/03/cuda-cuts-fast-graph-cuts-on-gpu_03.html现在需要代理才能访问,所以就转载了。 [论文笔记] CUDA Cuts: Fast Graph Cuts on the GPUPape... 阅读全文
posted @ 2017-11-17 22:27 wangyaning 阅读(398) 评论(0) 推荐(0)
摘要: Graph Cut and Its Application in Computer Vision 原文出处:http://lincccc.blogspot.tw/2011/04/graph-cut-and-its-application-in.html现在好像需要代理才能访问了。。。 网络流算法最... 阅读全文
posted @ 2017-11-17 22:27 wangyaning 阅读(171) 评论(0) 推荐(0)
摘要: 转载请注明出处:http://blog.csdn.net/wangyaninglm/article/details/43853435, 来自:shiter编写程序的艺术 对计算图像相似度的方法,本文做了如下总结,主要有三种办法:1.PSNR峰值信噪比PSNR(Peak Signal... 阅读全文
posted @ 2017-11-17 22:27 wangyaning 阅读(25073) 评论(0) 推荐(1)
摘要: Reverse bits of a given 32 bits unsigned integer.For example, given input 43261596 (represented in binary as 00000010100101000001111010011100)... 阅读全文
posted @ 2017-11-17 22:27 wangyaning 阅读(133) 评论(0) 推荐(0)
摘要: 实现效果:这个其实是一个非常常见的功能,大家都会考虑给自己简单的工程做一个背景界面。其实只要在view类中重载OnEraseBkgnd()这个函数就好了。代码如下:BOOL CdddView::OnEraseBkgnd(CDC* pDC){ // TODO: 在此添加消息处理程... 阅读全文
posted @ 2017-11-17 22:27 wangyaning 阅读(138) 评论(0) 推荐(0)
摘要: 今天看了一个华为西安研究院的一个女生代码大神的总结很有感悟,下面这句话送给大家:只有好的程序员才能写出人类可以理解的代码You are a professional robber planning to rob houses along a street. Each house ha... 阅读全文
posted @ 2017-11-17 22:27 wangyaning 阅读(120) 评论(0) 推荐(0)
摘要: Given two strings s and t, determine if they are isomorphic.Two strings are isomorphic if the characters in s can be replaced to get t.All occ... 阅读全文
posted @ 2017-11-17 22:27 wangyaning 阅读(134) 评论(0) 推荐(0)
摘要: Climbing Stairs You are climbing a stair case. It takes n steps to reach to the top.Each time you can either climb 1 or 2 steps... 阅读全文
posted @ 2017-11-17 22:27 wangyaning 阅读(100) 评论(0) 推荐(0)
摘要: Remove all elements from a linked list of integers that have valueval.ExampleGiven: 1 --> 2 --> 6 --> 3 --> 4 --> 5 --> 6, val = 6Return: 1 --> 2 --... 阅读全文
posted @ 2017-11-17 22:27 wangyaning 阅读(104) 评论(0) 推荐(0)
摘要: Description:Count the number of prime numbers less than a non-negative number, n 提示晒数法:http://en.wikipedia.org/wiki/Sieve_of_Eratostheneshttps://p... 阅读全文
posted @ 2017-11-17 22:27 wangyaning 阅读(356) 评论(0) 推荐(0)
摘要: 一直找不到opencv stereo matching的根据和原理出处,下面这个文章贴了个链接,有时间看看: Basically OpenCV provides 2 methods to calculate a dense disparity map:cvFindStereoCorrespond... 阅读全文
posted @ 2017-11-17 22:27 wangyaning 阅读(1011) 评论(0) 推荐(0)
摘要: 就是几个动物,自动排列生成什么的class Animal(object): def __init__(self,name,weight): self.name = name self.weight = weight def eat(self): self.weight +=1 def spea... 阅读全文
posted @ 2017-11-17 22:27 wangyaning 阅读(125) 评论(0) 推荐(0)
摘要: 出处:http://blog.csdn.net/euler1983/article/details/5959622算法优化algorithmgraphtree任务这篇文章说的是Yuri Boykov and Vladimir Kolmogorov在2004年提出的一种基于增广路径的求解最大流最小割... 阅读全文
posted @ 2017-11-17 22:27 wangyaning 阅读(180) 评论(0) 推荐(0)
摘要: vs2010中调用openMP,并添加头文件#include 代码来源:作者:gnuhpc出处:http://www.cnblogs.com/gnuhpc/ #include "stdafx.h"#include "cv.h" #include "highgui.h" #include #inc... 阅读全文
posted @ 2017-11-17 22:27 wangyaning 阅读(2167) 评论(0) 推荐(0)
摘要: Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists. 我的解决方案:... 阅读全文
posted @ 2017-11-17 22:27 wangyaning 阅读(169) 评论(0) 推荐(0)
摘要: Easy OpenCL with Python 原文 http://www.drdobbs.com/open-source/easy-opencl-with-python/240162614 OpenCL与python联合工作:与CUDA的前景分析http://www.opengpu.org/... 阅读全文
posted @ 2017-11-17 22:27 wangyaning 阅读(494) 评论(0) 推荐(0)
摘要: 项目主页:http://grinninglizard.com/tinyxml2docs/index.html tinyxml2.h /*Original code by Lee Thomason (www.grinninglizard.com)This software is provided... 阅读全文
posted @ 2017-11-17 22:27 wangyaning 阅读(511) 评论(0) 推荐(0)
摘要: Given a sorted linked list, delete all duplicates such that each element appear only once. For example, Given 1->1->2, return 1->2. Given 1-... 阅读全文
posted @ 2017-11-17 22:27 wangyaning 阅读(120) 评论(0) 推荐(0)
摘要: Maximum Depth of Binary Tree Total Accepted: 63668 Total Submissions: 141121 My Submissions Question Solution Given a binary tree, find it... 阅读全文
posted @ 2017-11-17 22:27 wangyaning 阅读(124) 评论(0) 推荐(0)
摘要: Reverse digits of an integer.Example1: x = 123, return 321 Example2: x = -123, return -321 click to show spoilers.Have you thought about this?... 阅读全文
posted @ 2017-11-17 22:27 wangyaning 阅读(106) 评论(0) 推荐(0)
摘要: The string “PAYPALISHIRING” is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fix... 阅读全文
posted @ 2017-11-17 22:27 wangyaning 阅读(174) 评论(0) 推荐(0)
摘要: Design a stack that supports push, pop, top, and retrieving the minimum element in constant time. • push(x) – Push element x onto stack. • p... 阅读全文
posted @ 2017-11-17 22:27 wangyaning 阅读(144) 评论(0) 推荐(0)