เอกสารการประมวลผลภาพ ชุด ๒

51
This presentation has been put together as a common effort of Urs Ziegler, Anne Greet Bittermann, Mathias Hoechli. Many pages are copied from Internet web pages or from presentations given by Leica, Zeiss and other companies. Please browse the internet to learn interactively all about optics. For questions & registration please contact www. zmb . unizh . ch . Basic Introduction to Image Processing

Upload: ajchai-meenorngwar

Post on 11-Mar-2016

223 views

Category:

Documents


0 download

DESCRIPTION

เอกสารการประมวลผลภาพ

TRANSCRIPT

Page 1: เอกสารการประมวลผลภาพ ชุด ๒

This presentation has been put together as a common effort of Urs Ziegler, Anne Greet Bittermann, MathiasHoechli. Many pages are copied from Internet web pages or from presentations given by Leica, Zeiss andother companies. Please browse the internet to learn interactively all about optics. For questions &registration please contact www.zmb.unizh.ch .

Basic Introduction to

Image Processing

Page 2: เอกสารการประมวลผลภาพ ชุด ๒

Presentation of multidimensional data

3D-data has to be presented in in a 2D-fashion for publication

on paper. The data set might be represented i.e. as image

gallery, top+side view, projection. A virtual light source and/or

shadows on a virtual projection plane are helping to recognize

spatial relations.

Interactive models, movies and animations can be “published”

on web-pages or into power point-presentations.

Page 3: เอกสารการประมวลผลภาพ ชุด ๒

Image processing and analysis

After registration on the microscope the digital images are loaded to image

processing software for further processing. The data includes information about

pseudo color, pixel dimensions, time scale etc.

First image data get adjusted by background subtraction, contrast enhancement,

etc. Colors might be assigned; subvolumes selected; z-mismatchs corrected by

pixel-shifts.

The softwares offer different options to look at the multidimensional data sets.

i.e. slice viewer, gallery view, section view, projections, full 3D volume

representations, surface models, time bar, color coded overlays of several

channels, transparencies, ...

The software offers analytical tools for measurement and quantification: automated

counting of features, measurements of areas and volumes, tracing of filaments,

measuring of distances, evaluation of colocalization, ...

Page 4: เอกสารการประมวลผลภาพ ชุด ๒

Automated Multidimensional

Data Processing

Dimensions:

xy = 2D

xyz = 3D

xyzt = 4Dxyzt! = 5D

micrograph processing softwares:

Imaris (Bitplane)*

Volocity (Improvision)NIH image **

BioImageXD **

•Campus-Lizenz an der Uni Zürich**scientific freeware on the internet

Page 5: เอกสารการประมวลผลภาพ ชุด ๒

2-dimensional distribution of image Points (Pixel)

Digital images:

x

y

Page 6: เอกสารการประมวลผลภาพ ชุด ๒

Detectors record a limited amount of image points (pixel number)

within a xy grid. Each image point has its own grey level (dynamic

range).

Increasing the amount of image points as well as the number of

grey levels leads to bigger image files and longer calculation

times.

256 grey levels are coded by 8 bit. 256 grey levels are presented

by a computer monitor.

Today, detectors are pushed to discriminate 1024, 4096 or more

grey levels. The human eye can discriminate about 60 gray levels

(6 bit).

Digital resolution

Page 7: เอกสารการประมวลผลภาพ ชุด ๒

x

y

z

) ! z) ! z) ! z) ! z

3D Data set

The information within

the optical sections along

the z-axis can be used to

reconstruct a 3-dimensional image.

Page 8: เอกสารการประมวลผลภาพ ชุด ๒

x

y

z

) ! z) ! z) ! z) ! z

) ! z) ! z) ! z) ! z

4D Data set

t1 t2

3-D stacks recorded along the time course

Page 9: เอกสารการประมวลผลภาพ ชุด ๒

x

y

z

) ! z) ! z) ! z) ! z

) ! z) ! z) ! z) ! z

5D Data set

t1, t2, t3, ...

Wavelenghts adding another dimension of fluorescent data. Time laps of

multi-channel 3D stacks generate a 5D data set. Wavelenght information

is displayed as pseudo-colors.

) ! z) ! z) ! z) ! z

Page 10: เอกสารการประมวลผลภาพ ชุด ๒

A voxel (= volume element) is the 3D-equivalent of the

2D-pixel. It is the smallest unit of a sampled volume.

The given maximal lateral (x,y) resolution of 0.2 µm

and the axial (z) resolution of 0.4 µm of a voxel

results in an elongated shape (point spread function).

Voxels

Page 11: เอกสารการประมวลผลภาพ ชุด ๒

3D

-> each Voxel has

6 neighbor voxels

For the calculation and visualisation are the neighbor voxels

of great importance.

2D

-> each Pixel has

4 neighbor pixels

Neighbours

Page 12: เอกสารการประมวลผลภาพ ชุด ๒

Presentation and effort:

* Simple presentations (fast, allows 2D-publishing):

gallery view, section view, projections

* Intense calculations (time consuming, for analysis):

full 3D volume representation, surface rendering,

shadowing, stereo view

* Animations (time consuming, analysis & presentation):

rotating 3D models, time sequences of 3Dvolumes

Page 13: เอกสารการประมวลผลภาพ ชุด ๒

Galleries ofimages are the

most simple

data presen-

tation.

for xyz

xyt xy! ...

Image Gallery

Page 14: เอกสารการประมวลผลภาพ ชุด ๒

Optical section

through a cube

containing fibers

Projecting the structures

of all sections to the ground

level („Extended Focus“)

Projecting optical sections to one plane

Page 15: เอกสารการประมวลผลภาพ ชุด ๒

Average Projection:Simple to very complex mathematical procedures. Summing up the grey

values of all voxels with identical xy-coordinates along the z-stack,

divided by the numbers of optical sections.

Maximal Intensity Projection (MIP):Only the voxel in the z-stack, which has the highest grey value, will be

projected.

Background signal gets projected too and might cause noise/blur.

Suppress background first!!

Projection types

Page 16: เอกสารการประมวลผลภาพ ชุด ๒

x1

y1 Z 1

Z 2

Z 3

Z 5

Projektion

y2

x2

x3

y3

MaximalIntensityPointProjection-> sharp image

Z 4

x1

y1 Z 1

Z 2

Z 3

Z 5

y2

x2

x3

y3

Z 4

Projektion Averagingmay lead toenlarged structures and background

Page 17: เอกสารการประมวลผลภาพ ชุด ๒

Gallery presentation of a neuron

1 2 3 4

5 6 7 8

9 10

Page 18: เอกสารการประมวลผลภาพ ชุด ๒

Maximal

intensity

projection of the

optical

sections

of the

neuron

Page 19: เอกสารการประมวลผลภาพ ชุด ๒

Maximumintensity

projection

with one

sided

illuminationand

shadow.

(“easy3D”)

Page 20: เอกสารการประมวลผลภาพ ชุด ๒

x

y z

stack of images

Image of the section

x

z

Section throughthe stack

gallery of images

Page 21: เอกสารการประมวลผลภาพ ชุด ๒

Section through the stack along the y-axis

x

y z

y

z

Sectioning through

a stack of images- perpendicular

Page 22: เอกสารการประมวลผลภาพ ชุด ๒

{

Y - Z

Computer

representation

of section levels

in XY, XZ, YZ

{

X - Z

X - Y{{ {

Page 23: เอกสารการประมวลผลภาพ ชุด ๒

Intense calculation

for 3-D representations

1. Volume rendering

Ray tracing

2. Surface rendering

Segmentation of z-stacks

Depth encoding of voxelsShadowing

3. Animations

time course

rotations zooms etc.

Page 24: เอกสารการประมวลผลภาพ ชุด ๒

Volume rendering

Even if fog (background) limits the visibility, we get an

idea of the structure of the trees.

Page 25: เอกสารการประมวลผลภาพ ชุด ๒

Volume rendering

Ray Tracing

A virtual ray passing the volume accumulates the grey levels of the

voxels, normalizes the summed value and presents it on the screen.

ScreenVolume

Virtual ray

Page 26: เอกสารการประมวลผลภาพ ชุด ๒

Volume rendering with adjustments of the grey values

Adjustment of the greylevel according to thedistance between voxel

and screen.

Adjustment of the greyvalue according to the greyvalue of the voxel just

passed. screen

Voxels hit by the virtual ray

Page 27: เอกสารการประมวลผลภาพ ชุด ๒

Volume rendering - example

3D representation of a multifluorsescent cellmonolayer(4 channels)

Page 28: เอกสารการประมวลผลภาพ ชุด ๒

Surface rendering

Creating objects with solid surfaces.

Page 29: เอกสารการประมวลผลภาพ ชุด ๒

Surface rendering: Iso-Surface modelling

1st Step: Segmentation of the z-stacks. Identification of Voxels belonging to an object.The criteria for the identification is the grey

value of the voxel.

All voxels, whose grey value are higher (brighter) than the chosenthreshold belong to the object, the others belong to the backgroundand will be discriminated. This threshold value is chosen by thescientist.

(Neighborhood rule: If a voxel belongs to theobject, but one of its 6 neighbor voxels doesnot belong to the object, it will be defined as asurface voxel.)

Page 30: เอกสารการประมวลผลภาพ ชุด ๒

2nd Step: Depth encoding of the Voxels.

The previously identified surface voxels have all the same greyvalue and would result as a non structured evenly grey image on thescreen of the monitor. Therefore, in a second step, the grey values ofthe voxels are adjusted according to the distance of the surface voxelsto the screen.

z

x

y

All voxels have the same grey value

Depth dependentadjustment of the grey

values.

distance (depth)

Surface rendering: Iso-Surface modelling

Page 31: เอกสารการประมวลผลภาพ ชุด ๒

3rd step: Shadowing

The topology can be accentuated using a one sided shadowing effect.To do that, neighboring surface voxels are connected to form a polygon.The grey values of the surface voxels are adjusted dependent on the an-gle between the viewing direction and the normal of the polygon surface.

Viewing direction

and incident lightThe normal

to the poly-

gon and the

viewing

direction

include the

angle " .

Sur-face voxels define polygons

!

Surface rendering: Iso-Surface modelling

Page 32: เอกสารการประมวลผลภาพ ชุด ๒

Thresholds 110 (red) und 60 (white) + Transparency

Representation of several surfaces

Page 33: เอกสารการประมวลผลภาพ ชุด ๒

Surface models of the same dendrites using different threshold values

Which model shows the real surface ?

Threshold 68 Threshold 138

Surface modeling: setting the threshhold

Page 34: เอกสารการประมวลผลภาพ ชุด ๒

Adequate Filament Imaging

Page 35: เอกสารการประมวลผลภาพ ชุด ๒

Stereo-Representation

The 3D impression can be achieved squinting the eyes or using special stereo

viewers (or crossing the eyes).

The depth feeling can be simulated by calculating two separate slightly tilted

3D-models of the same scene as if they were viewed by the left eye and the right

eye. The final stereo pair can be observed using different techniques.

Page 36: เอกสารการประมวลผลภาพ ชุด ๒

Stereo-

Represent

ation II

The 2 pictures

of the stereo

pair

are colored in

red & green and

superimposed.

The 3D im-

pression can be

achieved using

bicolor goggels.

Page 37: เอกสารการประมวลผลภาพ ชุด ๒

Surface view combined

with the visualization of

internal structures

Surface view

Looking inside

Page 38: เอกสารการประมวลผลภาพ ชุด ๒

Mo l,stained with acridine orange - 20 optical sections

Gallery view of 20 optical sections

3D-representation: x-y, x-z, y-z

x-y y-z

x-z

Section view of 20 sections

Page 39: เอกสารการประมวลผลภาพ ชุด ๒

Looking inside

Transparency & slicer tool

Page 40: เอกสารการประมวลผลภาพ ชุด ๒

Looking inside

... by using transparency

Page 41: เอกสารการประมวลผลภาพ ชุด ๒

Animations - fly through

Volume and surfacerendering allow you toturn and zoom the dataset. Extreme Zoomallows you to virtuallyenter the sample.

Page 42: เอกสารการประมวลผลภาพ ชุด ๒

Measurements

i.e.:

- Automated data segmentation

- Particle counting

- Size regognition

- Distance measuerments

- Filament tracking

- Movement tracing

" Results are visualized in the 3D model

" Results are listed as numbers in Exel-sheets

Page 43: เอกสารการประมวลผลภาพ ชุด ๒

Colocalisation

The relation of the intensity values

from 2 channels are presented in

a two dimensional histogram.

In case of colocalization, the inten-

sity clouds of both channels are

overlapping.

Colocalization is not an absolute

fact but allways relate to voxel size

and resolution.

Page 44: เอกสารการประมวลผลภาพ ชุด ๒

AnimationsAnimations are series of single images put together into a movie. The images might be a

volume view, a projection, a slice, a time point. The animation is done by just playing the

sequential data set, or by rotating 3D models or volume representations, by zoom-in & fly-

through motions, changing of surfaces and transparencies, etc.

Today#s computer allow to calculate and

represent animated sequences reasonably

fast. Movie files can be published i.e in

power point or on the web. Also interactive

file formats are possible.

Page 45: เอกสารการประมวลผลภาพ ชุด ๒

Animation in time

Changes of a 3D-volume with time might be

presented as a gallery of projection views -or as a movie. Animation and stereo view

facilitate the recognition of spheric relations

in this context.

t1

t2

t3

t4

Page 46: เอกสารการประมวลผลภาพ ชุด ๒

Analysis&Animation

Particlesrecognition

and tracing

in time

Page 47: เอกสารการประมวลผลภาพ ชุด ๒

Deconvolution

What is to be gained?

• Increase in resolution x, y, z

• Noise is reduced

• The image formation process is optimized

(astigmatism, point spread function, ...)

Widefield fluorescent data can be improved a lot by decon-

volution.

Confocal data show less z-distortions, less out-of-focus blur,...

-> deconvolution shows only very little effect.

Page 48: เอกสารการประมวลผลภาพ ชุด ๒

Fluorescent bead with a diameter of 0,1 µm

Convolution - Theory

Page 49: เอกสารการประมวลผลภาพ ชุด ๒

•Measure object of known size, but smaller than the

resolution of the microscope (i.e. 100nm fluorescent

beads)

•Compare the microscope image with the

ideal/theoretical representation of the object.

•Determine the difference of the measured and the

real object.

•Correct unknown objects with the determined

difference.

Deconvolution procedure

measured

„real“

Page 50: เอกสารการประมวลผลภาพ ชุด ๒

Deconvolution effect

Page 51: เอกสารการประมวลผลภาพ ชุด ๒

3D, 4D, 5D- data reconstruction is time consuming!!!

=>Only correctly recorded images are worth to spend the time to deal

with the 3D presentation!!!

=> Keep your data small:

° Reduce image resolution (512 x 512 pixel = 262 kB).

° Crop images so that they containing only the most important structural details.

° Work with as less channels as possible.

° stay with 8 bit

=>Keep the coffee pot hot in order to wait patiently until the calculations are finished.

=>Use classical image processing tools to improve the quality of the images.

and: Don$t expect to much of a 3-D presentation.