• Nem Talált Eredményt

Solving binary tomography from morphological skeleton via optimization

N/A
N/A
Protected

Academic year: 2022

Ossza meg "Solving binary tomography from morphological skeleton via optimization"

Copied!
27
0
0

Teljes szövegt

(1)

Solving Binary Tomography from Morphological Skeleton via Optimization

Norbert Hantos, Péter Balázs, Kálmán Palágyi

Veszprém, December 11-14, 2012

VOCAL 2012

(2)

Contents

1 Introduction Motivation

Image and projections Switching components Morphological skeleton

2 Reconstruction with morphological skeleton Main task

Theoretical results Simulated Annealing

3 Results

(3)

objects from their projections

Extremely ambiguous if only a few projections are available

→further information is needed

(4)

Image and projections

Image binary square matrix,Fn×n

Projections sum of rows and columns,H(F),V(F)

1 1 0 0 0 0 1 1 1 1 0 0 1 1 0 0 1 0 1 0 1 0 1 1 0

Hi(F) =

n

X

j=1

Fij Vj(F) =

n

X

i=1

Fij

(5)

switching 0-s and 1-s do not change the projections

Necessary and sucent condition for ambiguity

1 0 0 1

⇐⇒

0 1 1 0

(6)

Morphological skeleton

Representation of shapes

Close to the topological skeleton

Easy to generate

Can store the image uniquely (with some additional information)

(7)

The morphological skeleton of the binary imageF with the structuring elementY can be extracted with morphological operators (erosion and dilation).

S(F, Y) =[

k

Sk(F, Y),

where

Sk(F, Y) = (F kY) \

(F k+1Y)⊕Y .

(8)

Example for erosion and dilation

From now let the structuring element Y :={(−1,0),(0,−1),(0,0),(0,1),(1,0)}.

OriginalF Erosion F Y Dilation F ⊕Y

(9)

k= 0 k= 1 k= 2

Non-white pixels indicate(F kY). Light grays indicate (F k+1Y)⊕Y

, dark grays are the dierence (i.e.,Sk(F, Y)).

(10)

Morphological skeleton

If we know the structuring elementY and the Sk(F, Y) for each k, then we can reconstruct the orignal image:

F =[

k

Sk(F, Y)⊕kY ,

or in a dierent form:

F = [

p∈S(F,Y)

(p⊕kpY),

wherekp is a unique value for every p such that p∈Skp(F).

(11)

LetK(S) := (kp1, kp2, ..., kp|S|) the series of thekp values, pi∈S=S(F, Y), and F is uniquely determined by K(S) andY.

S and the corresponding K(S)(left), the recreated F (right).

(12)

Reconstruction with morphological skeleton

Main task

Given vectorsH andV, morphological skeleton S and structuring elementY. We want to ndK(S)in a way that the corresponding F is the closest to the required projections:

f K(S)

=||H− H(F)||2+||V − V(F)||2 → min

(13)

The skeleton based reconstruction is not unique, since there could be an image pairF1 andF2 that they have the same projections and skeleton, howeverF16=F2.

Note that(2,1,1,2) =K1(S) 6= K2(S) = (1,2,2,1).

(14)

Theoretical results

GivenH, V projection vectors,S skeletal set. Does any binary imageF exist where H=H(F),V =V(F),S=S(F, Y) andF is 4-connected?

Theorem (NP-completedness) The problem above is NP-complete.

Note that we xed the structuring elementY.

Conjecture

The problem above is still NP-complete even without requiring the 4-connectedness.

(15)

Theorem (Skeletal smoothness)

For any imageF and any skeletal points p, q∈S(F, Y),

|kp−kq|<||p−q||1, where||.||1 denotes the Manhattan norm.

As a special case, ifp is 8-adjacent to q, then|kp−kq|<2, that we are to use during the reconstruction.

(16)

Simulated Annealing

Iterative stochastic method for nding a global minimum of a function

Could nd a near-optimal minimum in a reasonable time

Has many technical parameters, in our case:

Variables: K(S)

Energy function: f K(S)

min

Stopping criteria: iteration numberM or zero energy

Annealing schedule: T(t) =T0·

Ts T0

Mt

, wheret denotes time

(17)

NVC (No Vase Constraint) model:

f K(S)

=||H− H(F)||2+||V − V(F)||2

Changing a variable: simply change an elementkp ∈K(S) randomly

(18)

DVC

DVC (Dynamic Vase Constraint) model:

f is the same as in NVC

Changing a variable: change an elementkp ∈K(S)such that

|kp−kq|< C(t) for each q 8-adjacent top and

C(t) =

&

C0· Cs

C0

Mt '

Note that C(t) is monotonically decreasing and the limit is1.

(19)

CEF (Combined Energy Function) model:

f K(S)

=α·

||H− H(F)||2+||V − V(F)||2 + + (1−α)· X

||p−q||1≤1

h(kp, kq),

where

h(kp, kq) =

0 if |kp−kq| ≤1

|kp−kq|/2 otherwise.

Changing a variable: the same as in NVC

(20)

Results

Articial images in size of256×256

1 Simple convex shape

2 Grid of comvex shapes

3 Random set of convex shapes

4 Miscellaneous images

Technical parameters: M = 50000,T0 = 10,Ts= 0.001

Average of 5runs

Testing environment: Intel Core 2 Duo T250, 1.5 GHz, 2GB RAM

Error measurement

E = v u u t

2n

X

i=1

(bi−b0i)2 ,

wherebi andb0i are the elements of the original and the reconstructed projections, respectively.

(21)

Image Method CPU E Image Method CPU E

(ms) (ms)

NVC 3842 1060 NVC 7276 1285

DVC10 4030 98 DVC10 7900 174 DVC5 4116 97 DVC5 8127 146

DVC1 4563 18 DVC1 4473 0

CEF0.3 4358 2468 CEF0.3 7626 2578 CEF0.5 4415 1675 CEF0.5 7665 1849 CEF0.7 4435 1305 CEF0.7 7691 1505

NVC 3784 3405 NVC 4346 6136

DVC10 3038 1291 DVC10 4733 1066145

DVC5 3164 4288 DVC5 4609 1722350

DVC1 3566 5307 DVC1 4926 3302481

CEF0.3 5412 5665 CEF0.3 7308 14371

CEF0.5 5387 4829 CEF0.5 7243 8896 CEF0.7 5328 3212 CEF0.7 7222 7402

(22)

Results

Image Method CPU E Image Method CPU E

(ms) (ms)

NVC 1666 1341 NVC 2165 2709

DVC10 1215 292 DVC10 1713 6042

DVC5 1234 314 DVC5 1724 7962 DVC1 1302 294 DVC1 1910 6360 CEF0.3 2904 2534 CEF0.3 4123 5688 CEF0.5 2827 1950 CEF0.5 4131 4178 CEF0.7 2851 1732 CEF0.7 4114 3346

NVC 3537 2530 NVC 2757 4034

DVC10 2852 9154 DVC10 2304 4523

DVC5 2981 13138 DVC5 2467 7472

DVC1 3226 67493 DVC1 2430 13096

CEF0.3 6380 5183 CEF0.3 8884 6663 CEF0.5 6367 4102 CEF0.5 8856 5012 CEF0.7 6343 3029 CEF0.7 8959 4407

(23)

Original Skeleton Result with CEF0.5

Original Skeleton Result with NVC

(24)

Conclusions

Image reconstruction is extremely underdetermined if only a few projections are used

Morphological skeleton can reduce the ambiguity, however, the reconstruction problem is (possibly) NP-complete

3 variants of SA are tested on artical images NVC generally acceptable reconstruction

DVC smoother results, sometimes converges very slowly (highly depends on the initial image) CEF similar results as NVC, computationally intensive

(25)

Prove NP- (or P-) completedness of the original task and its variants (such ash-convex images)

Examine strategies for choosing the initial image for SA

Find a more sophisticated function minimizer

Try other prior information, such as smoothness on the boundary

Study the robustness of the reconstruction when the projections are corrupted by noise

(26)

Thank you for your attention!

Hantos, N., Balázs, P., Palágyi, K.: Binary image reconstruction from two projections and skeletal information. 15th International Workshop on

Combinatorial Image Analysis (IWCIA 2012), LNCS 7655, Springer, Heidelberg, 263274 (2012).

Hantos, N., Balázs, P.: The reconstruction of polyominoes from horizontal and vertical projections and morphological skeleton is NP-complete. Accepted for publication in Fundamenta Informaticae (2012).

Herman, G.T., Kuba, A. (eds.): Advances in Discrete Tomography and Its Applications. Birkhäuser, Boston (2007).

Gonzalez, R.C., Woods, R.E.: Digital Image Processing (3rd Edition). Prentice Hall (2008).

Kirkpatrick, S., Gelatt Jr., C.D., Vecchi, M.P.: Optimization by simulated annealing. Science 220, 671680 (1983).

(27)

The presentation is supported by the European Union and co-funded by the European Social Fund.

Project title: Broadening the knowledge base and supporting the long term professional sustainability of the Research University Centre of Excellence at the University of Szeged by ensuring the rising generation of excellent scientists.

Project number: TÁMOP-4.2.2/B-10/1-2010-0012

Hivatkozások

KAPCSOLÓDÓ DOKUMENTUMOK

In the case of low technology sectors, increase in intra-industry trade (although from a low level) is general and in several cases means an increase in horizontal or vertical high

A reconstruction algorithm tells us how to reconstruct a function from its measured projections. Mathematically, the task is the calculation of a two dimensional function

Please cite this article in press as: Molnár E, et al., Morphological and biomolecular evidence for tuberculosis in 8th century AD skeletons from Bélmegyer-Csömöki domb,

Our objectives of this study were a to isolate and identify native PGPRs from the sunflower rhizosphere in different locations at west Azarbaijan province, based on morphological

The observed findings of the MGS fiber morphological characteristics exhibit a significant influence on the ef- fect of the calculated morphological indices’ values and

Hantos, N., Balázs, P., Palágyi, K.: Binary Image Reconstruction From Two Projections Using Morphological Skeleton Information. In proceeding of the 15th International Workshop

Empirical Studies of Reconstructing hv-Convex Binary Matrices from Horizontal and Vertical Projections.. Zoltán

For testing the quality of binary character recognition the following optimization algorithms from the OAT were used: parallel mutation hill climber and random