OpenCV - Getting Started
OpenCV is a library of programming functions mainly aimed at real-time computer vision. Originally developed by Intel, it was later supported by Willow Garage then Itseez. The library is cross-platform and free for use under the open-source BSD license.
Jupyter Notebook - Shortcuts
The Jupyter Notebook is an open-source web application that allows you to create and share documents that contain live code, equations, visualizations and narrative text. Uses include data cleaning and transformation, numerical simulation, statistical modeling, data visualization, machine learning, and much more.
Singleton Pattern
In software engineering, a software design pattern is a general, reusable solution to a commonly occurring problem within a given context in software design. It is not a finished design that can be transformed directly into source or machine code.
Algorithms - Sorting
In computer science, a sorting algorithm is an algorithm that puts elements of a list in a certain order. The most frequently used orders are numerical order and lexicographical order. Efficient sorting is important for optimizing the efficiency of other algorithms that require input data to be in sorted lists.
C++ Vector 教學
pointers 和 arrays 對於某些低階任務可能有存在的必要,但我們應該盡量避免使用它們,因為他們容易出錯又很難除錯。一般而言應該優先使用程式庫提供的抽象事物而非語言內建的 array 和 pointer,這一忠告在「多用strings,少用C-Style 字串(亦即以null結尾之字元array)」這件事上尤其合適。
C++ Struct 教學
C++中的 struct 和 class 基本是通用的,使用 class 時,類中的成員默認都是 private 屬性的;而使用 struct 時,結構體中的成員默認都是 public 屬性的。class 繼承默認是 private 繼承,而 struct 繼承默認是 public 繼承。class 可以使用Template(模板),而 struct 不能。
C++ Friend 和 This 教學
我們不能從該Class的外部access該Class的private members。但是,如果將non member function聲明為class的`friend`,我們就可以使其access該class的private member。 這是通過在Class中包含此外部function的聲明並在其前面加上關鍵字`friend`來實現的。C++中的每個Object都可以通過稱為`this` pointer來訪問其自己的address(地址)。在member function中,`this`指 refer to the invoking object。
C++ Template 教學
Template functions只需要編寫一次,並且可以使用不同的類型,因此可以節省大量時間,大大減少重複代碼,更減少了代碼維護。使用Template functions的另一個優勢是增強了安全性,因為它不需要手動複製function和更改data type。
創業和編程 - 名人名言
擁有追隨自己內心與直覺的勇氣——你的內心與直覺多少已經知道你真正想要成為什麽樣的人Have the courage to follow your heart and intuition. They somehow already know what you truly want to become.——史蒂夫.喬布斯
C++ Constructor後面的":"是什麼鬼意思? (Initialization List 教學)
Initializer List用於初始化Class的Data member。 Constructor(構造函數)將要初始化的member list放在冒號後面(以逗號分隔)。