space filling curves - applications: contour approximation ...proposed goal from prev work 1...

26
Space Filling Curves - Applications: Contour approximation (an idea, more questions) Rodica Ceterchi [email protected] Feb, 2020 Seville Rodica Ceterchi ( [email protected] ) Space Filling Curves - Applications: Contour approximation (an idea, more questions) BWMC-2020 1 / 16

Upload: others

Post on 17-Jul-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Space Filling Curves - Applications: Contour approximation ...Proposed goal from prev work 1 Generation of SFCs (linear and array) using P systems 2 Open: to use P systems to model

Space Filling Curves - Applications:Contour approximation

(an idea, more questions)

Rodica Ceterchi

[email protected]

Feb, 2020Seville

Rodica Ceterchi ( [email protected] ) Space Filling Curves - Applications: Contour approximation (an idea, more questions)BWMC-2020 1 / 16

Page 2: Space Filling Curves - Applications: Contour approximation ...Proposed goal from prev work 1 Generation of SFCs (linear and array) using P systems 2 Open: to use P systems to model

Proposed goal from prev work

1 Generation of SFCs (linear and array) using P systems

2 Open: to use P systems to model more complex applications of SFCs

3 Older: tissue P systems for 2D picture repres/generation

Rodica Ceterchi ( [email protected] ) Space Filling Curves - Applications: Contour approximation (an idea, more questions)BWMC-2020 2 / 16

Page 3: Space Filling Curves - Applications: Contour approximation ...Proposed goal from prev work 1 Generation of SFCs (linear and array) using P systems 2 Open: to use P systems to model

Representing 2D objects - quadtrees

Rodica Ceterchi ( [email protected] ) Space Filling Curves - Applications: Contour approximation (an idea, more questions)BWMC-2020 3 / 16

Page 4: Space Filling Curves - Applications: Contour approximation ...Proposed goal from prev work 1 Generation of SFCs (linear and array) using P systems 2 Open: to use P systems to model

Hilbert Traversal of Quadtrees - Locality

Rodica Ceterchi ( [email protected] ) Space Filling Curves - Applications: Contour approximation (an idea, more questions)BWMC-2020 4 / 16

Page 5: Space Filling Curves - Applications: Contour approximation ...Proposed goal from prev work 1 Generation of SFCs (linear and array) using P systems 2 Open: to use P systems to model

Contour approximation

Luis’ Question: HOW?

Rodica Ceterchi ( [email protected] ) Space Filling Curves - Applications: Contour approximation (an idea, more questions)BWMC-2020 5 / 16

Page 6: Space Filling Curves - Applications: Contour approximation ...Proposed goal from prev work 1 Generation of SFCs (linear and array) using P systems 2 Open: to use P systems to model

Contour approximation

Luis’ Question: HOW?Rodica Ceterchi ( [email protected] ) Space Filling Curves - Applications: Contour approximation (an idea, more questions)BWMC-2020 5 / 16

Page 7: Space Filling Curves - Applications: Contour approximation ...Proposed goal from prev work 1 Generation of SFCs (linear and array) using P systems 2 Open: to use P systems to model

Remember the Hilbert curve

Figure: The first three patterns of the sequence defining the Hilbert curve

Rodica Ceterchi ( [email protected] ) Space Filling Curves - Applications: Contour approximation (an idea, more questions)BWMC-2020 6 / 16

Page 8: Space Filling Curves - Applications: Contour approximation ...Proposed goal from prev work 1 Generation of SFCs (linear and array) using P systems 2 Open: to use P systems to model

non-terminals 1× 1 arrays N̄ = {Ud ,Ur ,Ru,Rl , Ld , Lr ,Du,Dl}Γ the array morphism of the eight rewriting rules bellow:

U∗ → Ur UdRu L∗ with ∗ = d , r (1)

R∗ → D∗ RlUr Ru

with ∗ = u, l (2)

L∗ → Ld DlLr U∗ with ∗ = d , r (3)

D∗ → R∗ LdDu Dl

with ∗ = u, l (4)

F the array morphism of the eight rewriting rules below:

Ud → d ,Ur → r , Ld → d , Lr → r ,Ru → u,Rl → l ,Du → u,Dl → l (5)

F (Γn(Ur)) = the nth Hilbert word Hnr in array representation.

Rodica Ceterchi ( [email protected] ) Space Filling Curves - Applications: Contour approximation (an idea, more questions)BWMC-2020 7 / 16

Page 9: Space Filling Curves - Applications: Contour approximation ...Proposed goal from prev work 1 Generation of SFCs (linear and array) using P systems 2 Open: to use P systems to model

Add ’empty’ array rule

U1∗ → Ur UdRu L∗ with ∗ = d , r (6)

R1∗ → D∗ RlUr Ru

with ∗ = u, l (7)

L1∗ → Ld DlLr U∗ with ∗ = d , r (8)

D1∗ → R∗ LdDu Dl

with ∗ = u, l (9)

U0∗ = #0 → #0 #0

#0 #0 = #1 with ∗ = d , r (10)

R0∗ → #0 with ∗ = u, l (11)

L0∗ → #0 with ∗ = d , r (12)

D0∗ → #0 with ∗ = u, l (13)

Rodica Ceterchi ( [email protected] ) Space Filling Curves - Applications: Contour approximation (an idea, more questions)BWMC-2020 8 / 16

Page 10: Space Filling Curves - Applications: Contour approximation ...Proposed goal from prev work 1 Generation of SFCs (linear and array) using P systems 2 Open: to use P systems to model

Rodica Ceterchi ( [email protected] ) Space Filling Curves - Applications: Contour approximation (an idea, more questions)BWMC-2020 9 / 16

Page 11: Space Filling Curves - Applications: Contour approximation ...Proposed goal from prev work 1 Generation of SFCs (linear and array) using P systems 2 Open: to use P systems to model

Membrane division rules – to generate a tissue P sys

[U1∗]→ [Ur ] [Ud ][Ru] [L∗] with ∗ = d , r (14)

[R1∗]→ [D∗] [Rl ][Ur ] [Ru]

with ∗ = u, l (15)

[L1∗]→ [Ld ] [Dl ][Lr ] [U∗] with ∗ = d , r (16)

[D1∗]→ [R∗] [Ld ][Du] [Dl ]

with ∗ = u, l (17)

#0 → #0 #0

#0 #0 = #1 (18)

Rodica Ceterchi ( [email protected] ) Space Filling Curves - Applications: Contour approximation (an idea, more questions)BWMC-2020 10 / 16

Page 12: Space Filling Curves - Applications: Contour approximation ...Proposed goal from prev work 1 Generation of SFCs (linear and array) using P systems 2 Open: to use P systems to model

Membrane division rules – to generate a tissue P sys

[U1∗]→ [Ur ] [Ud ][Ru] [L∗] with ∗ = d , r (14)

[R1∗]→ [D∗] [Rl ][Ur ] [Ru]

with ∗ = u, l (15)

[L1∗]→ [Ld ] [Dl ][Lr ] [U∗] with ∗ = d , r (16)

[D1∗]→ [R∗] [Ld ][Du] [Dl ]

with ∗ = u, l (17)

#0 → #0 #0

#0 #0 = #1 (18)

Rodica Ceterchi ( [email protected] ) Space Filling Curves - Applications: Contour approximation (an idea, more questions)BWMC-2020 10 / 16

Page 13: Space Filling Curves - Applications: Contour approximation ...Proposed goal from prev work 1 Generation of SFCs (linear and array) using P systems 2 Open: to use P systems to model

[U1∗]→ [Ur ] [Ud ][Ru] [L∗]

[U1r ] [U1d ][R1u] [L1∗] →

[Ur ] [Ud ] [Ur ] [Ud ][Ru] [Lr ] [Ru] [Ld ][Du] [Rl ] [Ld ] [Dl ][Ur ] [Ru] [Lr ] [U∗]

[U1r ] [U1d ] [U1r ] [U0d ][R1u] [L0r ] [R1u] [L0d ][D1u] [R1l ] [L1d ] [D1l ][U0r ] [R1u] [L1r ] [U1∗]

Rodica Ceterchi ( [email protected] ) Space Filling Curves - Applications: Contour approximation (an idea, more questions)BWMC-2020 11 / 16

Page 14: Space Filling Curves - Applications: Contour approximation ...Proposed goal from prev work 1 Generation of SFCs (linear and array) using P systems 2 Open: to use P systems to model

[U1∗]→ [Ur ] [Ud ][Ru] [L∗]

[U1r ] [U1d ][R1u] [L1∗] →

[Ur ] [Ud ] [Ur ] [Ud ][Ru] [Lr ] [Ru] [Ld ][Du] [Rl ] [Ld ] [Dl ][Ur ] [Ru] [Lr ] [U∗]

[U1r ] [U1d ] [U1r ] [U0d ][R1u] [L0r ] [R1u] [L0d ][D1u] [R1l ] [L1d ] [D1l ][U0r ] [R1u] [L1r ] [U1∗]

Rodica Ceterchi ( [email protected] ) Space Filling Curves - Applications: Contour approximation (an idea, more questions)BWMC-2020 11 / 16

Page 15: Space Filling Curves - Applications: Contour approximation ...Proposed goal from prev work 1 Generation of SFCs (linear and array) using P systems 2 Open: to use P systems to model

[U1∗]→ [Ur ] [Ud ][Ru] [L∗]

[U1r ] [U1d ][R1u] [L1∗] →

[Ur ] [Ud ] [Ur ] [Ud ][Ru] [Lr ] [Ru] [Ld ][Du] [Rl ] [Ld ] [Dl ][Ur ] [Ru] [Lr ] [U∗]

[U1r ] [U1d ] [U1r ] [U0d ][R1u] [L0r ] [R1u] [L0d ][D1u] [R1l ] [L1d ] [D1l ][U0r ] [R1u] [L1r ] [U1∗]

Rodica Ceterchi ( [email protected] ) Space Filling Curves - Applications: Contour approximation (an idea, more questions)BWMC-2020 11 / 16

Page 16: Space Filling Curves - Applications: Contour approximation ...Proposed goal from prev work 1 Generation of SFCs (linear and array) using P systems 2 Open: to use P systems to model

[U1∗]→ [Ur ] [Ud ][Ru] [L∗]

[U1r ] [U1d ][R1u] [L1∗] →

[Ur ] [Ud ] [Ur ] [Ud ][Ru] [Lr ] [Ru] [Ld ][Du] [Rl ] [Ld ] [Dl ][Ur ] [Ru] [Lr ] [U∗]

[U1r ] [U1d ] [U1r ] [U0d ][R1u] [L0r ] [R1u] [L0d ][D1u] [R1l ] [L1d ] [D1l ][U0r ] [R1u] [L1r ] [U1∗]

Rodica Ceterchi ( [email protected] ) Space Filling Curves - Applications: Contour approximation (an idea, more questions)BWMC-2020 11 / 16

Page 17: Space Filling Curves - Applications: Contour approximation ...Proposed goal from prev work 1 Generation of SFCs (linear and array) using P systems 2 Open: to use P systems to model

[Ur ] [Ud ] [Ur ] [Ud ] [Ur ] [Ud ] [#0] [#0][Ru] [Lr ] [Ru] [Ld ] [Ru] [Lr ] [#0] [#0][Du] [Rl ] [#0] [#0] [Du] [Rl ] [#0] [#0][Ur ] [Ru] [#0] [#0] [Ur ] [Ru] [#0] [#0][Ru] [Ld ] [Dl ] [Rl ] [Ld ] [Dl ] [Rl ] [Ld ][Du] [Dl ] [Ur ] [Ru] [Lr ] [Ud ] [Du] [Dl ][#0] [#0] [Du] [Rl ] [Ld ] [Dl ] [Ur ] [Ud ][#0] [#0] [Ur ] [Ru] [Lr ] [Ur ] [Ru] [L∗]

[Ur ] [Ud ] [Ur ] [Ud ] [U0r ] [U0d ] [#0] [#0][Ru] [L0r ] [R0u] [Ld ] [Ru] [L0r ] [#0] [#0][Du] [R0l ] [#0] [#0] [Du] [R0l ] [#0] [#0][Ur ] [R0u] [#0] [#0] [Ur ] [R0u] [#0] [#0][Ru] [Ld ] [D0l ] [R0l ] [Ld ] [Dl ] [Rl ] [L0d ]

[D0u] [Dl ] [Ur ] [R0u] [L0r ] [U0d ] [Du] [D0l ][#0] [#0] [Du] [Rl ] [L0d ] [D0l ] [Ur ] [U0d ][#0] [#0] [U0r ] [Ru] [Lr ] [Ur ] [Ru] [L0∗]

→ · · ·

Rodica Ceterchi ( [email protected] ) Space Filling Curves - Applications: Contour approximation (an idea, more questions)BWMC-2020 12 / 16

Page 18: Space Filling Curves - Applications: Contour approximation ...Proposed goal from prev work 1 Generation of SFCs (linear and array) using P systems 2 Open: to use P systems to model

[Ur ] [Ud ] [Ur ] [Ud ] [Ur ] [Ud ] [#0] [#0][Ru] [Lr ] [Ru] [Ld ] [Ru] [Lr ] [#0] [#0][Du] [Rl ] [#0] [#0] [Du] [Rl ] [#0] [#0][Ur ] [Ru] [#0] [#0] [Ur ] [Ru] [#0] [#0][Ru] [Ld ] [Dl ] [Rl ] [Ld ] [Dl ] [Rl ] [Ld ][Du] [Dl ] [Ur ] [Ru] [Lr ] [Ud ] [Du] [Dl ][#0] [#0] [Du] [Rl ] [Ld ] [Dl ] [Ur ] [Ud ][#0] [#0] [Ur ] [Ru] [Lr ] [Ur ] [Ru] [L∗]

[Ur ] [Ud ] [Ur ] [Ud ] [U0r ] [U0d ] [#0] [#0][Ru] [L0r ] [R0u] [Ld ] [Ru] [L0r ] [#0] [#0][Du] [R0l ] [#0] [#0] [Du] [R0l ] [#0] [#0][Ur ] [R0u] [#0] [#0] [Ur ] [R0u] [#0] [#0][Ru] [Ld ] [D0l ] [R0l ] [Ld ] [Dl ] [Rl ] [L0d ]

[D0u] [Dl ] [Ur ] [R0u] [L0r ] [U0d ] [Du] [D0l ][#0] [#0] [Du] [Rl ] [L0d ] [D0l ] [Ur ] [U0d ][#0] [#0] [U0r ] [Ru] [Lr ] [Ur ] [Ru] [L0∗]

→ · · ·

Rodica Ceterchi ( [email protected] ) Space Filling Curves - Applications: Contour approximation (an idea, more questions)BWMC-2020 12 / 16

Page 19: Space Filling Curves - Applications: Contour approximation ...Proposed goal from prev work 1 Generation of SFCs (linear and array) using P systems 2 Open: to use P systems to model

Labels

[U1∗]→ [Ur ]nw [Ud ]ne[Ru]sw [L∗]se

with ∗ = d , r (19)

[R1∗]→ [D∗]nw [Rl ]ne[Ur ]sw [Ru]se

with ∗ = u, l (20)

[L1∗]→ [Ld ]nw [Dl ]ne[Lr ]sw [U∗]se

with ∗ = d , r (21)

[D1∗]→ [R∗]nw [Ld ]ne[Du]sw [Dl ]se

with ∗ = u, l (22)

Alternative - labels in binary (many interesting codes!)

Rodica Ceterchi ( [email protected] ) Space Filling Curves - Applications: Contour approximation (an idea, more questions)BWMC-2020 13 / 16

Page 20: Space Filling Curves - Applications: Contour approximation ...Proposed goal from prev work 1 Generation of SFCs (linear and array) using P systems 2 Open: to use P systems to model

Labels

[U1∗]→ [Ur ]nw [Ud ]ne[Ru]sw [L∗]se

with ∗ = d , r (19)

[R1∗]→ [D∗]nw [Rl ]ne[Ur ]sw [Ru]se

with ∗ = u, l (20)

[L1∗]→ [Ld ]nw [Dl ]ne[Lr ]sw [U∗]se

with ∗ = d , r (21)

[D1∗]→ [R∗]nw [Ld ]ne[Du]sw [Dl ]se

with ∗ = u, l (22)

Alternative - labels in binary (many interesting codes!)

Rodica Ceterchi ( [email protected] ) Space Filling Curves - Applications: Contour approximation (an idea, more questions)BWMC-2020 13 / 16

Page 21: Space Filling Curves - Applications: Contour approximation ...Proposed goal from prev work 1 Generation of SFCs (linear and array) using P systems 2 Open: to use P systems to model

Rodica Ceterchi ( [email protected] ) Space Filling Curves - Applications: Contour approximation (an idea, more questions)BWMC-2020 14 / 16

Page 22: Space Filling Curves - Applications: Contour approximation ...Proposed goal from prev work 1 Generation of SFCs (linear and array) using P systems 2 Open: to use P systems to model

1 Started from ...1 to use P systems to model more complex applications of SFCs2 tissue P systems for 2D picture repres/generation

2 arrived at1 using SFCs to generate tissue P systems2 2-level P systems (combining the 2)3 more questions

1 labels, history...2 how to input/decide (0 or 1)?

Rodica Ceterchi ( [email protected] ) Space Filling Curves - Applications: Contour approximation (an idea, more questions)BWMC-2020 15 / 16

Page 23: Space Filling Curves - Applications: Contour approximation ...Proposed goal from prev work 1 Generation of SFCs (linear and array) using P systems 2 Open: to use P systems to model

1 Started from ...1 to use P systems to model more complex applications of SFCs2 tissue P systems for 2D picture repres/generation

2 arrived at1 using SFCs to generate tissue P systems

2 2-level P systems (combining the 2)3 more questions

1 labels, history...2 how to input/decide (0 or 1)?

Rodica Ceterchi ( [email protected] ) Space Filling Curves - Applications: Contour approximation (an idea, more questions)BWMC-2020 15 / 16

Page 24: Space Filling Curves - Applications: Contour approximation ...Proposed goal from prev work 1 Generation of SFCs (linear and array) using P systems 2 Open: to use P systems to model

1 Started from ...1 to use P systems to model more complex applications of SFCs2 tissue P systems for 2D picture repres/generation

2 arrived at1 using SFCs to generate tissue P systems2 2-level P systems (combining the 2)

3 more questions

1 labels, history...2 how to input/decide (0 or 1)?

Rodica Ceterchi ( [email protected] ) Space Filling Curves - Applications: Contour approximation (an idea, more questions)BWMC-2020 15 / 16

Page 25: Space Filling Curves - Applications: Contour approximation ...Proposed goal from prev work 1 Generation of SFCs (linear and array) using P systems 2 Open: to use P systems to model

1 Started from ...1 to use P systems to model more complex applications of SFCs2 tissue P systems for 2D picture repres/generation

2 arrived at1 using SFCs to generate tissue P systems2 2-level P systems (combining the 2)3 more questions

1 labels, history...2 how to input/decide (0 or 1)?

Rodica Ceterchi ( [email protected] ) Space Filling Curves - Applications: Contour approximation (an idea, more questions)BWMC-2020 15 / 16

Page 26: Space Filling Curves - Applications: Contour approximation ...Proposed goal from prev work 1 Generation of SFCs (linear and array) using P systems 2 Open: to use P systems to model

Thank you!

Rodica Ceterchi ( [email protected] ) Space Filling Curves - Applications: Contour approximation (an idea, more questions)BWMC-2020 16 / 16