摘要: A palindrome is a nonempty string over some alphabet that reads the same forwardand backward. Examples of palindromes are all strings of length 1, civ 阅读全文
posted @ 2018-02-11 00:10 xsgluozi 阅读(493) 评论(0) 推荐(0) 编辑
摘要: Recently i was doing some study on algorithms. A classic problem is to find the K largest(smallest) numbers from an array. I mainly studyed two method 阅读全文
posted @ 2016-11-28 16:37 xsgluozi 阅读(396) 评论(0) 推荐(0) 编辑
摘要: Background. AOI software needs to use the OCR feature to recognize the texts on the chips. Because our vision software is based on OpenCV, so the firs 阅读全文
posted @ 2016-10-16 17:18 xsgluozi 阅读(1564) 评论(0) 推荐(0) 编辑
摘要: Matrix QR decomposition is very useful in least square fitting model. But there is no function available to do it in OpenCV directly. So i write a fun 阅读全文
posted @ 2016-10-05 17:11 xsgluozi 阅读(947) 评论(0) 推荐(0) 编辑
摘要: In OpenCv, it only provide the function fitEllipse to fit Ellipse, but doesn't provide function to fit circle, so i read some paper, and write a funct 阅读全文
posted @ 2016-09-20 15:58 xsgluozi 阅读(491) 评论(0) 推荐(0) 编辑
摘要: OpenCV has function matchTemplate to easily do the template matching. But its accuracy can only reach pixel level, to achieve subpixel accuracy, need 阅读全文
posted @ 2016-09-07 22:17 xsgluozi 阅读(2836) 评论(0) 推荐(0) 编辑
摘要: 这个转换在我们日常的编码中还是很有机会遇到的,这里贴出来和大家分享探讨。 阅读全文
posted @ 2016-05-09 17:38 xsgluozi 阅读(376) 评论(0) 推荐(0) 编辑
摘要: Here is an example code to generate transparent shape on image. Need to pay attention can not use cv::Mat mask(mat) to create the mask image, because 阅读全文
posted @ 2016-03-03 23:36 xsgluozi 阅读(239) 评论(0) 推荐(0) 编辑
摘要: Get from Stackoverflow. The details can easily understand from the below example. 阅读全文
posted @ 2016-03-02 11:09 xsgluozi 阅读(132) 评论(0) 推荐(0) 编辑
摘要: The interpolate function is used to get intensity of a point which is not on exactly a pixel. The code is written in C++. Because it is template funct 阅读全文
posted @ 2016-02-26 18:02 xsgluozi 阅读(279) 评论(0) 推荐(0) 编辑