关闭

Farneback 光流算法详解与 calcOpticalFlowFarneback 源码分析

光流基础概念真实的三维空间中,描述物体运动状态的物理概念是运动场。三维空间中的每一个点,经过某段时间的运动之后会到达一个新的位置,而这个位移过程可以用运动场来描述。而在计算机视觉的空间中,计算机所接收到的信号往往是二维图片信息。由于缺少了一个维度的信息,所以其不再适用以运动场描述。光流场(optical flow)就是用于描述三维空间中的运动物体表现到二维图像中,所反映出的像素点的运动向量场。 当描...
阅读(2533) 评论(2)

MXNet 中文教程:图像分类

本人对于 MXNet 官方文档的翻译页面: https://github.com/ironyoung/mxnet/blob/master/docs/tutorials/computer_vision/image_classification.md图像分类这个教程中,我们将标签分配给某张图片,同时得到标签符合程度的评分高低。下列图片 (source) 展示了一个例子:https://raw.gith...
阅读(1730) 评论(0)

【百度校招2016】蘑菇阵

百度2016年校招编程题:蘑菇阵...
阅读(666) 评论(0)

Win10+VS2013+CUDA7.5 Caffe 配置过程

Win10+VS2013+CUDA7.5 Caffe 配置过程...
阅读(4835) 评论(0)

【LeetCode从零单刷】Bulb Switcher

题目: There are n bulbs that are initially off. You first turn on all the bulbs. Then, you turn off every second bulb. On the third round, you toggle every third bulb (turning on if it's off or turni...
阅读(7945) 评论(0)

【LeetCode从零单刷】Convert Sorted List to Binary Search Tree

题目: Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST. 解答: 将一段有序序列转换为平衡二叉树,重要是递归。即中点作为根节点,小于部分作为左子树递归,大于部分作为右子树递归。 这里的单链表给 “找中点” 造成了难题,...
阅读(642) 评论(0)

【LeetCode从零单刷】Reverse Bits

题目: Reverse bits of a given 32 bits unsigned integer. For example, given input 43261596 (represented in binary as 00000010100101000001111010011100), return 964176192 (represented in binary as 001...
阅读(1150) 评论(0)

【LeetCode从零单刷】Merge Sorted Array

题目: Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array. Note: You may assume that nums1 has enough space (size that is greater or equal to m + n) to hol...
阅读(970) 评论(1)

【LeetCode从零单刷】Kth Largest Element in an Array

题目: Find the kth largest element in an unsorted array. Note that it is the kth largest element in the sorted order, not the kth distinct element. For example, Given [3,2,1,5,6,4] and k = 2, retur...
阅读(1052) 评论(1)

【LeetCode从零单刷】Minimum Depth of Binary Tree

题目: Given a binary tree, find its minimum depth. The minimum depth is the number of nodes along the shortest path from the root node down to the nearest leaf node. 解答: 非常无聊的一题。需要注意的是:叶子节点是自身不为 N...
阅读(1012) 评论(1)

【LeetCode从零单刷】Perfect Squares

题目: Given a positive integer n, find the least number of perfect square numbers (for example, 1, 4, 9, 16, ...) which sum to n. For example, given n = 12, return 3 because 12 = 4 + 4 + 4; given ...
阅读(1306) 评论(2)

C/C++ 实现 atoi 函数

将一段字符串转换为整数数字,最基本的方法就是使用 atoi 函数。如果让我们自己实现一段 atoi 函数,需要注意的细节比较多。原始版本首先想到的就是字符类型之间的差值。可以直接使用字符相减得到差值。 int myAtoi(char* pstr) { int ans = pstr[0] - '0'; return ans; }看起来好像很简单,但是答案就是这样么?...
阅读(1364) 评论(0)

【LeetCode从零单刷】Different Ways to Add Parentheses

题目: Given a string of numbers and operators, return all possible results from computing all the different possible ways to group numbers and operators. The valid operators are +, - and *. Example...
阅读(539) 评论(0)

【LeetCode从零单刷】Intersection of Two Linked Lists

题目: 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: a1 → a2 ↘...
阅读(1048) 评论(0)

【LeetCode从零单刷】Factorial Trailing Zeroes

题目: Given an integer n, return the number of trailing zeroes in n!. Note: Your solution should be in logarithmic time complexity. 解答: n 的阶乘末尾有多少个 0?其实也就是询问结果是10的多少倍数。10 = 2 * 5,因此对每个乘数进行因式分解就好。 ...
阅读(535) 评论(0)

【LeetCode从零单刷】Longest Increasing Subsequence

题目: Given an unsorted array of integers, find the length of longest increasing subsequence. For example, Given [10, 9, 2, 5, 3, 7, 101, 18], The longest increasing subsequence is [2, 3, 7, 101], ...
阅读(2423) 评论(0)

【LeetCode从零单刷】Longest Consecutive Sequence

题目: Given an unsorted array of integers, find the length of the longest consecutive elements sequence. For example, Given [100, 4, 200, 1, 3, 2], The longest consecutive elements sequence is [1,...
阅读(998) 评论(0)

【LeetCode从零单刷】Search in Rotated Sorted Array I & II

I 题目: Suppose a sorted array is rotated at some pivot unknown to you beforehand. (i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 1 2). You are given a target value to search. If found in the array re...
阅读(1142) 评论(0)

【LeetCode从零单刷】Game of Life

题目: According to the Wikipedia's article: "The Game of Life, also known simply as Life, is a cellular automaton devised by the British mathematician John Horton Conway in 1970." Given a board w...
阅读(767) 评论(0)

【LeetCode从零单刷】Remove Duplicates from Sorted Array I & II

I 题目: Given a sorted array, remove the duplicates in place such that each element appear onlyonce and return the new length. Do not allocate extra space for another array, you must do this in plac...
阅读(1130) 评论(0)
116条 共6页1 2 3 4 5 ... 下一页 尾页
    新浪微博
    个人资料
    • 访问:170807次
    • 积分:2967
    • 等级:
    • 排名:第13085名
    • 原创:110篇
    • 转载:6篇
    • 译文:0篇
    • 评论:52条
    博客专栏
    文章分类
    最新评论