89
Introduction to Image Analysis with

Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

  • Upload
    others

  • View
    21

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

Introduction to Image Analysis with

Page 2: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

PLEASE ENSURE FIJI IS INSTALLED CORRECTLY!

Page 3: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

WHAT DO WE HOPE TO ACHIEVE?

Specifically, the workshop will cover the following topics:

1. Opening images with Bioformats

2. Interpreting histograms

3. Basic segmentation

4. Filtering images

5. Intro to morphological quantification

6. Analysis of protein expression

Page 4: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

AIMS

• General overview

• Small chunks of theory/demonstration, each followed by a practical.

• Challenges

• Break for tea/coffee at 15:30

• Finish about 17:00

FORMAT

• Introduction to image analysis concepts

• Gentle introduction to FIJI

Page 5: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

You don’t need to take notes – I will send you the slides after the workshop

Please sign the sign-in sheet

Please feel free to ask questions

HOUSEKEEPING

Page 6: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

WHY USE QUANTITATIVE IMAGE ANALYSIS?

• Microscopy historically qualitative

• New technology facilitates quantification

• Limited uptake among biologists

Experimental Outputs

“Representative Image”

Experimental Outputs

Quantitative Data

Modeling

Experimental Design

Page 7: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

Experimental Planning

Image Acquisition

Image Pre-Processing

Image Analysis

Data Analysis & Interpretation

• Experimental design is an iterative process

• High quality images absolutely crucial

• Scale up gradually

Fixed coverslips

Live cell single well

Live cell multi-well

Page 8: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

IMAGE ANALYSIS V IMAGE PROCESSING ?• Image Processing:

• Enhancement, filtering for noise reduction, image registration, etc.

• Image Analysis:

• Analysis of data contained within an image. For example, quantification of cell area.

Processing:

Analysis: DATAProcessing should be kept to a minimum – reduces

information content in image

Page 9: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

TYPICAL IMAGE ANALYSIS WORKFLOW

Image Acquisition

Spatial Resolution

Frame Rate

Exposure Time

Fluorophores

Imaging Modality

Image Pre-Processing

Background Subtraction

Noise Suppression

Segmentation

Separate Objects from Background

Manipulation of Segmentation

Create Mask Image

Analysis

Morphological Quantification

Fluorescence Analysis

Track Over Time

Page 10: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

1. There are several different ways to arrive at a solution

2. There is rarely one single correct solution

Page 11: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

ImageJ:

• Open source

• Public domain, cross-platform.

• Read most image formats (via bioformats).

• Same standard functions as proprietary packages.

• Open architecture.

• FIJI:

• Fiji Is Just ImageJ

• Actively maintained, with frequent updates.

Page 12: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image
Page 13: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

Let us begin…

Page 14: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

IF YOU FORGET HOW TO ACCESS SOMETHING…

Page 15: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

UPDATING FIJI

Page 16: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

OPENING AN IMAGE• Don’t Drag & Drop

• Bioformats ensures consistent reading of metadata• Independent project distributed with FIJI

Page 17: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

DEMO 1 – OPENING IMAGES WITH BIOFORMATS

• Import Metamorph (TIFF) Dataset:• Overview of various options presented in Bioformats GUI• Illustration of reading of MetaData• Images can appear black, but pixels have values greater

than zero

Page 18: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

ADJUSTING CONTRAST

Page 19: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

WORKING WITH CHANNELS

Page 20: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

0 25564 128 192

By default, pixel values are mapped to grey levels…

LOOK-UP TABLES (LUTS)

Page 21: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

…but there is no reason why this has to be the case.

Equivalent of Range Indicator

Page 22: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

11 11 11 13 14 17 22 37 99 204 255 255 255 224 81 17

12 12 12 13 17 25 58 156 243 255 255 255 255 255 148 14

12 13 13 15 22 59 191 255 255 255 255 255 255 255 117 9

13 14 14 17 28 153 255 255 255 255 255 255 255 224 52 8

14 15 15 18 30 180 255 255 255 255 255 255 250 116 10 10

14 15 16 18 22 87 236 255 255 255 255 227 108 15 9 10

13 14 17 17 19 21 79 171 208 189 140 64 10 9 9 9

13 14 14 14 14 14 13 18 28 24 14 10 11 10 9 8

13 12 12 12 12 13 14 13 13 13 15 14 12 10 8 8

12 11 11 12 11 13 13 13 13 14 14 12 12 11 9 9

12 12 11 12 12 13 13 12 13 13 13 13 13 11 11 9

12 13 13 12 13 12 13 13 13 12 12 13 13 13 12 10

12 12 13 12 12 12 13 13 13 13 13 13 13 12 12 11

12 12 13 12 13 13 13 13 13 13 13 13 13 13 13 13

12 13 12 13 13 12 13 12 13 13 14 14 14 13 13 13

12 12 13 13 13 13 13 13 13 13 13 13 13 13 13 13

12 13 13 12 13 14 13 13 13 13 13 12 13 14 13 13

IMAGES ARE JUST NUMBERS

“Solutions to image analysis problems often appear simple, particularly when easily accomplished by the human visual system,

which is complex and poorly understood.”

The human brain is excellent at pattern matching…

…but this can result in us seeing “patterns” that don’t really exist

Page 23: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

THIS CAN CAUSE PROBLEMS…

1976, Viking 1 2001, Mars Global Surveyor

Pareidolia is a psychological phenomenon in which the mind responds to a stimulus by perceiving a familiar pattern where none exists (e.g., in random data).

Page 24: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

Same Size

Which nucleus is brighter?

Which centre circle is bigger?

Same Colour

Page 25: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

WHAT’S YOUR POINT DAVE?!?!?

We’re here to learn image analysis – you’re preaching to the choir!

People will very often design an analysis pipeline to confirm what they

think they see visually….

…which often results in significant frustration.

Expected Result: Humanoids on Mars Actual Result: Big Rock

Page 26: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

HISTOGRAMS

A graphical representation of the distribution of numerical data

10

100

1,000

10,000

100,000

1,000,000

0 64 128 192 256

Fre

qu

en

cy

Grey Level

Page 27: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

INTERPRETING HISTOGRAMS

10

100

1,000

10,000

100,000

1,000,000

0 100 200

Fre

qu

en

cy

Grey Level

10

100

1,000

10,000

100,000

1,000,000

0 100 200

Fre

qu

en

cy

Grey Level

Page 28: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

BIT DEPTH

Bits per pixel Number of values Range of values

8 28 0 – 255

12 212 0 – 4,095

16 216 0 – 65,535

32 232 0 – 4,294,967,295

Range of values a pixel can represent

Greater bit depth means larger file sizes

Page 29: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

REDUCING BIT DEPTH LOSES INFORMATION

8-bit 7-bit 6-bit 5-bit

4-bit 3-bit 2-bit 1-bit

Page 30: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

DEMO 2 – MANIPULATING PIXEL VALUES

• Reducing bit depth incurs loss of data

• Best to deal with raw values• Operations performed more precise (e.g. lower rounding error)

• Compress for presentation

Page 31: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

IMAGE COMPRESSION

• Lossless:

• All image information is preserved when saved.

• BMP, TIFF, PNG, Text

• Typically results in large file sizes, with the exception of PNG

• Lossy:

• Image information is irretrievably lost when saved.

• JPEG, GIF

• Typically results in small file sizes

Lossy Compression: Anything that changes pixel values

Page 32: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

INTERPRETING HISTOGRAMS FURTHER

“Background”

“Foreground”

Can be exploited for segmentation

Page 33: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

WHAT IS IMAGE SEGMENTATION?

• The process of dividing an image into different regions

• Assigning a label to each pixel within an image

• Pixels within a region should have similar properties

Background

Foreground

Page 34: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

𝑇 >Average of Foreground Pixels + Average of Background Pixels

2

• FIJI has several variations on this algorithm

• Each produces different results• Result referred to as binary (or mask)

image

ForegroundBackground

Page 35: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

Click “Apply” to generate the binary image

Page 36: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

BOUNDARY BETWEEN REGIONS IS AMBIGUOUS

Segmentation is always an estimate

Page 37: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

0

100

200

300

400

0 100 200

Fre

qu

en

cy

Grey Level

0

100

200

300

400

0 50 100

Fre

qu

en

cy

Grey Level

?

UNEVEN BACKGROUND POSES PROBLEMS

Page 38: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

BACKGROUND SUBTRACTION

Page 39: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

DEMO 4 – CORRECTING UNEVEN BACKGROUND

• Investigate influence of filter radius

• Background subtractor creates an estimate of background and removes from image

Page 40: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

Filtering can be employed to improve segmentation

ANOTHER OBSTACLE TO “GOOD” SEGMENTATIONS IS SPECKLE NOISE…

Page 41: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

WHAT IS FILTERING?

• Generally refers to simple arithmetic operations on small numbers of pixels

Page 42: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

MEAN/AVERAGING FILTERING

243 185 185

19 246 105

225 221 119

Replaces central value with average of all values

243 185 185

19 172 105

225 221 119

Page 43: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

FILTERING IN ACTION

Input Output

Page 44: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

MeanInput

MEAN FILTERING “BLURS” NOISE

But remember, information is also lost!

Page 45: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

MEDIAN FILTERING

Replaces central value with median value

243 185 185

19 246 105

225 221 119

243 185 185

19 185 105

225 221 119

Page 46: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

Input

MEDIAN FILTERING PRESERVES EDGES

Median

Page 47: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

Gaussian Filter

GAUSSIAN FILTERING

• Approximation of Airy Disk• Essentially a weighted mean

filter

Mean Filter

Airy Disk 2D Gaussian

Page 48: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

MeanInput

Median

Gaussian

Unfiltered Output Filtered Output

Processing:

Page 49: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

DEMO 5 - FILTERS

• Notice the effect of varying filter radius

• Observe the difference in edge preservation between mean and median filters

Page 50: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

MORPHOLOGICAL ANALYSIS

How do we extract numerical data from segmented images?

Page 51: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

MORPHOLOGICAL ANALYSIS

Page 52: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image
Page 53: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image
Page 54: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

Erosion

Dilation

Erosion + Dilation = Opening

MORPHOLOGICAL FILTERING

Page 55: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

Morphological filters can be used to:• Remove small artefacts• Break “bridges”• Watershed: break apart

touching cells

Page 56: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

DEMO 6 – WORKING WITH BINARY IMAGES

• Demo particle analyser and morphological filters

• Show how to specify background colour for analyser

Page 57: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

CHALLENGE 1

• Process > FiltersFilter Noise

• Image > Adjust > ThresholdSegment Cells From Background

• Process > BinaryManipulate Segmentation

• Analyze > Set MeasurementsSpecify Morphological Measurements

• Analyze > Analyze ParticlesQuantify Morphology

1. Count the number of cells2. Estimate the mean cell area

Note: You may find it helpful to duplicate and/or rename images as you work

Page 58: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

CHALLENGE 1

• Which variables in your analysis pipeline will have the greatest impact on your result?

• Could the images be improved in any way to facilitate easier analysis?

• Can you think of an alternative approach?

• Process > FiltersFilter Noise

• Image > Adjust > ThresholdSegment Cells From Background

• Process > BinaryManipulate Segmentation

• Analyze > Set MeasurementsSpecify Morphological Measurements

• Analyze > Analyze ParticlesQuantify Morphology

Page 59: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

SOLUTION TO CHALLENGE 1

Page 60: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

HOW DO PARAMETER VALUES AFFECT THE RESULT?

0

5

10

15

20

25

49 51 53 55 57 59 61 63 65

N

Number of Nuclei

𝑁𝑡𝑜𝑡𝑎𝑙 = 100

Page 61: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

USING MORPHOLOGICAL CRITERIA

Page 62: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

REPEAT ANALYSIS ON CLUMPED CELLS

Page 63: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

ALTERNATIVE APPROACH: REGION-GROWING

Use nuclei as seeds for conditional dilation

Page 64: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

ANALYSING MULTIPLE CHANNELS

What if we want to analyse protein expression?

Page 65: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

FIJI restricts measurements to within Regions of Interest (ROIs)

1. Generate an ROI

2. Apply ROI to image

3. Measure the pixel values in the image within the ROI

Page 66: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

IT’S POSSIBLE TO SPECIFY ROIS MANUALLY

ROI Drawing Tools

Page 67: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

Masks and ROIS can be considered interchangeable

PARTICLE ANALYSER GENERATES ROIS “BEHIND THE SCENES”

Page 68: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

1. Using Particle Analyser to generate an ROI

2. Apply ROI to image

3. Measure the pixel values in the image within the ROI

Page 69: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

ROI MANAGER CAN ALSO BE ACCESSED MANUALLY…

Page 70: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

DEMO 7 – GENERATING ROIS AUTOMATICALLY

Demonstration of Particle Analyser’s ability to generate regions of interest

1. Using Particle Analyser to generate an ROI

2. Apply ROI to image

3. Measure the pixel values in the image within the ROI

Page 71: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

Binary Mask

Fluorescent Signal

FIJI will always apply measurements to whatever image is specified here

Page 72: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

DEMO 8 – QUANTIFYING FLUORESCENCE

Demonstration of Particle Analyser’s ability to apply ROIs to measure grey levels

Page 73: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

WHAT IF WE WANT TO EXAMINE DIFFERENCES IN PROTEIN EXPRESSION…

…between here…

…and here?

Require two different ROIs

1. Generate an ROI

2. Duplicate ROI and manipulate in some way

3. Apply ROIs to image, one at a time

4. Measure the pixel values in the image within the ROIs

Page 74: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

Erosion

POSSIBLE TO MANIPULATE MASK PRIOR TO ROI GENERATION

How do we generate a mask to represent the cell boundary?

Page 75: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

Calculate difference between these… …to produce this.

Page 76: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

CHALLENGE 2

Estimate the difference in mCherry expression between the cell edge and the cell centre

• Process > FiltersFilter Noise

• Image > Adjust > ThresholdSegment cells from background

• Process > BinaryManipulate Segmentation

• Process > Image CalculatorCreate New Mask Image

• Analyze > Set MeasurementsSpecify Morphological Measurements

• Analyze > Analyze ParticlesQuantify Morphology & Fluorescence

Page 77: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

CHALLENGE 2

• Which variables in your analysis pipeline will have the greatest impact on your result?

• Is the result what you expected?• Why?• What could explain any discrepancy between what you see

“visually” and what you obtain quantitatively.

• Process > FiltersFilter Noise

• Image > Adjust > ThresholdSegment cells from background

• Process > BinaryManipulate Segmentation

• Process > Image CalculatorCreate New Mask Image

• Analyze > Set MeasurementsSpecify Morphological Measurements

• Analyze > Analyze ParticlesQuantify Morphology & Fluorescence

Page 78: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

SOLUTION TO CHALLENGE 2

Page 79: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

Everything we have done can also be applied to 3- & 4-D datasets

Page 80: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

CHALLENGE 3

• Process > FiltersFilter Noise

• Image > Adjust > ThresholdSegment cells from background

• Process > BinaryManipulate Segmentation

• Process > Image CalculatorCreate New Mask Image

• Analyze > Set MeasurementsSpecify Morphological Measurements

• Analyze > Analyze ParticlesQuantify Morphology & Fluorescence

Determine whether mCherry localisation varies over time

Page 81: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

0.0

0.5

1.0

1.5

2.0

2.5

3.0

0 20 40 60 80 100 120

Rat

io

Time (s)

Edge Area / Centre Area Edge Mean / Centre Mean Edge Std Dev / Centre Std Dev

𝑁𝑒𝑟𝑜𝑠𝑖𝑜𝑛𝑠 = 4

Page 82: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

0.0

0.5

1.0

1.5

2.0

2.5

3.0

0 20 40 60 80 100 120

Rat

io

Time (s)

Edge Area / Centre Area Edge Mean / Centre Mean Edge Std Dev / Centre Std Dev

𝑁𝑒𝑟𝑜𝑠𝑖𝑜𝑛𝑠 = 2

Page 83: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

EASY TO EXTEND THIS APPROACH…

For example, to compare nuclear & non-nuclear expression

Page 84: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

ADVANCED TOPICS

• Object Tracking

• Colocalisation analysis

• Writing macros & plugins

Page 85: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image
Page 86: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

https://www.futurelearn.com/courses/image-analysis

Page 87: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

LEARN MORE

Crick Advanced Light Microscopy ● SW312 ● [email protected]

Page 88: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image
Page 89: Introduction to Image Analysis with - Crick · IMAGE ANALYSIS V IMAGE PROCESSING ? •Image Processing: •Enhancement, filtering for noise reduction, image registration, etc. •Image

Have a Nice Weekend