Hemmarat Wachirahatthapong

Slides:



Advertisements
งานนำเสนอที่คล้ายกัน
Strength of Materials I EGCE201 กำลังวัสดุ 1
Advertisements

John Rawls  John Rawls is the most famous American social contract theorist argued that “Justice is fairness” He Thought human natural have a appropriate.
THE PARTS OF A FLOWERING PLANT AND THEIR FUNTION.
Set is a basic term in Mathematics. There is no precise definition for term “set”, But roughly speaking, a set is a collection of objects, Things or symbols,
Finite and Infinite Sets, Null set
Texture การประมวลผลภาพแบบดิจิตอล Ian Thomas
Arithmetic Verb Template. ADD MOVE ZERO TO NO. ADD 1 TO NO. 0 1.
จำนวน สถานะ NUMBER OF STATES. ประเด็นที่ สนใจ The number of distinct states the finite state machine needs in order to recognize a language is related.
INTELLECTUAL CAPITAL : IC Group 3: Tipada Subhasean Nongluk Charoeschai Nerisa Wangkarat
Graphical User Interface charturong.ee.engr.tu.ac.th/CN208
Braille OCR Mobile Application
Multilayer Feedforward Networks
เปรียบเทียบจำนวนประชากรทั้งหมดจากฐาน DBPop Original กับจำนวนประชากรทั้งหมดที่จังหวัดถือเป็นเป้าหมาย จำนวน (คน) 98.08% % จังหวัด.
VARIABLES, EXPRESSION and STATEMENTS. Values and Data Types Value เป็นสิ่งพื้นฐาน มีลักษณะเป็น ตัวอักษร หรือ ตัวเลข อาทิ 2+2 หรือ “Hello world” Value.
Chapter 7 : Deflection by Various Geometrical
อาจารย์ มธ. อธิบายการใช้ โมเดลของ
Chapter 5: Functions of Random Variables. สมมติว่าเรารู้ joint pdf ของ X 1, X 2, …, X n --> ให้หา pdf ของ Y = u (X 1, X 2, …, X n ) 3 วิธี 1. Distribution.
Data Structures and Algorithms
ระบบการจัดเก็บในคลังสินค้า
: Chapter 1: Introduction 1 Montri Karnjanadecha ac.th/~montri Image Processing.
Color Standards A pixel color is represented as a point in 3-D space. Axis may be labeled as independent colors such as R, G, B or may use other independent.
What is Cluster Analysis? Finding groups of objects such that the objects in a group will be similar (or related) to one another and different from (or.
ออโตมาตาจำกัด FINITE AUTOMATA
FINITE STATE AUTOMATA WITH OUTPUT
REGULAR EXPRESSION การบรรยายแบบสม่ำเสมอ
ภาษาสม่ำเสมอ REGULAR LANGUAGES
We will chake the answer. จำนว น จำนวนนับจำนวน เต็ม จำนวน ตรรกยะ จำนวนอต รรกยะ Numbe rs Natural numbers Integers numbers rational numbers Irrational numbers.
Principal Facts and Ideas Objectives 1. 1.Understand principal properties of central-force problem 2. 2.Solve problems : angular momentum of a single particle.
Chapter 19 Network Layer: Logical Addressing
Inference in Propositional Logic
Inductive, Deductive Reasoning ผศ.( พิเศษ ) น. พ. นภดล สุชาติ พ. บ. M.P.H.
Chapter 12 Riveted, Bolted & Welded Connections
INC 637 Artificial Intelligence Lecture 13 Reinforcement Learning (RL) (continue)
INC341 Steady State Error Lecture 6.
Chapter 3 Solution by Series. Introduction Complementary Function Particular Integral  Chapter 2 If F(x),G(x) are constant.
Yv xv zv.
การออกแบบและพัฒนาซอฟต์แวร์ บทที่ 7 การทดสอบโปรแกรม
ตัวอย่างFUZZY. ตัวอย่าง ฐานองคความรูฟซซีสามารถแสดงไดเปน Rule 1: If feature1 is high and feature2 is low and feature3 is medium, then class is 1.
Asst.Prof. Dr.Surasak Mungsing
MAT 231: คณิตศาสตร์ไม่ต่อเนื่อง (3) Function Growth & Time-Complexity
8/3/2014The Realities of software Testing1 Software testing Realities What is the realities of software testing Why does the software testing not complete.
Merchant Marine Training Centre วิชาการเป็นเลิศ เชิดชู คุณธรรม ผู้นำ.
Page: 1 โครงสร้างคอมพิวเตอร์ และภาษาแอสเซมบลี้ Gate & Karnaugh Map มหาวิทยาลัยเนชั่น จังหวัดลำปาง
A Classical Apriori Algorithm for Mining Association Rules
Menu and Interactive with Powerpoint ให้นำเรื่อง Input /Output Technology มา จัดทำ การนำเสนอ โดยใช้หลักการ Menu and Interactive with powerpoint มาประยุกต์
Enhanced Entity-Relationship Model © Pearson Education Limited 1995, 2005.
Algorithm Efficiency There are often many approaches (algorithms) to solve a problem. How do we choose between them? At the heart of computer program.
CPE 332 Computer Engineering Mathematics II Week 2 Chapter 2 Matrix.
STACK ADT By Pantharee S.. Stack Model  A list with the restriction that insertions deletions can be performed in only one position (LIFO)  Push – insert.
ผู้ให้สัมมนา นายธเนศ เกษศิลป์ รหัส ภาควิชานิติวิทยาศาสตร์
การสร้าง WebPage ด้วย Java Script Wachirawut Thamviset.
Chapter 3 Simple Supervised learning
Chapter 1/1 Arrays. Introduction Data structures are classified as either linear or nonlinear Linear structures: elements form a sequence or a linear.
An Online Computer Assisted Instruction Development of Electronics Devices Subject for Learning Effectiveness Testing By Assoc.Prof. Suwanna Sombunsukho.
Physical Chemistry IV The Ensemble
In-Class Exercises Discrete Mathematics
สรุปปัญหาและวิธีการแก้ปัญหาใน Paper. 1. หัวข้อ (iii) Image Intensity Surface Partition หาเหตุผลว่าการทำ (iii) คืออะไร Answer ในข้อนี้ผมยังหาคำตอบที่แน่ชัดไม่เจอครับ.
 Mr.Nitirat Tanthavech.  HTML forms are used to pass data to a server.  A form can contain input elements like text fields, checkboxes, radio-buttons,
ว เคมีพื้นฐาน พันธะเคมี
ผลการประเมิน คุณภาพการศึกษาขั้นพื้นฐาน ปีการศึกษา
ภาษาอังกฤษ ชั้นมัธยมศึกษาปึที่ 4 Grammar & Reading ครูรุจิรา ทับศรีนวล.
Concept and Terminology Guided media (wired) Twisted pair Coaxial cable Optical fiber Unguided media (wireless) Air Seawater Vacuum Direct link Point.
พื้นฐานการเขียนแบบทางวิศวกรรม
(การสุ่มตัวอย่างเพื่อการยอมรับ)
Dr.Surasak Mungsing CSE 221/ICT221 การวิเคราะห์และออกแบบขั้นตอนวิธี Lecture 05: การวิเคราะห์ความซับซ้อนของ ขั้นตอนวิธีการเรียงลำดับข้อมูล.
การวิเคราะห์และออกแบบขั้นตอนวิธี
1. Find the ratio of the sides of the squares
Kernels Usman Roshan.
Color Standards A pixel color is represented as a point in 3-D space. Axis may be labeled as independent colors such as R, G, B or may use other independent.
Year 9 Term 1 Foundation (Unit 1) INTEGERS, ROUNDING AND PLACE VALUE
ใบสำเนางานนำเสนอ:

Hemmarat Wachirahatthapong An Improved Triangle Box Counting Method for Fractal Dimension Estimation Hemmarat Wachirahatthapong

Example 1 : DBC method My Paper Paper [1] Paper [2] Paper [3] ความหมาย MxM MXM Image Size sxs Grid Size or Block size

Differential Box Counting (DBC) Gray-scale Image Representation

Differential Box Counting (DBC) : Step 1 Step 1 : Partition image I into grid size Given a square image I of MxM Pixel. The image is partitioned into grids of size sxs Each grid blocks there is a column of boxes of size sxsxh where h is the height of each boxes where h = s x G/M , and G is the total number of gray level (G=256 of 8 bits gray level)

Differential Box Counting (DBC) : Step 2 Step 2 : Calculate ns of each (i,j)th grid On each boxes there are the maximum and the minimum gray values in the (i,j)th grid fall in box number l and k respectively. To calculate value of ns(i,j) = l – k + 1 l representing the maximum of gray level k representing the minimum of gray level

Differential Box Counting (DBC) : Step 3 Step 3 : Calculate total box count Ns is representing the sum of box count on ns(i,j)th boxes , to calculate of Ns Calculate on step 1 – 3 of different value of s Ns= 𝒊,𝒋 𝑵𝒔(𝒊,𝒋)

Differential Box Counting (DBC) : Step 4 Step 4 : Fractal dimension estimation The fractal dimension of image I can be estimate from the least square linear fit of log(Ns) against log(1/s).

Problem on DBC Method First , the problem occurs on the height of boxes is larger value when s is increased, the different of box number of the maximum and minimum are small which cause the precision of counting the box numbers. The second problem occur when assigns column of box , the DBC method cannot cover the minimum and maximum gray levels in the blocks when distance between minimum and maximum less than s. The third problem occurs on the size of grid is height , the range between the maximum and minimum are height which cause the box number are height respectively that effect on complex object.

Problem on DBC Method (ภาษาไทย) ปัญหาข้อแรกคือ ถ้าขนาดของบล็อกมีขนาดใหญ่ จะทำให้ความสูงของบล็อก (Box Height) มีค่าสูงด้วย ทำให้เมื่อคำนวณด้วยสูตร Nr = l – k +1 แล้วได้ค่าที่ไม่ละเอียดพอที่จะประมาณค่าของ FD ได้ ปัญหาที่สองคือ ถ้าค่าของค่าระดับเทา Maximum และ Minimum มีค่าต่างกันน้อยกว่าความสูงของบล็อก(Box Height) จะทำให้ค่า Maximum และ Minimum อยู่คนละบล็อก Number ทั้งๆ ที่น่าจะอยู่ในบล็อก Number เดียวกัน จะมีผลทำให้เกิดความคาด เคลื่อนในการประมาณการค่าของ Box Count ปัญหาที่สาม คือ ในการแบ่งตารางกริดเป็นสี่เหลี่ยมนั้น จะทำให้ค่าความแตกต่างระหว่างค่า Maximum และ Minimum มีโอกาสที่ค่าความแตกต่างระหว่าง Maximum และ Minimum แตกต่างกันมาก

Example 1 : DBC method Max Gray : 60 แบ่งตารางกริดเป็นขนาด s=4x4 และแบ่งตามแนวสูง s จะได้ขนาดบล็อก 4x4x4 และทำการนับจำนวนของบล็อกที่มีค่าสูงสุดและค่าต่ำสุดของสีระดับเทาอยู่ที่บล็อก แทนด้วย l และ k ตามลำดับ Box12 จากตัวอย่างบล็อกที่มีค่าสูงสุดคือ Box 12 l = 12 บล็อกที่มีค่าระดับเทาต่ำที่สุดคือ Box 7 k = 7 จะได้ค่า N(s) = 12-7+1 = 6 บันทึกค่าของ s และ N(s) และทำการหาค่า N(s) ในทุกจุดภาพขนาด 4x4x4 และหาผลรวมของ N(s) และ ทำการบันทึกค่าของ N(s) และ s ดังนี้ Min Gray : 27 Box7 Box1 s N(s) 4 115683

Example 1 : DBC method ลดขนาดตารางกริดลงเหลือ s=2x2 และแบ่งตามแนวสูง s จะได้ขนาดบล็อก 2x2x2 และทำการนับจำนวนของบล็อกที่มีค่าสูงสุดและค่าต่ำสุดของสีระดับเทา จากตัวอย่างบล็อกที่มีค่าสูงสุดคือ Box 30 l = 30 บล็อกที่มีค่าระดับเทาต่ำที่สุดคือ Box 29 k = 29 จะได้ค่า N(s) = 30-29+1 = 2 บันทึกค่าของ s และ N(s) จะได้ Box30 Box29 s N(s) 4 115683 2 428770 Box1

Example 1 : DBC method จากนั้นนำค่าที่ได้มาคำนวณหาค่า Log(1/s) และ Log(N(s)) จะได้ข้อมูลดังนี้ S Box Count (N(s)) Log(1/s) Log(N(s)) 128 11 -2.1072 1.0414 64 74 -1.8062 1.8692 32 528 -1.5051 2.7226 16 3538 -1.2041 3.5488 8 21758 -0.9031 4.3376 4 115683 -0.6021 5.0633 2 428770 -0.3010 5.6322

An Improved DBC (Paper2) This proposed an improved DBC method by solving the three problem of DBC method Modification A : To solve the problem on box height selection by let a new scale s′ = s/c , where c is a positive real number greater than 1. Let the mean and the standard deviation of image be µ and σ. The box height s′ is selected as 𝑠 ′ = 𝑠 1+2𝑎𝜎

An Improved DBC (Paper2) Modification B : To solve the problem on box number calculation by let a new calculation of maximum and minimum gray levels of the (i,j)th blocks 𝑛 𝑠 = 𝑐𝑒𝑖𝑙 𝑙−𝑘 𝑠 ′ 1

An Improved DBC (Paper2) Modification C : To solve the problem on image intensity partition. To ensure the image intensity is covered. The following two partition scheme Partition an image with size MxM into sxs pixels. And the blocks overlap at the boundary by one row or one column. For example image size of 16x13 pixels partitioned into 20 blocks and any adjacent shared boundary blocks overlap by 4 pixels

Problems on An Improved DBC (Paper2) The problems on an improved DBC method is the computation of adjacent blocks that share common borders. The common borders must be calculated twice which cause the estimation error and more computations. They used the square of blocks to calculate of FD , the range of maximum and minimum gray level are height that effect that less accuracy on complex object is not consider

An Improved DBC with adaptable box height (Paper3) A box counting method with adaptable box height [6] used the ratio based box counting method to measureing the fractal dimension of images is not square size by given an image I of MxN pixels. They used ratio r, (r≥2, r ϵ Z+), and calculated a grid blocks size m x n where m = M/r , n = N/r. The new blocks size m x n are four case In case of M = mr and N = nr. The image is evenly partitioned into rxr blocks of size mxn pixels. Otherwise they use the ratio r to calculate of rxr blocks of size mxn pixels and calculate the new blocks size on the rest of pixels in a column and row and used the new block size of the rest to calculate the box count.

Problems On This Method They have the same problem on the third method from DBC that is problem occurs on the size of grid is height , the range between the maximum and minimum are height which cause the box number are height respectively that effect on complex object.

Proposed Method Maximum Gray Level Minimum Gray Level In this section, we propose an improved triangle box counting method to increase the precision of differential box counting and reduce the gap between maximum and minimum gray levels. Considers the intensity of gray levels in partitioned image I of size 4x4 pixels in Fig 1. Maximum Gray Level Minimum Gray Level

Proposed Method The maximum and minimum of gray level fall into top and bottom of block respectively. If calculating with square blocks the maximum is 199 and minimum is 33 , if box height is 3 the box number of maximum gray level in a grid is 199/3 = 67 and the box number of minimum gray level is 33/3 = 11 which there calculation of box count using equation (2) which cause the different of maximum and minimum is equal 57. In this proposed method is to reduce the range of maximum and minimum of gray level on each grid blocks by divided the square partitioned image into two triangle boxes which is improves the accuracy of fractal dimension estimation.

Proposed Method The most frequently uses increasing grid size form of 2n where n is 1,2,3,..... Grid size 3x3 , 5x5 … doesn’t considers on the step of computation and if grid size not form of 2n which cause the borders of image must be padding before counting box numbers cause the estimation error. We used ratio s, (s≥2, s ϵ I+) which describes on section II and calculated a grid blocks size w x h where w = W/s , h = H/s. The algorithm is proposed as follows

Proposed Method : Step 1 Partitioned image I into grid blocks in four situations following as S1 : If W = ws and H = hs. The image is evenly partitioned into sxs blocks of size mxn pixels. S2 : If W = ms and H > hs. The image is partitioned into s x s blocks of size wxh pixels and s x 1 blocks of size w x (H–hs) pixels. S3 : If W > ws and H = hs. The image is partitioned into s x s blocks of w x h pixels and 1 x s blocks of size (W – ws) x h pixels. S4 : If W > wr and H > hr. The image is partitioned into s x s blocks of size w x h pixels , s x 1 blocks of size w x (H – hr) pixels , 1 x s blocks of size (W – ws) x h pixels and 1 block of size (W – ws) x (H – hs).

Proposed Method : Step 2 Step 2 : Split the partitioned image I on step 1 into grid size w x h , w x (H - hs) , (W - ws) x h , w x (H - hs)or (W - ws) x (H – hs) ,respectively into two triangle boxes as illustration in Fig 2. Pattern1 Pattern2 Fig 2. Illustration the image partitioning pattern.

Proposed Method : Step 2 There are two case of divided the partitioning into triangle boxes, case of asymmetric and symmetric block. we try to divided it into equally triangle boxes that would be possible. The example of split the partitioned image into triangle boxes into two case which describes follow as,

An Improved Adaptive DBC : Step 1 เปลี่ยนวิธีการคำนวณหาค่า box จาก Square เป็นแบบ Ratio ดังนี้ ขนาดของรูปภาพ MxN ใช้ค่าของ r เป็นค่าที่ใช้ในการคำนวณหาค่า m = M/r , n = N/r แบ่งตารางกริดตามรูปแบบ 4 รูปแบบนี้ ถ้า M = mr และ N = nr จะแบ่งตารางบล็อกได้จำนวน rxr บล็อกที่มีขนาด mxn ถ้า M = mr และ N > nr จะแบ่งตารางบล็อกได้จำนวน r x (r+1) ซึ่งจะมีบล็อกจำนวน rxr บล็อกที่มีขนาด mxn และ rx1 บล็อก ที่มีขนาด mx(N-mr)

An Improved Adaptive DBC : Step 1 ถ้า M > mr และ N = nr จะแบ่งตารางบล็อกได้จำนวน rxr บล็อกที่มีขนาด mxn ถ้า M = mr และ N > nr จะแบ่งตารางบล็อกได้จำนวน (r+1) x r ซึ่งจะมีบล็อกจำนวน rxr บล็อกที่มีขนาด mxn และ rx1 บล็อก ที่มีขนาด (M – mr) x n ถ้า M>mr และ N>nr จะแบ่งตารางบล็อกได้จำนวน (r+1) x (r+1) บล็อก ซึ่งจะมีขนาด mxn จำนวน rxr บล็อก และขนาด mx(N-nr) จำนวน rx1 บล็อก และมีขนาด (M-mr)xn จำนวน 1xr บล็อก และมีขนาด (M-mr) x (N-nr) จำนวน 1 บล็อก

An Improved Adaptive DBC : Step 1 Figure (2) ใน paper

An Improved Adaptive DBC : Step 2 แบ่งตารางกริดในแต่ละบล็อกออกเป็นรูปสามเหลี่ยมตาม Pattern1 และ Pattern2 ดังนี้ Pattern1 Figure (3) รูปตัวอย่างการ Partition

An Improved Adaptive DBC : Step 2 Pattern2 Figure (3) รูปตัวอย่างการ Partition

An Improved DBC : Step 2 หาค่าสูงสุดของสีระดับเทาและค่าต่ำสุดของสีระดับเทาในแต่ละบล็อกสามเหลี่ยม และหาค่าของ Box Number ของค่าสูงสุดและต่ำสุด MinTDBC1= 63 MaxTDBC1= 219 MinTDBC2= 74 MaxTDBC2= 214

An Improved DBC : Step 2 หาค่า Box Number ของ Min และ Max แทนด้วย k และ l ตามลำดับ จากนั้นคำนวณหาค่า Nr ในแต่ละบล็อกสามเหลี่ยมตามสมการต่อไปนี้ NrC1Upper = lc1Upper – kc1Lower + 1 NrC1Lower = lc1Upper – kc1Lower + 1 NrC1 = NrC1Upper + NrC1Lower MinTDBC1= 63 MaxTDBC1= 219 MinTDBC2= 74 MaxTDBC2= 214

An Improved DBC : Step 3 หาค่าสูงสุดของสีระดับเทาและค่าต่ำสุดของสีระดับเทาในแต่ละบล็อกสามเหลี่ยม และหาค่าของ Box Number ของค่าสูงสุดและต่ำสุด MinTDBC1= 63 MaxTDBC1= 219 MinTDBC1= 74 MaxTDBC1= 214

An Improved DBC : Step 3 หาค่า Box Number ของ Min และ Max แทนด้วย k และ l ตามลำดับ จากนั้นคำนวณหาค่า Nr ในแต่ละบล็อกสามเหลี่ยมตามสมการต่อไปนี้ NrC2Upper = lc2Upper – kc2Lower + 1 NrC2Lower = lc2Upper – kc2Lower + 1 NrC2 = NrC2Upper + NrC2Lower MinTDBC1= 63 MaxTDBC1= 219 MinTDBC2= 74 MaxTDBC2= 214

An Improved DBC : Step 4 Nr = 𝒊,𝒋 𝑵𝒓(𝒊,𝒋) หาค่า Nr โดยพิจารณาจากค่าของ NrC1 และ NrC2 โดยเลือกค่า Nr(i,j) = min{NrC1 , NrC2} จากนั้นหาค่าของ Nr ในทุกๆ ตารางกริด (i,j) และทำการบันทึกค่าของ Nr และ r Nr = 𝒊,𝒋 𝑵𝒓(𝒊,𝒋) หมายเหตุ เหตุผลที่เลือกค่า Min เนื่องจากได้ทดสอบกับค่าที่เป็น Min และ Max แล้ว การใช้ค่า Min ให้ค่า Fitting Error น้อยที่สุด

Experiments (An Improved DBC) จากผลการทดลอง An Improved Triangle Box Counting Method จะใช้รูปทดสอบ Brodatz ได้ผลลัพธ์ดังนี้ ภาพทดสอบ DBC Fitting Error Improved DBC Improved DBC with Ratio D03 2.61 0.019 2.86 0.007 2.93 0.0021 D04 2.67 0.014 2.88 0.004 2.91 0.0020 D05 2.40 0.024 2.65 0.010 2.90 0.0023 D09 2.57 0.016 2.77 0.005 2.92 0.0019

Experiments (An Improved DBC) จากผลการทดลอง An Improved Triangle Box Counting Method จะใช้รูปทดสอบ Brodatz ได้ผลลัพธ์ดังนี้ ภาพทดสอบ DBC Fitting Error Improved DBC Improved DBC with Ratio D24 2.52 0.016 2.77 0.005 2.92 0.0021 D28 2.53 0.021 2.74 0.009 2.86 0.0023 D33 2.30 0.014 2.49 0.007 2.60 0.0054 D54 2.46 0.019 2.88 0.0022

Experiments (An Improved DBC) จากผลการทดลอง An Improved Triangle Box Counting Method จะใช้รูปทดสอบ Brodatz ได้ผลลัพธ์ดังนี้ ภาพทดสอบ DBC Fitting Error Improved DBC Improved DBC with Ratio D55 2.49 0.021 2.73 0.008 2.90 0.0021 D68 2.53 0.016 2.75 0.005 2.84 0.0023 D84 2.58 0.020 2.82 2.89 D92 2.37 0.017 2.60 2.87

Conclusion ประเด็นในการพิจารณา วิธีการ TDBC นั้นมีการ Improve จาก Paper1 แต่ไม่สามารถ Improved จาก Paper2 วิธีการ TDBC With Ratio สามารถ Improve ได้จาก Paper1 และ Paper2 ได้

Conclusion วิธีการคำนวณค่า Fitting Error ของ Original DBC จะใช้สมการต่อไปนี้ โดยที่ x = log(1/r) และ y = log(Nr) ส่วนใน Paper ที่ Improved จะใช้สมการต่อไปนี้ โดยที่ x = log(r) และ y = log(Nr)

Conclusion Nr = 𝒊,𝒋 𝑵𝒓(𝒊,𝒋) สมการที่ใช้คำนวณค่า Nr ไม่ได้เอามาจาก Paper3 แต่ใช้วิธีการเดียวกับ Original DBC สมการที่ใช้หาค่า Nr จาก Paper3 สมการ Original จากการคำนวณของ DBC Nr = 𝒊,𝒋 𝑵𝒓(𝒊,𝒋)

Conclusion ใน Paper3 ใช้การเปรียบเทียบโดยดูจากส่วนเบี่ยงเบนเฉลี่ยยกกำลังสอง ในการ Implement ของผมใช้การเปรียบเทียบโดยใช้ Fitting Error