image analysis using r2
TRANSCRIPT
7/29/2019 Image Analysis Using R2
http://slidepdf.com/reader/full/image-analysis-using-r2 1/25
Chris Campbell
LondonR - 13th July 2010
Image Analysis Using R
7/29/2019 Image Analysis Using R2
http://slidepdf.com/reader/full/image-analysis-using-r2 2/25
Steps to image analysis• Image capture
• Clean image/reduce noise
• Extract information
• Analyze information
7/29/2019 Image Analysis Using R2
http://slidepdf.com/reader/full/image-analysis-using-r2 3/25
Image Capture
Light
Photography
Light microscopy
Fluorescence microscopy
gels
cells
tissue samples
http:// ... western blothttp:// ... cells
7/29/2019 Image Analysis Using R2
http://slidepdf.com/reader/full/image-analysis-using-r2 4/25
Image Capture
Light
Photography
Light microscopy
Fluorescence microscopy
gels
cells
tissue samples
X-rayRadiography
Computed tomography (CT)
bones
tumours
http:// ... x-rayhttp:// ... cat scan
7/29/2019 Image Analysis Using R2
http://slidepdf.com/reader/full/image-analysis-using-r2 5/25
Image Capture
Light
Photography
Light microscopy
Fluorescence microscopy
gels
cells
tissue samples
X-rayRadiography
Computed tomography
bones
tumours
Magnetism Magnetic resonance imaging (MRI) patients
http:// ... MRI
7/29/2019 Image Analysis Using R2
http://slidepdf.com/reader/full/image-analysis-using-r2 6/25
Image Capture
Light
Photography
Light microscopy
Fluorescence microscopy
gels
cells
tissue samples
X-rayRadiography
Computed tomography
bones
tumours
Magnetism Magnetic resonance imaging patients
ElectronsScanning electron microscopy
Transmission electron microscopy
insects
viruses
http:// ... SEM insecthttp:// ... TEM virus
7/29/2019 Image Analysis Using R2
http://slidepdf.com/reader/full/image-analysis-using-r2 7/25
Image Capture
Light
Photography
Light microscopy
Fluorescence microscopy
gels
cells
tissue samples
X-rayRadiography
Computed tomography
bones
tumours
Magnetism Magnetic resonance imaging patients
ElectronsScanning electron microscopy
Transmission electron microscopy
insects
viruses
PositronsPositron emission tomography
(PET)
tumours
http:// ... positron emission tomography
7/29/2019 Image Analysis Using R2
http://slidepdf.com/reader/full/image-analysis-using-r2 8/25
Image Capture
Light
Photography
Light microscopy
Fluorescence microscopy
gels
cells
tissue samples
X-rayRadiography
Computed tomography
bones
tumours
Magnetism Magnetic resonance imaging patients
ElectronsScanning electron microscopy
Transmission electron microscopy
insects
viruses
PositronsPositron emission tomography
(PET)
tumours
Intermolecular
forces
Atomic force microscopy inorganic surfaceshttp://pico.iis.u-tokyo.ac.jp/media/16/20060621-QuenchedSi-AFM.jpg
7/29/2019 Image Analysis Using R2
http://slidepdf.com/reader/full/image-analysis-using-r2 9/25
Generally… • Use large numbers of images
• Use all images
• Use whole image, not crop
• Random selection not "typical region"
• i.e. avoid subjectivity
7/29/2019 Image Analysis Using R2
http://slidepdf.com/reader/full/image-analysis-using-r2 10/25
Image Processing Libraries in CRANbiOps Image processing and analysis
dcemri A Package for Medical Image Analysis
dpmixsim Dirichlet Process Mixture model simulation for clustering & image segmentation
edci Edge Detection and Clustering in Images
epsi Edge Preserving Smoothing for Images
FITSio FITS (Flexible Image Transport System) utilities
PET Simulation and Reconstruction of PET Images
R4dfp 4dfp MRI Image Read & Write Routines
rimage Image Processing Module for R
RImageJ R bindings for ImageJ
ripa R Image Processing & Analysis
tractor.base A package for reading, manipulating & visualising magnetic resonance images
adimpro Adaptive Smoothing of Digital Images
7/29/2019 Image Analysis Using R2
http://slidepdf.com/reader/full/image-analysis-using-r2 11/25
Libraries in CRANbiOps Image processing and analysis
dcemri A Package for Medical Image Analysis
dpmixsim Dirichlet Process Mixture model simulation for clustering & image segmentation
edci Edge Detection and Clustering in Images
epsi Edge Preserving Smoothing for Images
FITSio FITS (Flexible Image Transport System) utilities
PET Simulation and Reconstruction of PET Images
R4dfp 4dfp MRI Image Read & Write Routines
rimage Image Processing Module for R
RImageJ R bindings for ImageJ
ripa R Image Processing & Analysis
tractor.base A package for reading, manipulating & visualising magnetic resonance images
adimpro Adaptive Smoothing of Digital Images
7/29/2019 Image Analysis Using R2
http://slidepdf.com/reader/full/image-analysis-using-r2 12/25
• Open source
• Java
• Image analysis software http://rsbweb.nih.gov/ij/
package:RImageJ• Authors: Romain Francois & Philippe Grosjean
• Bindings between R and ImageJ
7/29/2019 Image Analysis Using R2
http://slidepdf.com/reader/full/image-analysis-using-r2 13/25
Subjectivity vs. Objectivity• Hypothesis: blue blobs are always larger than yellow blobs
7/29/2019 Image Analysis Using R2
http://slidepdf.com/reader/full/image-analysis-using-r2 14/25
Subjectivity• Hypothesis: blue blobs are always larger than yellow blobs
Manualmeasurements
7/29/2019 Image Analysis Using R2
http://slidepdf.com/reader/full/image-analysis-using-r2 15/25
Subjectivity• Hypothesis: blue blobs are always larger than yellow blobs
It’s easy to accept
manualmeasurements
when they makesense, but it’s
tempting torepeat them if they seem wrong
7/29/2019 Image Analysis Using R2
http://slidepdf.com/reader/full/image-analysis-using-r2 16/25
Subjectivity• Hypothesis: blue blobs are always larger than yellow blobs
Subjectiveobserver acceptsexpected
hypothesis
7/29/2019 Image Analysis Using R2
http://slidepdf.com/reader/full/image-analysis-using-r2 17/25
Objectivity• Hypothesis: blue blobs are always larger than yellow blobs
Automaticallythreshold
7/29/2019 Image Analysis Using R2
http://slidepdf.com/reader/full/image-analysis-using-r2 18/25
Objectivity• Hypothesis: blue blobs are always larger than yellow blobs
Objective observer automates analysisand rejects
hypothesis
7/29/2019 Image Analysis Using R2
http://slidepdf.com/reader/full/image-analysis-using-r2 19/25
Automate Procedures• Identify objects without making subjective decisions
7/29/2019 Image Analysis Using R2
http://slidepdf.com/reader/full/image-analysis-using-r2 20/25
Run ImageJ from R• Open connection to
an image
• Use IJ$run() to
access macros
• Great potential for
automating image
processing from R
7/29/2019 Image Analysis Using R2
http://slidepdf.com/reader/full/image-analysis-using-r2 21/25
Run ImageJ from R• However, some key macros not yet implemented
(e.g. setAutoThreshold, imageCalculator)
7/29/2019 Image Analysis Using R2
http://slidepdf.com/reader/full/image-analysis-using-r2 22/25
package:rimage• Author: Nikon
• Reads jpegs into
RGB arrays
• Plot function defined
for objects of class
"imagematrix"
7/29/2019 Image Analysis Using R2
http://slidepdf.com/reader/full/image-analysis-using-r2 23/25
Analyze information• Plots and statistical summaries of particles from image
Single image
Multiple images
7/29/2019 Image Analysis Using R2
http://slidepdf.com/reader/full/image-analysis-using-r2 24/25
Conclusions• Images available?
• Ensure quality/validate method
• Choose useful measures
• Use analysis to make predictions
7/29/2019 Image Analysis Using R2
http://slidepdf.com/reader/full/image-analysis-using-r2 25/25
Acknowledgements• Mango Solutions www.mango-solutions.com
• L. R. Contreras-Rojas, R. H. Guy
http://www.bath.ac.uk/pharmacy/staff/rhg.html
• NAPOLEON http://www.ehu.es/napoleon/