YIFEI ZHOU
-
Object Shape Detection - Part 7: Design Patterns (Singleton Pattern)
4.1.4 Singleton Pattern Another creational design pattern is called the singleton pattern. Sometimes, one object needs to coordinate across the whole system, and the system aims to perform more efficiently using this only one object (Gamma 1994). Figure 4.1.11 illustrates the basic structure of this pattern. Figure 4.1.11 In this...
-
Object Shape Detection - Part 9: Finding Center of Contours
4.2.2 Center Finding When all of the contours were found, the next step is to calculate the center point or particle of a contour. Moment is tool to describe the feature of image which has been used in several areas of computing, such as Image recognition, feature matching, image rebuilding...
-
Object Shape Detection - Part 5: Design Patterns (Factory Pattern)
4.1.2 Factory Pattern The Factory pattern is a kind of creational pattern. The key intent of this pattern is to create or instantiate an object using a responding creational method instead of specifying the exact class of this object. In other words, a class can defer instantiation to subclasses (Gamma...
-
Object Shape Detection - Part 11: Shape Detection (Triangle)
4.3 Shape Detection Algorithms When I finished all of those preprocess procedures, the most significant part is to introduce the implementation of algorithm of each shape detection. In this section, Iwould introduce some basic techniques about how to detect different types of shapes. 4.3.1 Triangle As we all knew, triangle...