A useful tutorial that help you understand about Interpreter Pattern. 008 Interpreter Pattern Another useful stuff about Interpreter Pattern, but the speaker hadn`t used C# for implementation. The Interpreter Pattern Revisited

me1237guy 發表在 痞客邦 留言(0) 人氣()

image
What is flyweight pattern? 1. Used when you need to create a large number  of similar objects 2. To reduce memory usage you share objects that are similar in some way rather than creating new ones Now we are going to create a lot of rectangles with specific Intrinsic State: Color <---- which all of the rectangle objects are going to share in order to get the

me1237guy 發表在 痞客邦 留言(0) 人氣()

image
Create a logger Pass a message with level = debug and log it Pass a message with level = info and log it Pass a message with level = error and log it Here debug < info < error … level wis

me1237guy 發表在 痞客邦 留言(0) 人氣()

image
  Today I am going to show you another way to implement the example demonstrated in the last episode about command pattern. Here is the UML diagram for command pattern and it will be implemented as usual in C#. This time Command block is about to become an abstract class, and LightOnCommand is one of its concrete commands.

me1237guy 發表在 痞客邦 留言(0) 人氣()

image
http://felix.abecassis.me/category/opencv/ References: 1. Barcode Reading with Open CV

me1237guy 發表在 痞客邦 留言(0) 人氣()

image
The following is an example[1] of image blending, which seamlessly combines two different images by using the mask of itself. About half a year ago, I studied something about how to mange multiple ROIs(region of interest) as shown below. Today I am planing to combine both of them in order to meet my new requirements.

me1237guy 發表在 痞客邦 留言(0) 人氣()

image
 1: interface IWeapon
 2: {
 3: void Use();
 4: }

me1237guy 發表在 痞客邦 留言(0) 人氣()

image
  GateState interface:

me1237guy 發表在 痞客邦 留言(0) 人氣()

image
A. Iterator:
 1: interface Iterator
 2: {
 3: object First();
 4: object Next();
 5: bool IsDone();
 6: object CurrentItem();
 7: }

me1237guy 發表在 痞客邦 留言(0) 人氣()

image
This tutorial is about composite pattern, which is my thoghts after watching the tutorial created by Christopher Okhravi.    

me1237guy 發表在 痞客邦 留言(0) 人氣()

image
ImageProcessor portion:
 1: namespace TemplateMethodConsole
 2: {
 3: abstract class ImageProcessor
 4: {
 5: public void ProcRoutine()
 6: {
 7: Input();
 8: ImageProc();
 9: Output();
 10: }
 11: public virtual void Input()
 12: {
 13: Console.Write("Load file: ");
 14: }
 15: public virtual void ImageProc()
 16: {
 17: Console.Write("Image processing: ");
 18: }
 19: public virtual void Output()
 20: {
 21: Console.Write("Output file: ");
 22: }
 23: }
 24: }

me1237guy 發表在 痞客邦 留言(0) 人氣()

image
LongFormArtistResource: (A, 1) LongFormBookResource: (A, 2) ShortFormArtistResource: (B, 1)

me1237guy 發表在 痞客邦 留言(0) 人氣()

Blog Stats
⚠️

成人內容提醒

本部落格內容僅限年滿十八歲者瀏覽。
若您未滿十八歲,請立即離開。

已滿十八歲者,亦請勿將內容提供給未成年人士。