continuous and discrete image...

75
Continuous and Discrete Image Reconstruction Péter Balázs Department of Image Processing and Computer Graphics University of Szeged, HUNGARY 25 th SSIP Summer School on Image Processing 17 July 2017, Novi Sad, Serbia

Upload: others

Post on 16-Sep-2020

9 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Continuous and Discrete Image Reconstructionimft.ftn.uns.ac.rs/ssip2017/wp-content/uploads/2016/12/...Continuous and Discrete Image Reconstruction Péter Balázs Department of Image

Continuous and Discrete

Image Reconstruction

Péter Balázs Department of Image Processing and

Computer Graphics

University of Szeged, HUNGARY

25th SSIP Summer School on Image Processing

17 July 2017, Novi Sad, Serbia

Page 2: Continuous and Discrete Image Reconstructionimft.ftn.uns.ac.rs/ssip2017/wp-content/uploads/2016/12/...Continuous and Discrete Image Reconstruction Péter Balázs Department of Image

Steps of Machine Vision

• Image acquisition

• Preprocessing

• Segmentation

• Feature extraction

• Classification, interpretation

• Actuation

2

Page 3: Continuous and Discrete Image Reconstructionimft.ftn.uns.ac.rs/ssip2017/wp-content/uploads/2016/12/...Continuous and Discrete Image Reconstruction Péter Balázs Department of Image

Image Acquisition

3

by visible light by X-rays

Page 4: Continuous and Discrete Image Reconstructionimft.ftn.uns.ac.rs/ssip2017/wp-content/uploads/2016/12/...Continuous and Discrete Image Reconstruction Péter Balázs Department of Image

X-rays

• 1895 - Wilhelm Conrad

Röntgen describes the

properties of X-rays

• Kind of electromagnetic

radiation (similar to light

but having more energy)

• Attenuation of X-rays

depends on tissue

„Shadow” of the object

from one direction

Page 5: Continuous and Discrete Image Reconstructionimft.ftn.uns.ac.rs/ssip2017/wp-content/uploads/2016/12/...Continuous and Discrete Image Reconstruction Péter Balázs Department of Image

5

X-rays are Useful in Radiology

Page 6: Continuous and Discrete Image Reconstructionimft.ftn.uns.ac.rs/ssip2017/wp-content/uploads/2016/12/...Continuous and Discrete Image Reconstruction Péter Balázs Department of Image

X-rays are Useful in Radiology

(in some cases)

6

Page 7: Continuous and Discrete Image Reconstructionimft.ftn.uns.ac.rs/ssip2017/wp-content/uploads/2016/12/...Continuous and Discrete Image Reconstruction Péter Balázs Department of Image

7

… and in Security

Page 8: Continuous and Discrete Image Reconstructionimft.ftn.uns.ac.rs/ssip2017/wp-content/uploads/2016/12/...Continuous and Discrete Image Reconstruction Péter Balázs Department of Image

8

… and in Industrial Quality

Control

Page 9: Continuous and Discrete Image Reconstructionimft.ftn.uns.ac.rs/ssip2017/wp-content/uploads/2016/12/...Continuous and Discrete Image Reconstruction Péter Balázs Department of Image

9

Metals, Stone, Glass, Rubber, Bone, Void

… and in Food Industry

… and …

http://techvalley.co.kr/eng/mlb-inspection.html?ckattempt=1

Page 10: Continuous and Discrete Image Reconstructionimft.ftn.uns.ac.rs/ssip2017/wp-content/uploads/2016/12/...Continuous and Discrete Image Reconstruction Péter Balázs Department of Image

10

1000 year old Buddha Statue…

http://blogs.discovermagazine.com/d-brief/2015/02/23/x-

rays-buddhist-statue-mummified-monk/#.Vw69fvmLTIU

Page 11: Continuous and Discrete Image Reconstructionimft.ftn.uns.ac.rs/ssip2017/wp-content/uploads/2016/12/...Continuous and Discrete Image Reconstruction Péter Balázs Department of Image

11

…and Its Inhabitant

http://blogs.discovermagazine.com/d-brief/2015/02/23/x-

rays-buddhist-statue-mummified-monk/#.Vw69fvmLTIU

Page 12: Continuous and Discrete Image Reconstructionimft.ftn.uns.ac.rs/ssip2017/wp-content/uploads/2016/12/...Continuous and Discrete Image Reconstruction Péter Balázs Department of Image

12

Tomography

Tomos = part, section

Grapho = to write

Tomos + Grapho ≈ imaging by cross-sections (slices)

Page 13: Continuous and Discrete Image Reconstructionimft.ftn.uns.ac.rs/ssip2017/wp-content/uploads/2016/12/...Continuous and Discrete Image Reconstruction Péter Balázs Department of Image

13

Computerized Tomography • A technique for imaging the 2D cross-sections of

3D objects (human organs) without seriously damaging them

• Take X-ray images from many angles and combine them in a clever way

detectors

X-ray tube

beams

Page 14: Continuous and Discrete Image Reconstructionimft.ftn.uns.ac.rs/ssip2017/wp-content/uploads/2016/12/...Continuous and Discrete Image Reconstruction Péter Balázs Department of Image

Slide: Attila Kuba

Page 15: Continuous and Discrete Image Reconstructionimft.ftn.uns.ac.rs/ssip2017/wp-content/uploads/2016/12/...Continuous and Discrete Image Reconstruction Péter Balázs Department of Image

15

A Modern CT Scanner

Scanner CT image

Page 16: Continuous and Discrete Image Reconstructionimft.ftn.uns.ac.rs/ssip2017/wp-content/uploads/2016/12/...Continuous and Discrete Image Reconstruction Péter Balázs Department of Image

16

Image Quality: Then and Now

first CT scanners modern CT scanners

Page 17: Continuous and Discrete Image Reconstructionimft.ftn.uns.ac.rs/ssip2017/wp-content/uploads/2016/12/...Continuous and Discrete Image Reconstruction Péter Balázs Department of Image

17

… or Even …

… on-line scanning of how a fly

tries to fly

Page 18: Continuous and Discrete Image Reconstructionimft.ftn.uns.ac.rs/ssip2017/wp-content/uploads/2016/12/...Continuous and Discrete Image Reconstruction Péter Balázs Department of Image

18

The Mathematics of CT

duululflg )co ssin,sinco s(),(

x

y

ϴ

f (x,y)

X-rays Reconstruct f(x,y) from its

projections where a projection in

direction u (defined by angle ϴ)

can be obtained by calculating

the line integrals along each line

parallel to u.

Page 19: Continuous and Discrete Image Reconstructionimft.ftn.uns.ac.rs/ssip2017/wp-content/uploads/2016/12/...Continuous and Discrete Image Reconstruction Péter Balázs Department of Image

19

Sinogram

Sinogram of the Object

Sinogram: image of g(l, ϴ) with l and ϴ as rectilinear coordinates

Reconstruction: sinogram image

Object

Page 20: Continuous and Discrete Image Reconstructionimft.ftn.uns.ac.rs/ssip2017/wp-content/uploads/2016/12/...Continuous and Discrete Image Reconstruction Péter Balázs Department of Image

20

Backprojection Summation Image

(laminogram)

One backprojection

image Backprojection

summation image (blur!)

Page 21: Continuous and Discrete Image Reconstructionimft.ftn.uns.ac.rs/ssip2017/wp-content/uploads/2016/12/...Continuous and Discrete Image Reconstruction Péter Balázs Department of Image

21

Filtered Backprojection with 240

Projections

Page 22: Continuous and Discrete Image Reconstructionimft.ftn.uns.ac.rs/ssip2017/wp-content/uploads/2016/12/...Continuous and Discrete Image Reconstruction Péter Balázs Department of Image

22

Filtered Backprojection

• The FBP reconstruction process

– 2D sinogram (projections)

– high pass filtered for all angles

– sinogram is backprojected into the image

domain

• Works well only when 180° is

equiangularly and densly covered

• MATLAB functions: radon, iradon

• Movie: http://hendrix.ei.dtu.dk/movies/moviehome.html

Page 23: Continuous and Discrete Image Reconstructionimft.ftn.uns.ac.rs/ssip2017/wp-content/uploads/2016/12/...Continuous and Discrete Image Reconstruction Péter Balázs Department of Image

23

ART – Algebraic

Reconstruction Technique

• The interaction of the projection rays and the

image pixels can be written as a system of

equations

• Direct inverse methods are not applicable:

– big system

– underdetermined (#equations << #unknowns)

– possibly no solution (if there is noise)

• Solve it iteratively satisfying just one

projection in each step

Page 24: Continuous and Discrete Image Reconstructionimft.ftn.uns.ac.rs/ssip2017/wp-content/uploads/2016/12/...Continuous and Discrete Image Reconstruction Péter Balázs Department of Image

Digital Images

24

position along the line

Page 25: Continuous and Discrete Image Reconstructionimft.ftn.uns.ac.rs/ssip2017/wp-content/uploads/2016/12/...Continuous and Discrete Image Reconstruction Péter Balázs Department of Image

Projection = Line Sums

25

1289

Page 26: Continuous and Discrete Image Reconstructionimft.ftn.uns.ac.rs/ssip2017/wp-content/uploads/2016/12/...Continuous and Discrete Image Reconstruction Péter Balázs Department of Image

Projection = Line Sums

26

1289 1248

Page 27: Continuous and Discrete Image Reconstructionimft.ftn.uns.ac.rs/ssip2017/wp-content/uploads/2016/12/...Continuous and Discrete Image Reconstruction Péter Balázs Department of Image

Projection = Line Sums

27

1289 1248 1258

1146

Page 28: Continuous and Discrete Image Reconstructionimft.ftn.uns.ac.rs/ssip2017/wp-content/uploads/2016/12/...Continuous and Discrete Image Reconstruction Péter Balázs Department of Image

Reconstruction

28

1289 1248 1258

1146

Page 29: Continuous and Discrete Image Reconstructionimft.ftn.uns.ac.rs/ssip2017/wp-content/uploads/2016/12/...Continuous and Discrete Image Reconstruction Péter Balázs Department of Image

29

An Example

Page 30: Continuous and Discrete Image Reconstructionimft.ftn.uns.ac.rs/ssip2017/wp-content/uploads/2016/12/...Continuous and Discrete Image Reconstruction Péter Balázs Department of Image

30

An Example

a+b=12

c+d=8

Page 31: Continuous and Discrete Image Reconstructionimft.ftn.uns.ac.rs/ssip2017/wp-content/uploads/2016/12/...Continuous and Discrete Image Reconstruction Péter Balázs Department of Image

31

An Example

a+c=11

b+d=9

Page 32: Continuous and Discrete Image Reconstructionimft.ftn.uns.ac.rs/ssip2017/wp-content/uploads/2016/12/...Continuous and Discrete Image Reconstruction Péter Balázs Department of Image

32

An Example

a+d=5

b+c=15

Page 33: Continuous and Discrete Image Reconstructionimft.ftn.uns.ac.rs/ssip2017/wp-content/uploads/2016/12/...Continuous and Discrete Image Reconstruction Péter Balázs Department of Image

33

Discrete/Binary Tomography

• FBP and ART need several hundreds of projections

– time consuming

– expensive

– may damage the object

– not possible

• In certain applications the range of the function to

be reconstructed is discrete and known DT (only

few (2-10) projections are needed)

• Binary Tomography: the range of the function is

{0,1} (absence or presence of material)

Page 34: Continuous and Discrete Image Reconstructionimft.ftn.uns.ac.rs/ssip2017/wp-content/uploads/2016/12/...Continuous and Discrete Image Reconstruction Péter Balázs Department of Image

34

Tomography from a Few

Projections

projections

unknown

image

Page 35: Continuous and Discrete Image Reconstructionimft.ftn.uns.ac.rs/ssip2017/wp-content/uploads/2016/12/...Continuous and Discrete Image Reconstruction Péter Balázs Department of Image

35

continuous

reconstruction

Tomography from a Few

Projections

projections

Page 36: Continuous and Discrete Image Reconstructionimft.ftn.uns.ac.rs/ssip2017/wp-content/uploads/2016/12/...Continuous and Discrete Image Reconstruction Péter Balázs Department of Image

36

binary

tomography

Tomography from a Few

Projections

projections

Page 37: Continuous and Discrete Image Reconstructionimft.ftn.uns.ac.rs/ssip2017/wp-content/uploads/2016/12/...Continuous and Discrete Image Reconstruction Péter Balázs Department of Image

37

?

Binary Reconstruction from 2 Projections

?

Page 38: Continuous and Discrete Image Reconstructionimft.ftn.uns.ac.rs/ssip2017/wp-content/uploads/2016/12/...Continuous and Discrete Image Reconstruction Péter Balázs Department of Image

38

?

Binary Reconstruction from 2 Projections

Page 39: Continuous and Discrete Image Reconstructionimft.ftn.uns.ac.rs/ssip2017/wp-content/uploads/2016/12/...Continuous and Discrete Image Reconstruction Péter Balázs Department of Image

Nonograms

39

Page 40: Continuous and Discrete Image Reconstructionimft.ftn.uns.ac.rs/ssip2017/wp-content/uploads/2016/12/...Continuous and Discrete Image Reconstruction Péter Balázs Department of Image

40

Example for Uniqueness

Page 41: Continuous and Discrete Image Reconstructionimft.ftn.uns.ac.rs/ssip2017/wp-content/uploads/2016/12/...Continuous and Discrete Image Reconstruction Péter Balázs Department of Image

41

Example for Inconsistency

Page 42: Continuous and Discrete Image Reconstructionimft.ftn.uns.ac.rs/ssip2017/wp-content/uploads/2016/12/...Continuous and Discrete Image Reconstruction Péter Balázs Department of Image

42

Classification

Page 43: Continuous and Discrete Image Reconstructionimft.ftn.uns.ac.rs/ssip2017/wp-content/uploads/2016/12/...Continuous and Discrete Image Reconstruction Péter Balázs Department of Image

43

Two Main Problems

Reconstruction: Construct a binary image

from its projections.

Uniqueness: Is a binary image uniquely

determined by a given set of projections?

Page 44: Continuous and Discrete Image Reconstructionimft.ftn.uns.ac.rs/ssip2017/wp-content/uploads/2016/12/...Continuous and Discrete Image Reconstruction Péter Balázs Department of Image

44

Reconstruction

Ryser, 1957 – from row sums R and column sums S

Order the elements of S in a non-increasing way by π S’

Fill the rows from left to right B (canonical matrix)

Shift elements from the rightmost columns of B to the

columns where S(B) < S’

Reorder the colums by applying the inverse of π

Page 45: Continuous and Discrete Image Reconstructionimft.ftn.uns.ac.rs/ssip2017/wp-content/uploads/2016/12/...Continuous and Discrete Image Reconstruction Péter Balázs Department of Image

45

Page 46: Continuous and Discrete Image Reconstructionimft.ftn.uns.ac.rs/ssip2017/wp-content/uploads/2016/12/...Continuous and Discrete Image Reconstruction Péter Balázs Department of Image

46

Page 47: Continuous and Discrete Image Reconstructionimft.ftn.uns.ac.rs/ssip2017/wp-content/uploads/2016/12/...Continuous and Discrete Image Reconstruction Péter Balázs Department of Image

47

Page 48: Continuous and Discrete Image Reconstructionimft.ftn.uns.ac.rs/ssip2017/wp-content/uploads/2016/12/...Continuous and Discrete Image Reconstruction Péter Balázs Department of Image

48

Page 49: Continuous and Discrete Image Reconstructionimft.ftn.uns.ac.rs/ssip2017/wp-content/uploads/2016/12/...Continuous and Discrete Image Reconstruction Péter Balázs Department of Image

49

Page 50: Continuous and Discrete Image Reconstructionimft.ftn.uns.ac.rs/ssip2017/wp-content/uploads/2016/12/...Continuous and Discrete Image Reconstruction Péter Balázs Department of Image

50

Page 51: Continuous and Discrete Image Reconstructionimft.ftn.uns.ac.rs/ssip2017/wp-content/uploads/2016/12/...Continuous and Discrete Image Reconstruction Péter Balázs Department of Image

51

Page 52: Continuous and Discrete Image Reconstructionimft.ftn.uns.ac.rs/ssip2017/wp-content/uploads/2016/12/...Continuous and Discrete Image Reconstruction Péter Balázs Department of Image

52

Page 53: Continuous and Discrete Image Reconstructionimft.ftn.uns.ac.rs/ssip2017/wp-content/uploads/2016/12/...Continuous and Discrete Image Reconstruction Péter Balázs Department of Image

53

Page 54: Continuous and Discrete Image Reconstructionimft.ftn.uns.ac.rs/ssip2017/wp-content/uploads/2016/12/...Continuous and Discrete Image Reconstruction Péter Balázs Department of Image

54

Page 55: Continuous and Discrete Image Reconstructionimft.ftn.uns.ac.rs/ssip2017/wp-content/uploads/2016/12/...Continuous and Discrete Image Reconstruction Péter Balázs Department of Image

55

Page 56: Continuous and Discrete Image Reconstructionimft.ftn.uns.ac.rs/ssip2017/wp-content/uploads/2016/12/...Continuous and Discrete Image Reconstruction Péter Balázs Department of Image

56

Page 57: Continuous and Discrete Image Reconstructionimft.ftn.uns.ac.rs/ssip2017/wp-content/uploads/2016/12/...Continuous and Discrete Image Reconstruction Péter Balázs Department of Image

57

Page 58: Continuous and Discrete Image Reconstructionimft.ftn.uns.ac.rs/ssip2017/wp-content/uploads/2016/12/...Continuous and Discrete Image Reconstruction Péter Balázs Department of Image

58

Page 59: Continuous and Discrete Image Reconstructionimft.ftn.uns.ac.rs/ssip2017/wp-content/uploads/2016/12/...Continuous and Discrete Image Reconstruction Péter Balázs Department of Image

59

Page 60: Continuous and Discrete Image Reconstructionimft.ftn.uns.ac.rs/ssip2017/wp-content/uploads/2016/12/...Continuous and Discrete Image Reconstruction Péter Balázs Department of Image

60

Page 61: Continuous and Discrete Image Reconstructionimft.ftn.uns.ac.rs/ssip2017/wp-content/uploads/2016/12/...Continuous and Discrete Image Reconstruction Péter Balázs Department of Image

61

Uniqueness and Switching

Components

The presence of a switching component is

necessary and sufficient for non-uniqueness

Page 62: Continuous and Discrete Image Reconstructionimft.ftn.uns.ac.rs/ssip2017/wp-content/uploads/2016/12/...Continuous and Discrete Image Reconstruction Péter Balázs Department of Image

62

Ambiguity Due to the presence of switching components there can be

many solutions with the same two (or even more) projections

2

3

3

3

3

23522

2

3

3

3

3

23522

2

3

3

3

3

23522

Use prior information (convexity, smoothness, etc.) of the

binary image to be reconstructed

Page 63: Continuous and Discrete Image Reconstructionimft.ftn.uns.ac.rs/ssip2017/wp-content/uploads/2016/12/...Continuous and Discrete Image Reconstruction Péter Balázs Department of Image

63

Reconstruction as Optimization

x1 x2

x3 x4

x5 x6

Page 64: Continuous and Discrete Image Reconstructionimft.ftn.uns.ac.rs/ssip2017/wp-content/uploads/2016/12/...Continuous and Discrete Image Reconstruction Péter Balázs Department of Image

64

Optimization nmxbP x }1,0{

Problems:

• binary variables

• big system

• underdetermined (#equations << #unknowns)

• possibly no solution (if there is noise)

min )()(

}1,0{

2

xgbP xxC

x nm

Term for prior

information:

smoothness,

similarity to a

model image, etc.

Page 65: Continuous and Discrete Image Reconstructionimft.ftn.uns.ac.rs/ssip2017/wp-content/uploads/2016/12/...Continuous and Discrete Image Reconstruction Péter Balázs Department of Image

65

Solving the Optimzation Task

• Problem: Classical hill-climbing algorithms can

become trapped in local minima.

• Idea: Allow some changes that increase the

objective function.

p = 1

0 < p < 1

Page 66: Continuous and Discrete Image Reconstructionimft.ftn.uns.ac.rs/ssip2017/wp-content/uploads/2016/12/...Continuous and Discrete Image Reconstruction Péter Balázs Department of Image

66

Simulated Annealing

• Annealing: a thermodinamical process in which a

metal cools and freezes.

• Due to the thermical noise the energy of the liquid

in some cases grows during the annealing.

• By carefully controlling the cooling temperature the

fluid freezes into a minimum energy crystalline.

• Simulated annealing: a random-search technique

based on the above observation.

Page 67: Continuous and Discrete Image Reconstructionimft.ftn.uns.ac.rs/ssip2017/wp-content/uploads/2016/12/...Continuous and Discrete Image Reconstruction Péter Balázs Department of Image

67

Outline of SA Set inital solution x and temperature T0

Modify xact x’

Calculate C(x’)

C(x’) < C(xact) ? xact = x’

xact = x’ with probability p=e -∆C/T

Termination? Modify xact x’

Stop

Lower temperature

Y

Y

N

N

Greater uphill steps are less probable to

be accepted in later phases of the process

Page 68: Continuous and Discrete Image Reconstructionimft.ftn.uns.ac.rs/ssip2017/wp-content/uploads/2016/12/...Continuous and Discrete Image Reconstruction Péter Balázs Department of Image

68

Finding the Optimum

• Tuning the parameters appropriately SA finds the global optimum

• Fine-tuning of the parameters for a given optimization problem can be rather delicate

Sourse: https://www.slideshare.net/idforjoydutta/simulated-annealing-24528483

Page 69: Continuous and Discrete Image Reconstructionimft.ftn.uns.ac.rs/ssip2017/wp-content/uploads/2016/12/...Continuous and Discrete Image Reconstruction Péter Balázs Department of Image

69

SA in Pixel Based Reconstruction

• A binary matrix describes the binary image

• Initial suggestion: random binary matrix

• Randomly invert matrix value(s)

0011000001111110

1011000001110110

Page 70: Continuous and Discrete Image Reconstructionimft.ftn.uns.ac.rs/ssip2017/wp-content/uploads/2016/12/...Continuous and Discrete Image Reconstruction Péter Balázs Department of Image

70

Nondestructive Testing: Pipe

Corrosion, Deposit, Crack, etc. Study

32 fan beam X-ray projections

Page 71: Continuous and Discrete Image Reconstructionimft.ftn.uns.ac.rs/ssip2017/wp-content/uploads/2016/12/...Continuous and Discrete Image Reconstruction Péter Balázs Department of Image

Source: A. Nagy 71

Results with and without Noise

no noise 10 % Gaussian noise

Page 72: Continuous and Discrete Image Reconstructionimft.ftn.uns.ac.rs/ssip2017/wp-content/uploads/2016/12/...Continuous and Discrete Image Reconstruction Péter Balázs Department of Image

Source: A. Nagy 72

Neutron Tomography

• Gas pressure controller

– 18 projections, also multilevel

FBP DT

Page 73: Continuous and Discrete Image Reconstructionimft.ftn.uns.ac.rs/ssip2017/wp-content/uploads/2016/12/...Continuous and Discrete Image Reconstruction Péter Balázs Department of Image

Further Applications

73

pebble beds metal-, plastic foams

air bubbles, metal alloy defects cracks

Page 74: Continuous and Discrete Image Reconstructionimft.ftn.uns.ac.rs/ssip2017/wp-content/uploads/2016/12/...Continuous and Discrete Image Reconstruction Péter Balázs Department of Image

Source: Batenburg, Palenstijn 74

Electron Microscopy

QUANTITEM: a method which provides quantitative

information for the number of atoms lying in a single

atomic column from HRTEM images

Possible to detect crystal defects (e.g. missing atoms)

Page 75: Continuous and Discrete Image Reconstructionimft.ftn.uns.ac.rs/ssip2017/wp-content/uploads/2016/12/...Continuous and Discrete Image Reconstruction Péter Balázs Department of Image

75

http://www.nottingham.ac.uk

/microct/gallery/index.aspx

…and Many More