Image analysis workshop ICASS 2015 Halifax 1 Jesse Greener Microfluidics and Spectroscopy of Materials Laval University, Department of Chemistry Pavillon Alexandre-Vachon 1045, avenue de la médecine, local 3607 https://jgreener.chm.ulaval.ca/ [email protected]
82
Embed
Image analysis workshop ICASS 2015 - Université Laval · 2015-05-21 · Part 2 – Human imaging: the eye Similar concepts in human and scientific vision: -Light intensity -Light
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
4- Image processing vs. data manipulation-examples
5- Introduction to imaging processing with ImageJ
2
Section 1 - Human vision
Section 1 Plan
1- The human eye and visual representation of the real world
2- Introduction to digital images
3- Introduction to image processing
4- Digital image manipulation-examples
3
Part 2 – Human imaging: the eye
The human eye:
We all have them.
Data is acquired and represented in very similar way to scientific instrumentation:
consisting of optical elements and photo detectors.
4
Part 2 – Human imaging: the eye
Detection elements: cones and rods:
Cones : colour discrimination high resolution imaging.
Rods: colourless, high sensitivity for low-light levels, primary detector for
peripheral vison.
Photo transduction describes mechanism for capture of a photon and conversion
to a neural signal. It is a complicated biological process.
5
Part 2 – Human imaging: the eye
Detectible colour range : “visible spectrum”
6
Part 2 – Human imaging: the eye
Primary colours : inspired by 3 types of cone detectors in the eye
ɣ,β,ρ cones differences in
-frequency
-sensitivity
Colour blindness test :
http://www.xrite.com/online-color-
test-challenge
Colour sensitivity spectrum
after sensitivity adjustment
of ɣ,β,ρ cones
7
Part 2 – Human imaging: the eye
Rods for colourless vision, in low-light environments:
All frequencies are collected, but…
they do not register in the brain as colour.
Maximum light sensitivity at 550nm.
Corresponds to what? 8
Part 2 – Human imaging: the eye
Spatial resolution (visual acuity): measured ability to discriminate b/w two
closely spaced objects. Measured by:
Eye charts: Contrast sensitivity:
9
Part 2 – Human imaging: the eye
Similar concepts in human and scientific vision:
-Light intensity
-Light frequency
-Position, changing position (motion)
-Photodetectors (colour/b&w)
-Frequency reconstruction based on RGB detector elements
-Limits of detection (intensity, target duration, spectral window, spatial and spectral
resolution)
Sensitive to: -Colour (100 different colours ). -Intensity (16-32 shades of grey), -Minimum number of photons to be registered by humans is 5-14. -Differences in position (1-3 cm from 20 m)
-Motion via simultaneous imaging with peripheral vision (low resolution due to low clustering of cones and rods away from central focal point)
Therefore, we talk about photons and optical elements.
11
Part 3 – Introduction to Digital images
Why use micro imaging?
To acquire optical images at the microscale that reveal information that cannot
be seen by the eye:
• Discriminate between very close objects
(improve spatial resolution and magnification)
• Discriminate between subtle differences in photon intensity
• Extend the sensitivity outside of visible spectral bandwidth
• Analyse very small that chages/movemement in samples in time
• Precisely coordinate measurements with other events
12
Part 3 – Introduction to Digital images
How are images represented by a computer?
An image
is a visual representation of… …an array of numbers
13
Part 3 – Introduction to Digital images
Pixel resolution:
Screen resolution : Pixels Per Inch (PPI)
Print resolution : Dots Per Inch (DPI)
Dots/Pixels per square inch : Monitor resolution = 68-110 PPI Eg: 72 PPI = 72 spatial positions (pixels) in 1” 72 PPI image has 722 (=5184) pixels in a 1” x 1” square
Dots/Pixels per square inch : 1080x1920 ≈ 2M Screen dimensions = 11 in x26 in = 286 in2
Resolution = 7250 PPI2
= 85 PPI
14
Part 3 – Introduction to Digital images
Pixel resolution:
Note: Camera resolution often quoted in Megapixels
Estimated DPI 35mm film: 20 megapixels
MegaPixels : Total number of camera sensing pixels Example : 5 Megapixel camera 2560x1920=4 915 200 ≈ 5 Mpixel
15
Part 3 – Introduction to Digital images
Pixel resolution:
Note: Camera resolution often quoted in Megapixels
Pixels distributed over the sensing area
MegaPixels : Total number of camera sensing pixels Example : 5 Megapixel camera 2560x1920=4 915 200 ≈ 5 Mpixel
Which requires a certain pixel size
16
Part 3 – Introduction to Digital images
Display resolution: Due to fixed monitor display resolution, higher megapixel
resolution means larger display size.
17
Note: This is why when you change your monitor resolution, the size of all
display items change.
Part 3 – Introduction to Digital images
Bit-depth resolution in greyscale:
8-bit: intensity ranging from black to white is binned into 28 = 256 different values
(approximately 4 times more intensity sensitivity than the eye).
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
62
Image Menu
63
Demo:
1) M51.tif
Adjust brightness contrast
Saturation?
No! Pixel values do not change.
Process Menu
64
Process Menu
65
Vs.
Math: +6000
Process Menu
66
Vs.
Image Calc.
+
Analyze Menu
67
Demo:
1) Dot blots
-Measure
-Set measurements
-Changing measurement types and loss of information
2) Embryos
-RGB
Analyze Menu
68
Demo:
1) Results
-Set measurements
-Make measurements
-Use math function
-Summarize
2) Edit
-Copy data
3) Plot in Excel Exercise:
1) Open M51 Galaxy sample image
-Set measurements
-Make measurements
-Use multiply command in Process/math menu (x2)
-Make measurement
-repeat 5 times
3) Plot in Excel
Analyze Menu
69
Subtract (-25)
y = 165,68e0,6931x
0
500
1000
1500
2000
2500
3000
0 1 2 3 4 5
y = -25x + 2650,6
2540
2550
2560
2570
2580
2590
2600
2610
2620
2630
0 1 2 3 4 5
Multiply (x2)
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 distribution 70
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. 71
72
Addition and subtraction Process > Math > Add...
Original -125 +125
Addition and subtraction = modification in the image brightness
2500
2550
2600
2650
0 5
73
Multiplication et division Process > Math > Multiply...
Original
X 0.5 X 2
Multiplication and division = modifies the image contrast
0
1000
2000
3000
0 5
74
Automatic optimization of contrast
Process > Enhance Contrast
Thresholding
75
Analyze particles
Plugins Menu
76
Automation with ImageJ: Macros
78
Image stacks
Demo: Open Stack1-5 images “Set properties” Z-stacks, time-stacks, etc. “Set scale”