Some of the pictures and ideas in this article are all references to the ideas of https://www.cnblogs.com/My-code-z/p/5712524.html and their own personal understanding.The principle of thinning algorithm is not difficult to understand, the use of the Matrix nine Gongge to achieve. The nine Gongge are defined and numbered into the following format. It is necessary to take a look at what the book says before explaining it:The book is still relatively concise, after all, is written by Daniel, they
Transferred from: Http://blog.csdn.net/zfdxx369/article/details/9091953?utm_source=tuicoolThis article is Zhang's classic image refinement paper, the effect is very good, the use of parallel computing, the speed is very fast;Below is the "smart vision" on the csdn of this paper program of a transformation, pro-Test available!Since OPENCV does not have its own image thinning function, the basic on-line is based on the 1.0 interface, so hands-on into th
Image refinement is an important technology in pattern recognition, it refers to simplifying the original "bloated" pixels into a single-pixel binary image (similar to the skeleton concept). The quality of refinement directly affects the efficiency of subsequent identification and matching.
From an article, the refinement is to remove some points from the origina
OPENCV algorithm for two-valued image refinement
Thinning algorithms usually have the same meaning as skeletal and skeleton algorithms, i.e. thin algorithms or skeleton algorithms. Although many image processing textbooks are not written in this way, specific reasons can be read in this paper, Louisa Lam, Seong-whan Lee, Ching Y. Suen, thinning methodologies-a, comprehensive Survey ", IEEE transactions on-pattern analysis and MACHINE INTELLIGENCE, vo
Recent research Verification Code recognition, also looked at some image recognition data, one of the font refinement to extract skeleton of the algorithm on-line without Java version of the implementation, so chose a Python implementation version of the Java code rewrite.The Python version implements the address:Http://www.cnblogs.com/xianglan/archive/2011/01/01/1923779.htmlBecause I do not understand the Python grammar, but also go directly to the v
You have a piece of code that can be organized together and independent.Say this code in a separate function, and let the function name explain the purpose of the functionExample: no local variablesvoid printowing (double amount) {Printbanner ();PrintdetailSystem.out.println ("Name:" +_name);System.out.println ("Amount:" +amount);}Post-Refactoring code:void Printowint (double amount) {Printbanner ();Printdetail (amount);}void Printdetail (double amount) {System.out.println ("Name:" +_name); Syst
"Programming thinking" from top to bottom gradually refinement
process-oriented programming idea: from top to bottom gradually refinement
start with the process of program execution, refine the complete process into multiple child processes, and then refine the child process until the code is complete.
Let's look at a program requirement:
Verification Goldbach conjecture : any even number greater than
parent class to be extended without modification. Open closedNo matter how "closed" the module is, there will be some changes that cannot be closed to it. Since it is not possible to completely close, designers must first guess the most likely changes and then construct abstractions to isolate those changes.The open closure principle is the focus of object-oriented design. Developers should abstract only those parts of the program that exhibit frequent changes.DefinedIn the face of updates to t
balanced.Architecture design a solution to complex problems, so the idea of "divide and conquer" must not be less, at this stage, often use a multi-view approach to display architectural ideas, characterized by: to facilitate thinking (divide and conquer), easy to communicate (separation of concerns). The rup4+1 view is widely accepted, but the important thing here is that the thought (each thinking angle, a view) does not have to provide the specified 4+1 view (logical view, deployment view, p
1. Refining method
For a large method, you can use Extract method to refine part of its code into a small method and add a call to the extraction method in place. If there is a duplicate code snippet in the method, the code snippet has to be refined into a separate method for reuse.
To refine a piece of code into a single method, you only need to select this piece of code and use the Ctrl+shift+r->extract method to call up the refactoring dialog for the re
"Design pattern Refinement" Learning notes (15) ------FactoryMethod (Factory method) mode
GOF : defines a class that is used to create an object interface, so that subclasses decide which classes to instantiate. FactoryMethod delays the instantiation of a class to its subclasses.
The FactoryMethod pattern should be studied in conjunction with the abstract factory model, in order to follow the sequence of the book "Design Pattern
the same time, began to use the Himalaya app, found the "Time Management 100 Talk" program, when you think of it opened to listen to. Also suggest in self-management, time management want to ascend, want to develop good habit of classmate can go to Himalaya listen to.In addition to these, I also fragmented read (or listen) to some other articles (or lectures) on self-management aspects encountered. In the Himalaya "Lo You Overlord Class" listened to two is very good, the title is "Wang Xingquan
Sub-graph isomorphism algorithm Ullmann as early as 1976, we are interested to search the original text to see. Here I will briefly explain.Given two graphs Q and G, their corresponding matrices are respectively and. Our goal is to find the matrix.Algorithm steps:Step1. Setup Matrix MNXM, such that m[i][j]=1, if 1) the i-th vertex in Q hasthe same label as the j-th vertex in G; and 2) The i-th vertex have Smallervertex degree than the j-th vertex in G.STEP2.MATRIXESM is generated by systematical
"Design pattern Refinement" Learning notes (16)
------
SummaryHere "the design pattern fine solution" basically is finished, later several chapters the author did not introduce other models, but summarized some uses the mode the method and the attention matter, and has made the summary to the book. Unfortunately, the author did not complete the 23 design patterns summarized by GOF. But the author's contribution in this book is to guide the reader on
Topic Link: Click to open the linkTest instructions: A two-dimensional planar w operation for a given n*m1, 0 (x1,y1) (x2,y2) valueFor i:x1 to X2For J:y1 to Y2MP[I][J] + = value;2, 1 (x1, y1) (x2 y2)ANS1 = total number of ordinate between y1,y2ANS2 = The total number of horizontal axis not x1,x2 betweenPuts (ANS1-ANS2);Because the n maximum is 4e6, the segment is replaced by a tree-shaped array to replace segment tree#include Copyright NOTICE: This article for Bo Master original article, withou
Write your own LINUX Study Notes [the second modification] -- refinement -- Linux general technology-Linux technology and application information. The following is a detailed description. Debian linux
At first, I understood that linux is Red Head. At the beginning, I was just using Red Head. I didn't expect that there were so many linux releases. I tried to study Debian in March this year. Now the course is over, I want to write something to help beg
functional programming concept. But not the more threads open the faster the program processing, this and the actual number of processors and the thread context switching frequency is very much related, these cases Baidu Google know, do not elaborate, basically the best number of threads is probably the number of idle processors.One idea here is that the thread pool is thread pool. That is, after the thread is created, it is not destroyed because it is finished, it is put into a pool waiting fo
triangle when the top edge becomes 0, I think you have the answer, if you set the content height and width are 0 o'clock, we can get four triangles:#content { width: 0px; height: 0px; border-top: 80px solid #0F0; border-right: 80px solid #09C; border-bottom: 80px solid #9F9; border-left: 80px solid #FC3;}We can of course also implement one or 2 or 3 triangles for transparent by setting the background of the other side's border.#content { width: 0px; height: 0px;
the head of the device chain list. It is a linked list, and if there are multiple devices, use Device_object. Nextdevice to Traverse (ZC: specifically to use the device name or something else (attributes) to match, he didn't say ... There is no need to match, ∵ is in the download driver, so the driver object below all the device object/symbol links are deleted, directly all of the deleted can be removed.∵ We only create a device here, so we do not need to traverse the search, directly delete th
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.