55
www.mediacy.com Introduction to Image Processing and Analysis Starting Soon…

Www.mediacy.com Introduction to Image Processing and Analysis Starting Soon…

Embed Size (px)

Citation preview

Page 1: Www.mediacy.com Introduction to Image Processing and Analysis Starting Soon…

www.mediacy.com

Introduction to Image Processing and Analysis

Starting Soon…

Page 2: Www.mediacy.com Introduction to Image Processing and Analysis Starting Soon…

www.mediacy.com

Overview

• Analytical Imaging Process or Workflow• What is an Image• Image Quality and Other Issues • Image Processing• Analysis• Advanced Techniques

Page 3: Www.mediacy.com Introduction to Image Processing and Analysis Starting Soon…

www.mediacy.com

• Sample Preparation*• Acquisition – how do we acquire an image into the

computer?• Enhancement – how do we make it look better for

visualization. How do we process the image to extract information?

• Identification – which attributes of the image are we interested in?

• Measurement – what information can we obtain?• Report Generation – how can we present this

information?• Archive – how can we store the information?

The Analytical Imaging Process

Page 4: Www.mediacy.com Introduction to Image Processing and Analysis Starting Soon…

www.mediacy.com

What is an Image?

Page 5: Www.mediacy.com Introduction to Image Processing and Analysis Starting Soon…

www.mediacy.com

What is an image?

A digital image is a numerical representation of a “picture” in a 2D array

– a set of numbers interpreted by the computer which creates a visual representation that is understood by humans.

255, 255, 199143, 97, 18732, 12, 3423, 22, 11

244, 198, 179123, 94, 19532, 43, 5213, 32, 11

253, 217, 23468, 185, 9713, 12, 2711, 14, 26

Page 6: Www.mediacy.com Introduction to Image Processing and Analysis Starting Soon…

www.mediacy.com

Pixels are identified by their position in a grid (two-dimensional array), referenced by its row (x), and column (y).

Image: Pixel Array

Pixel = Picture Element

Each pixel is a sample of an original image.

Page 7: Www.mediacy.com Introduction to Image Processing and Analysis Starting Soon…

www.mediacy.com

Binary Digits (bits)

Bitonal

0 = Black1 = White

Page 8: Www.mediacy.com Introduction to Image Processing and Analysis Starting Soon…

www.mediacy.com

• BIT DEPTH is determined by the number of bits used to define each pixel. The greater the bit depth, the greater the number of tones (grayscale or color) that can be represented.

What is bit-depth?

Page 9: Www.mediacy.com Introduction to Image Processing and Analysis Starting Soon…

www.mediacy.com

Bit Depth

How many gray levels between the darkest and brightest areas

8-bit 28 = 256 gray values

12-bit 212 = 4,096 gray values

16-bit 216 = 65,536 gray values

How many gray levels between the darkest and brightest areas

8-bit 28 = 256 gray values

12-bit 212 = 4,096 gray values

16-bit 216 = 65,536 gray values

Page 10: Www.mediacy.com Introduction to Image Processing and Analysis Starting Soon…

www.mediacy.com

What Makes a Good Image

• Nothing can substitute for excellent sample preparation

• Make full use of the dynamic range of your detector (PMT, CCD etc)*

• Avoid saturation of detector

• Properly aligned microscope

Page 11: Www.mediacy.com Introduction to Image Processing and Analysis Starting Soon…

www.mediacy.com

What Makes a Good Image

Uneven Illumination

• White Balance

• Same exposure and illumination per experiment

• Proper microscope alignment

Page 12: Www.mediacy.com Introduction to Image Processing and Analysis Starting Soon…

www.mediacy.com

What Makes a Good Image

Page 13: Www.mediacy.com Introduction to Image Processing and Analysis Starting Soon…

www.mediacy.com

How to increase S/N?• Increase signal

– Proper filter selection for fluorescence microscopy

– More efficient excitation– Improved signal capture

• Higher NA objective• More sensitive detector

and/or cooled camera• Increased exposure time

– Reduce photobleaching

Page 14: Www.mediacy.com Introduction to Image Processing and Analysis Starting Soon…

www.mediacy.com

How to increase S/N?

• Decrease noise– Reduce background

fluorescence• Non-specific binding• autofluorescence

– Reduce cross talk– Longer integration

time– Averaging removes

random noise– Image filtering

methods (Gaussian, Median etc)

– Reduce system noise

Page 15: Www.mediacy.com Introduction to Image Processing and Analysis Starting Soon…

www.mediacy.com

1x10.108 mm/pixel

2x20.216 mm/pixel

3x30.324 mm/pixel

4x40.432 mm/pixel

Same display settings

Different contrast and brightnessImages courtesy of Claire M. Brown, PhD, McGill University Department of Biochemistry

Camera Binning

Page 16: Www.mediacy.com Introduction to Image Processing and Analysis Starting Soon…

www.mediacy.com

The number of pixels in the image must be sufficient to distinguish features of interest:

Resolution

Page 17: Www.mediacy.com Introduction to Image Processing and Analysis Starting Soon…

www.mediacy.com

Page 18: Www.mediacy.com Introduction to Image Processing and Analysis Starting Soon…

www.mediacy.com

Image Enhancement

and Processing

Page 19: Www.mediacy.com Introduction to Image Processing and Analysis Starting Soon…

www.mediacy.com

Image Processing

• Why?– Prepares image/features for analysis– Remove or reduce noise– Enhance or reduce image features

• Visualization or for analysis purposes

• Important point about image processing.• These operations may or may not change the data, you

need to be aware of this and what it means to your results.

Page 20: Www.mediacy.com Introduction to Image Processing and Analysis Starting Soon…

www.mediacy.com

There are basic ways to enhance an image:

• Modify its intensity index: brightness, contrast, gamma• Background correction: flatten, compensate for irregularities• Apply a spatial filter or operation: sharpen, low-pass, edge

Advanced enhancement

• Manipulate the image frequencies: Fourier transform• Morphological transformations: erode, dilate, both…

Image Enhancement

Page 21: Www.mediacy.com Introduction to Image Processing and Analysis Starting Soon…

www.mediacy.com

Low dynamic range

Medium contrast

0 72.8571 182.143

0

10000

20000

30000

Full dynamic range

Good contrast

0 72.8571 182.143

0

10000

20000

30000

Enhancement: Grey-value Histogram Stretch

Page 22: Www.mediacy.com Introduction to Image Processing and Analysis Starting Soon…

www.mediacy.comwww.mediacy.com

brightness contrast All Threelinear gamma 0.5gamma 2

Image Intensity

Dis

play

Int

ensi

ty

Images courtesy of Claire M. Brown, PhD, McGill University Department of Biochemistry

Image Enhancement: All Three

Page 23: Www.mediacy.com Introduction to Image Processing and Analysis Starting Soon…

www.mediacy.com

Background Correction

• Background correction• Image processing method-Flatten Filter• Image Collection-Align system, maintain exp

time and illumination

Page 24: Www.mediacy.com Introduction to Image Processing and Analysis Starting Soon…

www.mediacy.com

Commonly used convolution filters:

• Low-pass: blurs, or smoothes an object

• Sharpen: enhances all intensity transitions

• Hi-pass: enhances high frequency information to increase contrast.

• Median: removes random impulse noise

Advanced Filters:

• Sigma: removes local impulse noise without

• Large Spectral: Larger kernal size Lo- and Hi-Pass filter, edge and Band Pass

Image Enhancement: Spatial Filtering

Page 25: Www.mediacy.com Introduction to Image Processing and Analysis Starting Soon…

www.mediacy.com

Examples of filter kernels: -3 -3 -3 -3 0 +3 -2 -2 -2 0 0 0 -3 0 +3 -2 +9 -2+3 +3 +3 -3 0 +3 -2 -2 -2 horizontal vertical sharpeningedge detect edge detect filter

Spatial Filters

Page 26: Www.mediacy.com Introduction to Image Processing and Analysis Starting Soon…

www.mediacy.comwww.mediacy.com

Examples

Image Enhancement: Sharpening

Page 27: Www.mediacy.com Introduction to Image Processing and Analysis Starting Soon…

www.mediacy.com

Provides a method for combining two or more images into a single resultant image. The final results will depend on the operation performed.

Logical:• AND• OR• NOT• NAND• XOR

Arithmetic:• Add• Average• Subtract • Difference• Max & Min

Arithmetic operators

Page 28: Www.mediacy.com Introduction to Image Processing and Analysis Starting Soon…

www.mediacy.com

Image Operations

Page 29: Www.mediacy.com Introduction to Image Processing and Analysis Starting Soon…

www.mediacy.com

Red

Green

Blue

Processing / EnhancementExtract Images

Page 30: Www.mediacy.com Introduction to Image Processing and Analysis Starting Soon…

www.mediacy.comwww.mediacy.com

DAPI

Cy3

FITC

Processing / EnhancementMerge Images

Page 31: Www.mediacy.com Introduction to Image Processing and Analysis Starting Soon…

www.mediacy.com

Image Analysis

Page 32: Www.mediacy.com Introduction to Image Processing and Analysis Starting Soon…

www.mediacy.com

Data Analysis Considerations

• What measurements are meaningful?

• How can I optimize my image capture to improve measurement quality?

• What image features need to be preserved?

Page 33: Www.mediacy.com Introduction to Image Processing and Analysis Starting Soon…

www.mediacy.com

What Measurements are Meaningful?

• Spatial– Length, roundness, xy coordinates

• Temporal– Velocity, distance traveled, vector

• Volumetric– Shape change, spatial relationship

• Intensity– Temporal changes, ratiometric comparisons

Page 34: Www.mediacy.com Introduction to Image Processing and Analysis Starting Soon…

www.mediacy.com

What Image Features to Preserve?

• Intensity• Spatial• Bit depth

• Some of the choices you make now can impact your ability to measure raw data later

Page 35: Www.mediacy.com Introduction to Image Processing and Analysis Starting Soon…

www.mediacy.com

Calibrated Measurements

• Manual• Automated

• Both require that the image be calibrated in advance– How many pixels

represent a given distance?

– How large an intensity change indicates a positive result?

Page 36: Www.mediacy.com Introduction to Image Processing and Analysis Starting Soon…

www.mediacy.com

Types of Measurements

• Histogram• Line Profile• Manual Measurements

– Length, area, angle, thickness, count. • Automated Measurements

– #of objects, roundness, size, % area, etc.• Object Tracking

– Distance, velocity• Edge Detection and Measurement

– Distance between features• Volume

Page 37: Www.mediacy.com Introduction to Image Processing and Analysis Starting Soon…

www.mediacy.com

Histogram

• Used to evaluate the intensity information and/or analyze the image

Page 38: Www.mediacy.com Introduction to Image Processing and Analysis Starting Soon…

www.mediacy.com

0 100 200 300

0

100

200

0 100 200 300

0

100

200

Line Profile/Automated Edge Detection

Page 39: Www.mediacy.com Introduction to Image Processing and Analysis Starting Soon…

www.mediacy.com

Thresholding / Segmentation

Page 40: Www.mediacy.com Introduction to Image Processing and Analysis Starting Soon…

www.mediacy.com

Measurement of Objects

Page 41: Www.mediacy.com Introduction to Image Processing and Analysis Starting Soon…

www.mediacy.com

Area Percentage Measurements

Page 42: Www.mediacy.com Introduction to Image Processing and Analysis Starting Soon…

www.mediacy.com

Counting Objects within Objects

• The ability to define primary objects in one image (e.g. cells nuclei, composites, etc.) and measure objects from another image that reside within these primary objects.

• Example, how many DNA repair sites are in each nuclei?

Page 43: Www.mediacy.com Introduction to Image Processing and Analysis Starting Soon…

www.mediacy.com

Object Tracking

Page 44: Www.mediacy.com Introduction to Image Processing and Analysis Starting Soon…

www.mediacy.comwww.mediacy.com

Data Output

Area

Objects

172 226.20 280.40 334.60 388.80

0

2

4

6

Correlation: .1139581

Area

Roundness

200 300 400

1

1.10

1.20

Page 45: Www.mediacy.com Introduction to Image Processing and Analysis Starting Soon…

www.mediacy.com

Advanced Techniques

Page 46: Www.mediacy.com Introduction to Image Processing and Analysis Starting Soon…

www.mediacy.comwww.mediacy.com

Extended Depth of Field

Page 47: Www.mediacy.com Introduction to Image Processing and Analysis Starting Soon…

www.mediacy.com

OBJECTIVE

Axial Resolution

Depth of Field

Z P

lane

sExtended Depth of Field cont…

Page 48: Www.mediacy.com Introduction to Image Processing and Analysis Starting Soon…

www.mediacy.comwww.mediacy.com

“Stitching” of Images through Automatic Microscope and Stage control

Tiling

Page 49: Www.mediacy.com Introduction to Image Processing and Analysis Starting Soon…

www.mediacy.comwww.mediacy.com

Colocalization

Intensities in Time-Series

Fluorescence Measurements

Page 50: Www.mediacy.com Introduction to Image Processing and Analysis Starting Soon…

www.mediacy.com

Dan MulvihillCell Developmental Biology GroupUniversity of Kent

Raw Image Deconvolved Threshold

Deconvolution - Analysis

Page 51: Www.mediacy.com Introduction to Image Processing and Analysis Starting Soon…

www.mediacy.com

Deconvolution - Visualization

Page 52: Www.mediacy.com Introduction to Image Processing and Analysis Starting Soon…

www.mediacy.comwww.mediacy.com

Volume renderingReal Time InteractionClipping

Surface renderingVolume of Interest

Three Dimensional Reconstruction and Analysis

Page 53: Www.mediacy.com Introduction to Image Processing and Analysis Starting Soon…

www.mediacy.com

Macro Recording

• A series of mouse clicks can be recorded

• Simplifies repeated operations.

• Reproducibility.

Page 54: Www.mediacy.com Introduction to Image Processing and Analysis Starting Soon…

www.mediacy.com

Credits

• Simon Watkins – University of Pittsburgh- CBI

• MDIBL/Bar Harbor - QFM course• MBL/Woods Hole – AQLM course• MBL/Woods Hole – OMIB course• UTHSCSA- Optical Microscopy course• Molecular Expressions Web Site-Mike

Davidson

Page 55: Www.mediacy.com Introduction to Image Processing and Analysis Starting Soon…

www.mediacy.com

Thank You For Attending…

Introduction to Image ProcessingPresented by Jeff Knipe

For more information, please contact:

[email protected]@mediacy.comwww.mediacy.com

Sponsored by: Media Cybernetics