This article is about the functional definitions for AVL-Tree and Red-Black-Tree. I code it in scala and the code can be found here.
Programming is a process of decision making. There are many ways to get things work, but most of them are bad ways. The code of coding helps to define good from bad. This is a draft of ZJUCVG C++ style guide.
For image editing, there are many reasons to reconstruct some missing contents from an image, to repair deterioration, remove undesirable objects etc. Exemplar-base algorithms use pixels from the same image to fill missing areas and achieved the state of art results. This post breifly reviews the history of exemplar-based methods, and ends up with a TPAMI'14 paper.
This post explained the details of function filter in his lib, which provides a convenient interface to define linear, non-linear, and even non-numerical filters.
This post describes the idea of my image iteration methods. Which relief a lot of work when doing image processing. The code was hosted here.
用C++模板实现的The语义。比如The 从泡泡到太阳，为什么球无处不在？一段绳子圈一块地，为什么圆最大？ 求一个二进制数内1出现的次数，经常被用来考人。除了最经典的减一与运算的方法，还可以利用位间的并行性，以及更加诡异的方法。