摘要: 项目需要看了种子填充算法,改进了算法主要去除面积小的部分。种子填充算法分为两种,简单的和基于扫描线的方法,简单的算法如下描述(笔者针对的是二值图像):(1)从上到下,从左到有,依次扫描每个像素;(2)遇到一个非零数值压栈,并置原图像像素点值为0,面积初始化为1;否则,处理完毕。(3)对栈非空查找,如... 阅读全文
posted @ 2014-09-15 10:43 zCoderJoy 阅读(13510) 评论(0) 推荐(1) 编辑
摘要: 笔者实现了一个论文里面的算法程序,论文(可以网上搜索到,实在搜不到可以联系笔者或留下邮箱发给你)讲解比较到位,按照作者的思路写完了代码,测试效果很好,在此分享一下算法思路及实现代码。 此算法优于一般的像素标记算法,只需扫描一遍就可以得出图像边界、面积等等,大大减少了计算量。算法描述: 一、全... 阅读全文
posted @ 2014-08-19 12:15 zCoderJoy 阅读(2550) 评论(4) 推荐(1) 编辑
摘要: 这几天一直在弄动态库测试,h给的写好的动态库--预处理模块的库。视频处理项目一部分,需要连接实际情况测试。需求: 1.把实际相机连接到,并读取实时数据流,保存到双循环链表里面; 2.测试背景建模的功能效果; 3.预处理四个数据(图像)显示结果; 4.测试实时处理多摄像头效果显示。 前几... 阅读全文
posted @ 2014-08-16 11:41 zCoderJoy 阅读(1028) 评论(1) 推荐(2) 编辑
摘要: 之前做过摄像机标定的研究,不过现在忘了好多,昨天下午又捡起来,好好复习一下(主要是学习opencv一书内容)。摄像机标定基本知识:摄像机标定误差包括内参(4个)、畸变参数(径向和切向共5个)、外参(平移和旋转共6个)。误差参数分析:摄像机模型采用针孔模型成像模型,由于中心轴安装问题,这就造成了精度误... 阅读全文
posted @ 2014-08-06 14:54 zCoderJoy 阅读(34640) 评论(10) 推荐(3) 编辑
摘要: Algorithms: https://leetcode-cn.com/problems/min-stack/submissions// Review: https://www.infoq.cn/article/why-do-we-need-webrtc Tips: android handler。 阅读全文
posted @ 2019-08-25 23:08 zCoderJoy 阅读(148) 评论(0) 推荐(0) 编辑
摘要: Algorithms: https://leetcode-cn.com/problems/single-number/submissions/ Review: “What Makes a Good Developer?” by Jonathan Bluks https://link.medium.c 阅读全文
posted @ 2019-08-18 22:11 zCoderJoy 阅读(103) 评论(0) 推荐(0) 编辑
摘要: Algorithms: https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock/ Review: “How to write a good software design doc” by Angela Zhang https: 阅读全文
posted @ 2019-08-11 22:09 zCoderJoy 阅读(116) 评论(0) 推荐(0) 编辑
摘要: Algorithms: https://leetcode-cn.com/problems/longest-continuous-increasing-subsequence/ 最长连续子序列。 Review: “Learn to code (or do anything): top down, bo 阅读全文
posted @ 2019-08-04 23:01 zCoderJoy 阅读(108) 评论(0) 推荐(0) 编辑
摘要: Algorithms: https://leetcode-cn.com/problems/balanced-binary-tree/ 平衡二叉树。 Review: “What I Learned in My First Two Years as a Software Engineer” by Mit 阅读全文
posted @ 2019-07-28 22:21 zCoderJoy 阅读(100) 评论(0) 推荐(0) 编辑
摘要: Algorithms: https://leetcode-cn.com/problems/linked-list-cycle/ 链表环。 Review: “What I learned from doing 1000 code reviews” by Steven Heidel https://me 阅读全文
posted @ 2019-07-21 23:14 zCoderJoy 阅读(161) 评论(0) 推荐(0) 编辑
摘要: Algorithms: https://leetcode-cn.com/problems/next-greater-node-in-linked-list/ 链表中下一个更大的值,双层循环及优化,后面看可以栈处理,学习了 Review: “Can You Avoid Functional Progr 阅读全文
posted @ 2019-07-14 22:25 zCoderJoy 阅读(351) 评论(0) 推荐(0) 编辑
摘要: Algorithms: https://leetcode-cn.com/problems/merge-two-sorted-lists/submissions/ 合并两个链表 Review: “Putting comments in code: the good, the bad, and the 阅读全文
posted @ 2019-07-07 22:28 zCoderJoy 阅读(228) 评论(0) 推荐(0) 编辑
摘要: Algorithms: https://leetcode-cn.com/problems/repeated-substring-pattern/ 重复子字符串 Review: “I’m Leaving Google — and Here’s the Real Deal Behind Google C 阅读全文
posted @ 2019-06-30 23:24 zCoderJoy 阅读(126) 评论(0) 推荐(0) 编辑
摘要: Algorithms: https://leetcode-cn.com/problems/longest-common-prefix/ Review: https://link.medium.com/NUjceV9oJX The Art of Computer Programming’ by Don 阅读全文
posted @ 2019-06-23 22:31 zCoderJoy 阅读(134) 评论(0) 推荐(0) 编辑