IDL 102 (Particle Tracking)

45
IDL 102 (Particle Tracking)

description

IDL 102 (Particle Tracking). Our MO. Convert Image DV -> gdf Do not byte-scale Also, do byte scale (after conversion) Find dots in each frame “Clean” image Find all candidate dots Refine dots set Link dots frame-to-frame to get trajectories How far are we willing to look for a particle? - PowerPoint PPT Presentation

Transcript of IDL 102 (Particle Tracking)

Page 1: IDL 102 (Particle Tracking)

IDL 102 (Particle Tracking)

Page 2: IDL 102 (Particle Tracking)

Our MO• Convert Image DV -> gdf

– Do not byte-scale– Also, do byte scale (after conversion)

• Find dots in each frame– “Clean” image– Find all candidate dots– Refine dots set

• Link dots frame-to-frame to get trajectories– How far are we willing to look for a particle?– How about gaps?– How about blinky, random noise?

Page 3: IDL 102 (Particle Tracking)

Conversion isn’t futile• Images are acquired at 16bit (0 -> 216=65536)• Images have to be displayed at 8bit (0 ->

28=256)

Page 4: IDL 102 (Particle Tracking)

Conversion isn’t futile• Images are acquired at 16bit (0 -> 216=65536)• Images have to be displayed at 8bit (0 ->

28=256)

Page 5: IDL 102 (Particle Tracking)

Conversion isn’t futile• Images are acquired at 16bit (0 -> 216=65536)• Images have to be displayed at 8bit (0 ->

28=256)

Page 6: IDL 102 (Particle Tracking)

HOT pixels are bad

Page 7: IDL 102 (Particle Tracking)

HOT pixels are bad

Page 8: IDL 102 (Particle Tracking)

DEAD pixels are bad too

Page 9: IDL 102 (Particle Tracking)

DEAD pixels are bad too

Page 10: IDL 102 (Particle Tracking)
Page 11: IDL 102 (Particle Tracking)
Page 12: IDL 102 (Particle Tracking)
Page 13: IDL 102 (Particle Tracking)
Page 14: IDL 102 (Particle Tracking)
Page 15: IDL 102 (Particle Tracking)
Page 16: IDL 102 (Particle Tracking)

Pre-tracking• Find dots in each frame– “Clean” image– Find all candidate dots– Refine dots set

Page 17: IDL 102 (Particle Tracking)

Cleaning the image: band-passing with bpass.pro

Page 18: IDL 102 (Particle Tracking)

Cleaning the image: band-passing with bpass.pro

Page 19: IDL 102 (Particle Tracking)

Cleaning the image: band-passing with bpass.pro

Page 20: IDL 102 (Particle Tracking)

Cleaning the image: band-passing with bpass.pro

Page 21: IDL 102 (Particle Tracking)

Cleaning the image: band-passing with bpass.pro

Page 22: IDL 102 (Particle Tracking)

Cleaning the image: band-passing with bpass.pro

Page 23: IDL 102 (Particle Tracking)

These could be candidates

Page 24: IDL 102 (Particle Tracking)

Select them with a reasonable masscut

Page 25: IDL 102 (Particle Tracking)

0 1 2 3 4 5 0 3 4 5 6 7 0 1 8 9 10 11 12 0 2 13 14 15 16 17 0 3 18 19 20 21 22 0 4 23 24 25 26 27 2 5 28 29 30 31 32 2 6 33 34 35 36 37 3 7 38 39 40 41 42 4 8 43 44 45 46 47 5 9 48 49 50 51 52 5 10 53 54 55 56 57 5 11 58 59 60 61 62 5 12 63 64 65 66 67 6 13 68 69 70 71 72 12 14 73 74 75 76 77 12

X Y Mass Radius Eccentricity Time

You need to refine them using reasonable criteria

Page 26: IDL 102 (Particle Tracking)

Criteria• X, Y can be used to clip edges, where things usually go

wrong• “Mass” is total integrated brightness in each blob• Radius of gyration is a measure of size that makes dimmer

pixels count less• Eccentricity:

– 0: a perfect disk– 1: a perfect line segment

• Use eclip.pro, where(), or edgeclip.pro to refine ranges of these criteria

Page 27: IDL 102 (Particle Tracking)

A few things you can use to evaluate your pretracking:

• Say your pretracked data is in ‘pt’• Overview:– ptexplore, pt

• Number of particles at each frame (bleaching?)– plot_hist, pt[5,*], bin=1

• Bias towards integer pixel positions– plot_hist, pt[0:1,*] mod 1, bin=.05

Page 28: IDL 102 (Particle Tracking)

Now track them!• User defined params for tracking:– Distance to look for same particle frame-to-

frame• This must me less than interparticle distance in each

frame– Number of frames a particle is allowed to

disappear• This must be less than time it takes for two particles

to switch position– Shortest trajectory you consider real• This is a toughie. But setting this to something >0

helps get rid of artifacts that blink

Page 29: IDL 102 (Particle Tracking)

Check tracking with• P(dx, dt=1)

Page 30: IDL 102 (Particle Tracking)

Check tracking with• P(dx, dt=1)

Page 31: IDL 102 (Particle Tracking)

Check tracking with• P(dx, dt=1)

Page 32: IDL 102 (Particle Tracking)

Check with IDover2D

Page 33: IDL 102 (Particle Tracking)

Analysis

Page 34: IDL 102 (Particle Tracking)

AnalyzeMean squared displacement (MSD)

Page 35: IDL 102 (Particle Tracking)

AnalyzeMean squared displacement (MSD)

t=1 2

3

4

56

97

8

1012

15 14

13

11

Page 36: IDL 102 (Particle Tracking)

AnalyzeMean squared displacement (MSD)

• Measure all displacements that are Dt = 1 frame apart• Square them• Average them• Average over other particles if desired and “allowed”

t=1 2

3

4

56

97

8

1012

15 14

13

11

Dt (frames)M

SD(m

m2 )

1 13

Page 37: IDL 102 (Particle Tracking)

AnalyzeMean squared displacement (MSD)

• Measure all displacements that are Dt = 1 frame apart• Square them• Average them• Average over other particles if desired and “allowed”

t=1 2

3

4

56

97

8

1012

15 14

13

11

Dt (frames)M

SD(m

m2 )

1 2 13

• Then do it for Dt = 2 frames and so on

Page 38: IDL 102 (Particle Tracking)

Says Einstein!

y =

m xx

Dt (frames)

MSD

(mm

2 )

m= D1

m= D2

constant in biology

Page 39: IDL 102 (Particle Tracking)

A Yes/No test for diffusion(What’s this about logs and slopes of 1?)

Page 40: IDL 102 (Particle Tracking)

A Yes/No test for diffusion(What’s this about logs and slopes of 1?)

y =

m xxc +

1

1

2

Page 41: IDL 102 (Particle Tracking)

Ballistic motion(that of projectiles)

Constant velocity gives a slope 2 on a log-log plot

Page 42: IDL 102 (Particle Tracking)

What about this mess of an MSD plot?

Page 43: IDL 102 (Particle Tracking)

What about this mess of an MSD plot?

Page 44: IDL 102 (Particle Tracking)

What about this mess of an MSD plot?

Page 45: IDL 102 (Particle Tracking)

What about this mess of an MSD plot?