自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(69)
  • 资源 (14)
  • 收藏
  • 关注

原创 cocos2dx+KinectV2 体感游戏之微信打飞机

Cocos2dx微信打飞机体感游戏演示视频地址:点击打开链接 (注 : 视频中两次使用炸弹,没有很好的感应,因为阈值设定有点问题,已改)游戏的源码也上传到了 csdn 50下载积分 , 但同时也上传到了Github,来个star吧,免费下载:https://github.com/tanlichun211/SomaticGame-WeChat_PlanWars1.打飞机添加结束层   √2.道具双排...

2018-04-20 09:35:09 2456 17

原创 VS2013+PCL1.8.0+Opencv2.4.9+Kinect V2 点云的获取与显示

一、PCL 1.8.0 相关文件下载:       先到百度网盘下载安装和配置文件,开始成功配置了X64的,后来为了和自己32位的opencv匹配,改为了win32版本的;属性表和相应的pdb.rar都下载下来。 https://pan.baidu.com/s/1Z2IGOAmizWfDa9Wt1mE9Gg 二、点击 PCL-1.8.0-AllInOne-msvc2013-win3...

2018-11-13 14:41:03 1692 7

原创 面试指南-公共字符串求值 (c++)

【题目】  给定一个字符串str,str表示一个公式,公式里可能有整数,加减乘除符号和左右括号,返回公式计算的结果。例如,str = 48×((70-65)-43)+8×1。返回-1816。【说明】可以认定给定的字符串一定是正确的公式,不需要对str做公式有效性检查。如果是负数就需要有括号括起来,比如4*(-3)。但如果负数作为公式的开头或者括号部分的开头,则可以没有括号,比如-3*4和(-3*4...

2018-07-07 21:54:16 432

原创 116. Populating Next Right Pointers in Each Node

Given a binary treestruct TreeLinkNode { TreeLinkNode *left; TreeLinkNode *right; TreeLinkNode *next;}Populate each next pointer to point to its next right node. If there is no next right node...

2018-06-26 15:37:18 167

转载 115. Distinct Subsequences

转自 :  https://blog.csdn.net/feliciafay/article/details/42959119Given a string S and a string T, count the number of distinct subsequences of S which equals T.A subsequence of a string is a new string ...

2018-06-26 15:03:39 174

原创 102. Binary Tree Level Order Traversal

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,9,20,null,null,15,7], 3 / \ 9 20 / \...

2018-06-13 15:10:01 109

转载 97. Interleaving String

Given s1, s2, s3, find whether s3 is formed by the interleaving of s1 and s2.Example 1:Input: s1 = "aabcc", s2 = "dbbca", s3 = "aadbbcbcac"Output: trueExample 2:Input: s1 = "aabcc", s2 = "dbbca", s3...

2018-06-07 10:24:39 147

原创 94. Binary Tree Inorder Traversal

Given a binary tree, return the inorder traversal of its nodes' values.Example:Input: [1,null,2,3] 1 \ 2 / 3Output: [1,3,2]Follow up: Recursive solution is trivial, could you do i...

2018-05-28 16:18:26 112

原创 92. Reverse Linked List II

Reverse a linked list from position m to n. Do it in one-pass.Note: 1 ≤ m ≤ n ≤ length of list.Example:Input: 1->2->3->4->5->NULL, m = 2, n = 4Output: 1->4->3->2->5->NUL...

2018-05-24 15:45:03 95

原创 206. Reverse Linked List

Reverse a singly linked list.Example:Input: 1->2->3->4->5->NULLOutput: 5->4->3->2->1->NULLFollow up:A linked list can be reversed either iteratively or recursively. Cou...

2018-05-24 15:03:57 79

原创 90. Subsets II

Given a collection of integers that might contain duplicates, nums, return all possible subsets (the power set).Note: The solution set must not contain duplicate subsets.Example:Input: [1,2,2]Output:...

2018-05-18 14:07:11 219

原创 85. Maximal Rectangle

Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing only 1's and return its area.Example:Input:[ ["1","0","1","0","0"], ["1","0","1",&q

2018-05-11 14:55:35 122

原创 82. Remove Duplicates from Sorted List II

Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list.Example 1:Input: 1->2->3->3->4->4->5Output: 1->2-&g...

2018-04-22 20:08:19 101

原创 83. Remove Duplicates from Sorted List

Given a sorted linked list, delete all duplicates such that each element appear only once.Example 1:Input: 1->1->2Output: 1->2Example 2:Input: 1->1->2->3->3Output: 1->2->...

2018-04-22 10:32:36 116

转载 81. Search in Rotated Sorted Array II

Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand.(i.e., [0,0,1,2,2,5,6] might become [2,5,6,0,0,1,2]).You are given a target value to search. If found in t...

2018-04-20 21:09:50 257

原创 80. Remove Duplicates from Sorted Array II

Given a sorted array nums, remove the duplicates in-place such that duplicates appeared at most twice and return the new length.Do not allocate extra space for another array, you must do this by modif...

2018-04-20 16:22:11 102

原创 79. Word Search

Given a 2D board and a word, find if the word exists in the grid.The word can be constructed from letters of sequentially adjacent cell, where "adjacent" cells are those horizontally or vertically nei...

2018-04-20 15:19:26 105 1

原创 78. Subsets

Given a set of distinct integers, nums, return all possible subsets (the power set).Note: The solution set must not contain duplicate subsets.Example:Input: nums = [1,2,3]Output:[ [3],  [1],  [2...

2018-04-20 11:12:24 99

原创 77. Combinations

Given two integers n and k, return all possible combinations of k numbers out of 1 ... n.Example:Input: n = 4, k = 2Output:[ [2,4], [3,4], [2,3], [1,2], [1,3], [1,4],]class Solution {...

2018-04-20 09:26:25 100

转载 76. Minimum Window Substring

Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n).Example:Input: S = "ADOBECODEBANC", T = "ABC"Output: "BANC"Note:If there i...

2018-04-19 14:27:14 107

转载 75. Sort Colors

Given an array with n objects colored red, white or blue, sort them in-place so that objects of the same color are adjacent, with the colors in the order red, white and blue.Here, we will use the inte...

2018-04-18 21:43:21 108

原创 74. Search a 2D Matrix

Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties:Integers in each row are sorted from left to right.The first integer of each row is ...

2018-04-18 21:11:09 83

原创 72. Edit Distance

Given two words word1 and word2, find the minimum number of operations required to convert word1 to word2.You have the following 3 operations permitted on a word:Insert a characterDelete a characterRe...

2018-04-18 16:35:38 74

原创 67. Add Binary

Given two binary strings, return their sum (also a binary string).For example,a = "11"b = "1"Return "100".class Solution {public: string addBinary(string a, string b) { swap( a, b); int lenA = ...

2018-04-16 16:20:47 92

原创 66. Plus One

Given a non-negative integer represented as a non-empty array of digits, plus one to the integer.You may assume the integer do not contain any leading zero, except the number 0 itself.The digits are s...

2018-04-16 10:06:49 80

原创 64. Minimum Path Sum

Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path.Note: You can only move either down or right at any...

2018-04-13 16:25:39 71

原创 63. Unique Paths II

Follow up for "Unique Paths":Now consider if some obstacles are added to the grids. How many unique paths would there be?An obstacle and empty space is marked as 1 and 0 respectively in the grid.For e...

2018-04-13 09:59:48 79

原创 62. Unique Paths

A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below).The robot can only move either down or right at any point in time. The robot is trying to reach the bott...

2018-04-13 09:33:21 88

原创 59. Spiral Matrix II

Given an integer n, generate a square matrix filled with elements from 1 to n2 in spiral order.For example,Given n = 3,You should return the following matrix:[ [ 1, 2, 3 ], [ 8, 9, 4 ], [ 7, 6, 5 ]...

2018-04-11 15:44:51 73

原创 58. Length of Last Word

Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string.If the last word does not exist, return 0.Note: A word is defined a...

2018-04-11 15:21:10 69

原创 54. Spiral Matrix

Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order.For example,Given the following matrix:[ [ 1, 2, 3 ], [ 4, 5, 6 ], [ 7, 8, 9 ]]You should r...

2018-04-08 10:09:59 75

转载 47. Permutations II

Given a collection of numbers that might contain duplicates, return all possible unique permutations.For example,[1,1,2] have the following unique permutations:[ [1,1,2], [1,2,1], [2,1,1]]转自 : ...

2018-03-25 20:44:43 95

原创 46. Permutations

Given a collection of distinct numbers, return all possible permutations.For example,[1,2,3] have the following permutations:[ [1,2,3], [1,3,2], [2,1,3], [2,3,1], [3,1,2], [3,2,1]]class ...

2018-03-25 20:00:17 78

转载 44. Wildcard Matching

Implement wildcard pattern matching with support for '?' and '*'.'?' Matches any single character.'*' Matches any sequence of characters (including the empty sequence).The matching should cover the...

2018-03-25 16:56:33 75

转载 42. Trapping Rain Water

Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining.For example, Given [0,1,0,2,1,0,1,3,2,1,2,1], retu...

2018-03-19 14:57:11 99

原创 35. Search Insert Position

Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order.You may assume no duplicates in the array.

2018-01-25 15:31:25 98

转载 34. Search for a Range

Given an array of integers sorted in ascending order, find the starting and ending position of a given target value.Your algorithm's runtime complexity must be in the order of O(log n).If the

2018-01-23 14:53:22 119

原创 32. Longest Valid Parentheses

我不会!!!!!!就是不会!! 暴力搜索超时:超时代码class Solution {public: int longestValidParentheses(string s) { return findLong(s); }private: int findLong(string s){ int subLen = s.length(); if (IsPar

2018-01-18 16:31:53 161

转载 31. Next Permutation

Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers.If such arrangement is not possible, it must rearrange it as the lowest possible ord

2018-01-18 09:33:02 138

转载 30. Substring with Concatenation of All Words

You are given a string, s, and a list of words, words, that are all of the same length. Find all starting indices of substring(s) in s that is a concatenation of each word in words exactly once and

2018-01-16 20:37:30 127

结合PCL1.8 与Kinect V 2.0获取空间中深度与彩色信息,并保存为点云PCD数据

之前有个写了 1.7和kinectv2版本的,下载完以后好想把作者打一顿; 这个把它的改了,能正常工作,里面有运行效果截图,opencv kinect pcl 的配置我博客里都有教程,后面这句话就借用那个家伙的吧:本程序获取场景中的深度图像和彩色图像,并将二者转换保存为PCL数据库所使用的PCD点云数据格式,然后再将PCD数据保存在电脑内存中,希望对你有帮助!

2019-03-19

两台大恒相机同时保存图像的MFC小程序

双目标定实验中,需要同时采集左右两相机图像,本文用于两台大恒相机同时保存图像,同时前缀自动命名left、right; 不过需要配置opencv 和大恒相机。 能在vs2013 x64环境下同时采集。

2019-03-16

现代操作系统第三版(中文)高清pdf

现代操作系统第三版高清.PDF; 不是影印的,大小是84.3M,比其他博主提供的27M的还是要清楚一些的!!!

2018-06-14

MFC 以太网通讯之UDP (CAsyncSocket)

以太网UDP通信 , 包含两个vs2013编写的MFC程序 , 一个Server 负责发 , 一个 Client 负责收 。CAsyncSocket 异步非阻塞Socket封装类 , 可以百度: MFC网络编程之UDP ; 那里有教如何实现 , 但不太全 ; 我这里把它实现了一边 , 方便大家下载

2017-12-07

体感游戏之微信打飞机(Kinect V2)

自己实现的kinect v2 的体感游戏打飞机游戏 , 所以分比较高,请见谅

2017-12-02

Kinect测量论文收集(含kinect应用开发实战全书)

包含kinect实现测量的相关论文;1.基于Kinect的机械臂目标抓取-韩峥--.pdf 2.基于Kinect的人体三维重建与尺寸测量_朱江涛--.caj 3.基于Kinect的三维点云数据处理_陈聪梅.caj 4.基于Kinect的三维人体建模与测量的研究_宋诗超.caj 5.基于Kinect的虚拟试衣系统的设计与实现_胡焰.caj 6.基于Kinect的运动目标跟踪与三维测量_谭艳.pdf 7.基于Kinect深度传感器的三维重建技术应用研究_叶日藏.caj 8.面向KinectRGB_D图像的目标尺寸测量方法_赵超--.pdf 9 融合RGB特征和Depth特征的3D目标识别方法.pdf 10.融合RGB特征和Depth特征的3D目标识别方法.pdf 11.kinect应用开发实战(全书).pdf

2017-12-02

MFC串口通信程序,ModBus RTU协议

vs2013编写的MFC串口通信程序,支持modbus协议,如遇到C4996警告,请右击工程 - 属性 - 配置属性 - C/C++ - 命令行 命令行增加 /D _CRT_SECURE_NO_WARNINGS 可发送和接送串口数据,zip内含一个串口大师调试工具,本人已用其实现获取一个漫反射光电开关经过开关采集模块和485转usb模块,转换到电脑串口信号; 如有其它问题,请留言咨询!

2017-11-30

C语言 多线程查找用户账户密码(内附大数据)

多线程查找用户账户密码,将找出来的数据保存在res.txt中,可以通过此来学习多线程,需要用360解压缩

2017-11-29

KinectV2 彩色图像上融合人体骨骼图

vs2013平台下 KinectV2 显示彩色图像 , 同时将人体骨骼画到对应的彩色图像上

2017-11-29

MFC打开大恒相机

亲测可行;VS2013打开大恒相机,有开始采集和停止采集,打开设备和关闭设备四个控制按钮,获取的相机图像源通过Opencv 显示到mfc的界面上,方便对接下来的获取的图片再进行下一步处理;注意事项:1. 请先安装大恒相机的驱动,需X64位平台下运行,VS配置vc++目录->库目录 需加上GxIAPI 和 DxImageProc;链接器输入附加依赖项需加上GxIAPI.lib; 当然opencv也要配置, 如有其它问题 , 请留言联系

2017-11-29

cocos2d-x-2.26 象棋游戏网络对战版

请先安装cocos2dx和visual studio , 然后将本文件放置在C:\cocos2d-x-2.2.6\projects 下,运行即可,可以改一下双方的IP地址设置那部分;if (Net::Connect("192.168.1.117")) //改为自己的IP地址 ; else if (Net::Connect("192.168.1.108")) //改成另一方的IP地址 ;;; 另一台电脑上Ip地址设置相反 ;;; 然后就可以和女朋友下没有广告的电子象棋了;; nice!

2017-11-29

KinectV2 实现鼠标控制(VS2013 C++版)

这里提供一个kinectV2控制鼠标的C++版本程序,同时包含Chengaotan版本的C#程序供参考,Kinect 自身可实现三种手势的识别,拳头,剪刀,和布,从而可控制鼠标做不同的事情;本人已将其运用到体感游戏打飞机上,效果不错,附上打飞机体感游戏博客地址:http://blog.csdn.net/qq_34609108/article/details/78082849

2017-10-25

MFC Opencv显示图片,图片类型为Mat

MFC OpenCV 显示图像,VS2013 写的,不用添加CvvImage类,用的是VS2013 + OPENCV2.4.9 , 其他版本类似,界面能显示打开图片的路径,同时有灰度直方图均衡化和中值滤波的代码,网上其他程序要不是用vc6.0写,太老了,有的还要加已经被淘汰的CVVimage类。

2017-10-24

MFC下利用OPENCV添加显示图片

MFC OpenCV 显示图像,VS2013 写的,比较新,添加CvvImage类来显示程序,我用的是VS2013 + OPENCV2.4.9 , 只要版本不太老,估计都可以的。

2017-10-24

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除