image analysis 1 - université laval · image analysis 1 1- introduction to image analysis software...

41
Image Analysis 1 1- Introduction to image analysis software “ImageJ” -development history -ImageJ vs. Fiji -installation -ImageJ website -sample images -tour of software environment 2- Basic image analysis using ImageJ: -opening/saving a file -file size vs. bit-depth and image-resolution -calibration -histograms, “live updates” -contrast, brightness, saturation -measurement: linear profiles, statistical information -Region of Interest (ROI) and local measurements/manipulations -image calculations 1

Upload: dangkhanh

Post on 16-May-2018

359 views

Category:

Documents


9 download

TRANSCRIPT

Page 1: Image Analysis 1 - Université Laval · Image Analysis 1 1- Introduction to image analysis software “ImageJ ... Documentation ImageJ User Guide 3. Documentation Keyboard Shortcuts

Image Analysis 1

1- Introduction to image analysis software “ImageJ”

-development history

-ImageJ vs. Fiji

-installation

-ImageJ website

-sample images

-tour of software environment

2- Basic image analysis using ImageJ:

-opening/saving a file

-file size vs. bit-depth and image-resolution

-calibration

-histograms, “live updates”

-contrast, brightness, saturation

-measurement: linear profiles, statistical information

-Region of Interest (ROI) and local measurements/manipulations

-image calculations 1

Page 2: Image Analysis 1 - Université Laval · Image Analysis 1 1- Introduction to image analysis software “ImageJ ... Documentation ImageJ User Guide 3. Documentation Keyboard Shortcuts

http://rsb.info.nih.gov/ijAdapted from : Joel B. Sheffield 2

Page 3: Image Analysis 1 - Université Laval · Image Analysis 1 1- Introduction to image analysis software “ImageJ ... Documentation ImageJ User Guide 3. Documentation Keyboard Shortcuts

ImageJ

• An adaptation of NIH image for the Java platform.

• Can run on any computer systems that can run Java (Sun Microsystems)

• Open source

• Two powerful scripting languages

– Java Plugins

– Macro Language

• Continual Upgrades

• Active community of several thousand users

3

Page 4: Image Analysis 1 - Université Laval · Image Analysis 1 1- Introduction to image analysis software “ImageJ ... Documentation ImageJ User Guide 3. Documentation Keyboard Shortcuts

ImageJ

• Donc, absence de licence coûteuse.

• Pas Besoin d’être à l’université pour faire ses travaux.

• Un portable est amplement suffisant pour 95% de vos besoins.

• Si on besoin de plus de mémoire pour des analyses c’est possible de utiliser l'un des différents serveurs à Laval.

• Supporte plusieurs types de langage de programmation

• Plugins (Interface permettant d'avoir accès à toute la puissance de java. Idéal pour ajouter de nouvelles fonctions à ImageJ)

4

Page 5: Image Analysis 1 - Université Laval · Image Analysis 1 1- Introduction to image analysis software “ImageJ ... Documentation ImageJ User Guide 3. Documentation Keyboard Shortcuts

Resources

5

1. Ferreia, T. et Rasband, W. Ieds) « ImageJ User Guide : IJ1.46r », National Institues of Health,

2012. (lien)

2. Baecker, V. (ed) « Workshop: Image Processing and Analysis with ImageJ », Montpellier RIO

Imaging, 2013. (lien)

3. Miure, K (ed) « Basics of image processing and analysis », Centre for Molecular and Cellular

Imaging EMBL Heidelberg, 2014. (lien)

4. ImageJ Website: http://imagej.nih.gov/ij/

5. Fiji Website: http://fiji.sc/Fiji

Page 6: Image Analysis 1 - Université Laval · Image Analysis 1 1- Introduction to image analysis software “ImageJ ... Documentation ImageJ User Guide 3. Documentation Keyboard Shortcuts

1.ImageJ Website: http://imagej.nih.gov/ij/

6

1. Features

2. Documentation ImageJ User Guide

3. Documentation Keyboard Shortcuts

4. Mailing list

5. Downloads example images (get these)

Page 7: Image Analysis 1 - Université Laval · Image Analysis 1 1- Introduction to image analysis software “ImageJ ... Documentation ImageJ User Guide 3. Documentation Keyboard Shortcuts

Menus

Page 8: Image Analysis 1 - Université Laval · Image Analysis 1 1- Introduction to image analysis software “ImageJ ... Documentation ImageJ User Guide 3. Documentation Keyboard Shortcuts

Introduction to the Main Menu

Of these, we’ll concentrate on:

– Image

– Process

– Analyze

– Plugins

– Help

8

Page 9: Image Analysis 1 - Université Laval · Image Analysis 1 1- Introduction to image analysis software “ImageJ ... Documentation ImageJ User Guide 3. Documentation Keyboard Shortcuts

9

L'interface principale

Ouvrir, sauvegarde,

création d'image

Montage,outils de dessin

Modification et conversion,opération

géométrique

Filtres et opérations

mathématiques

Statistiques,Mesures,graphique

Accès aux plugins

Gestion des fenêtres

Raccourcis au site web,

information et mise à jour

Page 10: Image Analysis 1 - Université Laval · Image Analysis 1 1- Introduction to image analysis software “ImageJ ... Documentation ImageJ User Guide 3. Documentation Keyboard Shortcuts

Opening and saving files

10

Drag and Drop files onto IJ control strip, or

Open samples

Page 11: Image Analysis 1 - Université Laval · Image Analysis 1 1- Introduction to image analysis software “ImageJ ... Documentation ImageJ User Guide 3. Documentation Keyboard Shortcuts

2010-03-18 11

Les Menus (Edit)

Mémoire maximum● Windows 32-bit:

le nombre le plus petit,75% du total ou 1.4 Gbit

● Windows 64-bit:75% du total

● Mac OSX 32-bit:le nombre le plus petit,75% du total ou 1.8 Gbit

● Linux 32-bit: 3 Gbit● Linux 64-bit: illimité

Page 12: Image Analysis 1 - Université Laval · Image Analysis 1 1- Introduction to image analysis software “ImageJ ... Documentation ImageJ User Guide 3. Documentation Keyboard Shortcuts

Image Menu

12

Page 13: Image Analysis 1 - Université Laval · Image Analysis 1 1- Introduction to image analysis software “ImageJ ... Documentation ImageJ User Guide 3. Documentation Keyboard Shortcuts

Image Menu

13

Demo:

1) Dot blots

Page 14: Image Analysis 1 - Université Laval · Image Analysis 1 1- Introduction to image analysis software “ImageJ ... Documentation ImageJ User Guide 3. Documentation Keyboard Shortcuts

Image Menu

14

Demo:

1) M51.tif

Adjust brightness contrast

Saturation?

No! Pixel values do not change.

Page 15: Image Analysis 1 - Université Laval · Image Analysis 1 1- Introduction to image analysis software “ImageJ ... Documentation ImageJ User Guide 3. Documentation Keyboard Shortcuts

Process Menu

15

Page 16: Image Analysis 1 - Université Laval · Image Analysis 1 1- Introduction to image analysis software “ImageJ ... Documentation ImageJ User Guide 3. Documentation Keyboard Shortcuts

Process Menu

16

Vs.

Math: +6000

Page 17: Image Analysis 1 - Université Laval · Image Analysis 1 1- Introduction to image analysis software “ImageJ ... Documentation ImageJ User Guide 3. Documentation Keyboard Shortcuts

Process Menu

17

Vs.

Image Calc.

+

Page 18: Image Analysis 1 - Université Laval · Image Analysis 1 1- Introduction to image analysis software “ImageJ ... Documentation ImageJ User Guide 3. Documentation Keyboard Shortcuts

Analyze Menu

18

Page 19: Image Analysis 1 - Université Laval · Image Analysis 1 1- Introduction to image analysis software “ImageJ ... Documentation ImageJ User Guide 3. Documentation Keyboard Shortcuts

Analyze Menu

19

Demo:

1) Dot blots

-Measure

-Set measurements

-Changing measurement types and loss of information

2) Embryos

-RGB

Page 20: Image Analysis 1 - Université Laval · Image Analysis 1 1- Introduction to image analysis software “ImageJ ... Documentation ImageJ User Guide 3. Documentation Keyboard Shortcuts

Analyze Menu

20

Demo:

1) Results

-Set measurements

-Distribution

-Options (file type for saving)

2) Edit

-Copy data

Page 21: Image Analysis 1 - Université Laval · Image Analysis 1 1- Introduction to image analysis software “ImageJ ... Documentation ImageJ User Guide 3. Documentation Keyboard Shortcuts

Analyze Menu

21

Demo:

1) Dot blots

-Log

-Live

-List

-Copy

-Statistics

2) Embryos

-RGB

Page 22: Image Analysis 1 - Université Laval · Image Analysis 1 1- Introduction to image analysis software “ImageJ ... Documentation ImageJ User Guide 3. Documentation Keyboard Shortcuts

22

Plugins

• ImageJ peut être considéré comme un

ensemble de petits programmes ou

« plugins » écrit en java.

• Cette structure modulaire à l'avantage de

permettre d'ajouter facilement de nouvelles

fonctions à ImageJ.

• Different versions d’ImageJ ont different

plugins “bundled” ensemble

Page 23: Image Analysis 1 - Université Laval · Image Analysis 1 1- Introduction to image analysis software “ImageJ ... Documentation ImageJ User Guide 3. Documentation Keyboard Shortcuts

Plugins Menu

23

Page 24: Image Analysis 1 - Université Laval · Image Analysis 1 1- Introduction to image analysis software “ImageJ ... Documentation ImageJ User Guide 3. Documentation Keyboard Shortcuts

24

Enregistrement des commandes de

macro et registre des opérations

Plugins > Macros > Record...

• Enregistre les actions

effectuées et les

transpose en langage

de macros.

• Peut aussi être utilisé

pour laisser une trace

des opérations

effectuées

• Demo

Page 26: Image Analysis 1 - Université Laval · Image Analysis 1 1- Introduction to image analysis software “ImageJ ... Documentation ImageJ User Guide 3. Documentation Keyboard Shortcuts

Help Menu

26

Page 27: Image Analysis 1 - Université Laval · Image Analysis 1 1- Introduction to image analysis software “ImageJ ... Documentation ImageJ User Guide 3. Documentation Keyboard Shortcuts

Opening and saving files

27

Dot_Blot.tif (open sample images)

File size = 141kB

Image Adjust Type

Change to 16-bit

Histogram comparison

Page 28: Image Analysis 1 - Université Laval · Image Analysis 1 1- Introduction to image analysis software “ImageJ ... Documentation ImageJ User Guide 3. Documentation Keyboard Shortcuts

Opening and saving files

28

Dot_Blot.tif (open sample images)

File size = 141kB

Image Adjust Type

Apply LUT

Histogram comparison

“Ice”

“fire”

Page 29: Image Analysis 1 - Université Laval · Image Analysis 1 1- Introduction to image analysis software “ImageJ ... Documentation ImageJ User Guide 3. Documentation Keyboard Shortcuts

Opening and saving files

29

Dot_Blot.tif (open sample images)

File size = 141kB

Adjust size reduce save

Zoom comparison.

File size comparison

Page 30: Image Analysis 1 - Université Laval · Image Analysis 1 1- Introduction to image analysis software “ImageJ ... Documentation ImageJ User Guide 3. Documentation Keyboard Shortcuts

Opening and saving files

30

Dot_Blot.tif (open sample images)

File size = 141kB

Adjust size reduce save

Zoom comparison.

File size comparison

Exercise:

Save as jpg

File size = 7kB

Save back to tiff

File size = 141 kB

Zooming

Pixels, position indicator, intensity value

Page 31: Image Analysis 1 - Université Laval · Image Analysis 1 1- Introduction to image analysis software “ImageJ ... Documentation ImageJ User Guide 3. Documentation Keyboard Shortcuts

Opening and saving files

31

Dot_Blot.tif (open sample images)

File size = 141kB

Adjust size reduce save

Zoom comparison.

File size comparison

Exercise:

Save as jpg

File size = 7kB

Save back to tiff

File size = 141 kB

Zooming

Pixels, position indicator, intensity value

Page 32: Image Analysis 1 - Université Laval · Image Analysis 1 1- Introduction to image analysis software “ImageJ ... Documentation ImageJ User Guide 3. Documentation Keyboard Shortcuts

Opening and saving files

32

Dot_Blot.tif (open sample images)

Exercise:

1. Save as jpg

File size = 7kB

Do an image subtraction of new file

from original file.

2. Save back to tiff

File size = 141 kB

Do an image subtraction of new file

from original file.

Page 33: Image Analysis 1 - Université Laval · Image Analysis 1 1- Introduction to image analysis software “ImageJ ... Documentation ImageJ User Guide 3. Documentation Keyboard Shortcuts

Opening and saving files

33

M51c.tif (open sample images)

Demo:

1. Save as jpg

File size = 4kB

Do an image subtraction of new file

from original file.

2. Save back to tiff

File size = 160 kB

Do an image subtraction of new file

from original file.

Page 34: Image Analysis 1 - Université Laval · Image Analysis 1 1- Introduction to image analysis software “ImageJ ... Documentation ImageJ User Guide 3. Documentation Keyboard Shortcuts

Pixel locator/grey value

34

Dot_Blot.tif (open sample images)

Zooming

Pixels, position indicator, intensity value

Page 35: Image Analysis 1 - Université Laval · Image Analysis 1 1- Introduction to image analysis software “ImageJ ... Documentation ImageJ User Guide 3. Documentation Keyboard Shortcuts

The Image Histogram

Log Scale

The histogram shows the number of pixels of

each value, regardless of location. The log

display allows for the visualization of minor

components. Note that there are unused pixel

values

35

Page 36: Image Analysis 1 - Université Laval · Image Analysis 1 1- Introduction to image analysis software “ImageJ ... Documentation ImageJ User Guide 3. Documentation Keyboard Shortcuts

In this case, the log display indicates that virtually all pixel values are used, even

though they are a small percentage of the total.

Log Scale

36

Page 37: Image Analysis 1 - Université Laval · Image Analysis 1 1- Introduction to image analysis software “ImageJ ... Documentation ImageJ User Guide 3. Documentation Keyboard Shortcuts

Brightness Adjustment

The brightness adjustment essentially adds or subtracts a constant to every pixel,

causing a shift in the histogram along the x axis, but no change in the distribution37

Page 38: Image Analysis 1 - Université Laval · Image Analysis 1 1- Introduction to image analysis software “ImageJ ... Documentation ImageJ User Guide 3. Documentation Keyboard Shortcuts

Contrast Enhancement

For contrast enhancement, a lower value, in this case, 88, is set at zero, and a higher value, 166, is set at 255. The values of each of the pixels are adjusted proportionately. Note that because of the integer values, not all of the pixel values are used. 38

Page 39: Image Analysis 1 - Université Laval · Image Analysis 1 1- Introduction to image analysis software “ImageJ ... Documentation ImageJ User Guide 3. Documentation Keyboard Shortcuts

39

Addition et soustractionProcess > Math > Add...

Original

-125

+125

Addition et soustraction = modifie la brillance de l'image

Page 40: Image Analysis 1 - Université Laval · Image Analysis 1 1- Introduction to image analysis software “ImageJ ... Documentation ImageJ User Guide 3. Documentation Keyboard Shortcuts

40

Multiplication et divisionProcess > Math > Multiply...

Original

X 0.5 X 2

Multiplication et division = modifie le contraste de l'image

Page 41: Image Analysis 1 - Université Laval · Image Analysis 1 1- Introduction to image analysis software “ImageJ ... Documentation ImageJ User Guide 3. Documentation Keyboard Shortcuts

41

Amélioration automatique du contraste

Process > Enhance Contrast