Introduction to Digital Image Analysis Kurt Thorn NIC.

Slides:



Advertisements
Similar presentations
5th Intensive Course on Soil Micromorphology Naples th - 14th September Image Analysis Lecture 5 Thresholding/Segmentation.
Advertisements

5th Intensive Course on Soil Micromorphology Naples th - 14th September Image Analysis Lecture 5 Thresholding/Segmentation.
Gray-Scale Morphological Filtering
Computational Biology, Part 23 Biological Imaging II Robert F. Murphy Copyright  1996, 1999, All rights reserved.
Image Processing Lecture 4
CS & CS Multimedia Processing Lecture 2. Intensity Transformation and Spatial Filtering Spring 2009.
Chapter 3 Image Enhancement in the Spatial Domain.
From Images to Answers A Basic Understanding of Digital Imaging and Analysis.
Digital Image Processing
1Ellen L. Walker ImageJ Java image processing tool from NIH Reads / writes a large variety of images Many image processing operations.
Digital Image Processing In The Name Of God Digital Image Processing Lecture3: Image enhancement M. Ghelich Oghli By: M. Ghelich Oghli
Chapter 3: Image Enhancement in the Spatial Domain
Computer graphics & visualization HDRI. computer graphics & visualization Image Synthesis – WS 07/08 Dr. Jens Krüger – Computer Graphics and Visualization.
Introduction to Morphological Operators
1 Comp300a: Introduction to Computer Vision L. QUAN.
MSU CSE 803 Stockman Linear Operations Using Masks Masks are patterns used to define the weights used in averaging the neighbors of a pixel to compute.
1 Image Filtering Readings: Ch 5: 5.4, 5.5, 5.6,5.7.3, 5.8 (This lecture does not follow the book.) Images by Pawan SinhaPawan Sinha formal terminology.
CS 376b Introduction to Computer Vision 02 / 25 / 2008 Instructor: Michael Eckmann.
Computer Vision Basics Image Terminology Binary Operations Filtering Edge Operators.
Elements of Biomedical Image Processing BMI 731 Winter 2005 Kun Huang Department of Biomedical Informatics Ohio State University.
Lecture 2. Intensity Transformation and Spatial Filtering
MSU CSE 803 Linear Operations Using Masks Masks are patterns used to define the weights used in averaging the neighbors of a pixel to compute some result.
1 Basics of Digital Imaging Digital Image Capture and Display Kevin L. Lorick, Ph.D. FDA, CDRH, OIVD, DIHD.
ECE 472/572 - Digital Image Processing Lecture 4 - Image Enhancement - Spatial Filter 09/06/11.
Lab #5-6 Follow-Up: More Python; Images Images ● A signal (e.g. sound, temperature infrared sensor reading) is a single (one- dimensional) quantity that.
1 Image Basics Hao Jiang Computer Science Department Sept. 4, 2014.
Lecture 5. Morphological Image Processing. 10/6/20152 Introduction ► ► Morphology: a branch of biology that deals with the form and structure of animals.
Measurements in Fluid Mechanics 058:180:001 (ME:5180:0001) Time & Location: 2:30P - 3:20P MWF 218 MLH Office Hours: 4:00P – 5:00P MWF 223B-5 HL Instructor:
CS654: Digital Image Analysis Lecture 17: Image Enhancement.
1 Imaging Techniques for Flow and Motion Measurement Lecture 2 Lichuan Gui University of Mississippi 2011 Digital Image & Image Processing.
Digital Image Processing Chapter 9: Morphological Image Processing 5 September 2007 Digital Image Processing Chapter 9: Morphological Image Processing.
Filtering and Enhancing Images. Major operations 1. Matching an image neighborhood with a pattern or mask 2. Convolution (FIR filtering)
EE663 Image Processing Dr. Samir H. Abdul-Jauwad Electrical Engineering Department King Fahd University of Petroleum & Minerals.
Digital Image Processing Lecture 5: Neighborhood Processing: Spatial Filtering Prof. Charlene Tsai.
Image Segmentation and Morphological Processing Digital Image Processing in Life- Science Aviad Baram
AdeptSight Image Processing Tools Lee Haney January 21, 2010.
MULTIMEDIA TECHNOLOGY SMM 3001 MEDIA - IMAGES. Processing digital Images digital images are often processed using “digital filters” digital images are.
From Images to Answers A Basic Understanding of Digital Imaging and Analysis.
Digital Imaging. Digital image - definition Image = “a two-dimensional function, f(x,y), where x and y are spatial coordinates, and the amplitude of f.
Image Representation. Digital Cameras Scanned Film & Photographs Digitized TV Signals Computer Graphics Radar & Sonar Medical Imaging Devices (X-Ray,
Machine Vision ENT 273 Image Filters Hema C.R. Lecture 5.
Course 2 Image Filtering. Image filtering is often required prior any other vision processes to remove image noise, overcome image corruption and change.
Intelligent Vision Systems ENT 496 Image Filtering and Enhancement Hema C.R. Lecture 4.
POWERPOINT PLUS 11/17/07 Class Notes. WHAT IS A PIXEL A pixel is a number that represents the intensity of light at a square spot in the picture. Pixels.
Lecture # 19 Image Processing II. 2 Classes of Digital Filters Global filters transform each pixel uniformly according to the function regardless of.
Digital Image Processing Lecture 5: Neighborhood Processing: Spatial Filtering March 9, 2004 Prof. Charlene Tsai.
Machine Vision ENT 273 Hema C.R. Binary Image Processing Lecture 3.
Instructor: Mircea Nicolescu Lecture 5 CS 485 / 685 Computer Vision.
Lecture(s) 3-4. Morphological Image Processing. 3/13/20162 Introduction ► ► Morphology: a branch of biology that deals with the form and structure of.
Designing a Microscopy Experiment Kurt Thorn, PhD Director, Image from Susanne Rafelski, Marshall lab.
Image: Susanne Rafelski, Marshall lab Introduction to Digital Image Analysis Part I: Digital Images Kurt Thorn NIC UCSF.
Non-linear filtering Example: Median filter Replaces pixel value by median value over neighborhood Generates no new gray levels.
Filters– Chapter 6. Filter Difference between a Filter and a Point Operation is that a Filter utilizes a neighborhood of pixels from the input image to.
Tytus Bernas Biological applications of image processing.
What is a digital image ? 1.
Sampling, Quantization, Color Models & Indexed Color
ECE 692 – Advanced Topics in Computer Vision
IMAGE PROCESSING INTENSITY TRANSFORMATION AND SPATIAL FILTERING
- photometric aspects of image formation gray level images
Image Enhancement in the Spatial Domain
Lecture 3 (2.5.07) Image Enhancement in Spatial Domain
Binary Image Analysis used in a variety of applications:
Introduction to Digital Image Analysis Part II: Image Analysis
Introduction to Digital Image Analysis Part I: Digital Images
Digital Image Processing

Morphological Operators
DIGITAL IMAGE PROCESSING Elective 3 (5th Sem.)
Binary Image Analysis used in a variety of applications:
Presentation transcript:

Introduction to Digital Image Analysis Kurt Thorn NIC

Bitdepth Digital cameras have a specified bitdepth = number of gray levels they can record 8-bit → 2 8 = 256 gray levels 10-bit → 2 10 = 1024 gray levels 12-bit → 2 12 = 4096 gray levels 14-bit → 2 14 = gray levels 16-bit → 2 16 = gray levels

Bitdepth and file formats Standard imaging formats, like tiff, are always 8 or 16 bit (because 8 bits = 1 byte) 16 bit value ( ) bit data (0-4095) 12 bit data ( ) but counting by 16s

Color Images Color images are made up of three gray scale images, one for each of red, green, and blue Can be 8 or 16 bits per channel

File Formats Most portable: TIFF –8 or 16-bit, lossless, supports grayscale or RGB OK: JPEG2000, custom formats (nd2, ids, zvi, lsm, etc.) –Lossless, supports full bitdepth –Custom formats often support multidimensional images –Not so portable Bad: Jpeg, GIF, BMP, etc. –Lossy and / or 8-bit

Intensity scaling Computer screens are 8-bit Publishers also want 8-bit files Original Intensity Final Intensity You lose information in this process – values all end up as 255

Intensity scaling Original Intensity Final Intensity Min Max Brightness Contrast

Effect of scaling Scaled to min / max (874 / 25438) (874 / 19200)(6400 / 18432) Drosophila S2 cell with mCherry-tubulin (Nico Stuurman)

Gamma correction  =1  =2.2  =0.45 Other contrast stretching transforms…. Input Intensity Output Intensity

Effect of gamma Scaled to min / max (874 / 25438),  = 1 Scaled to min / max (874 / 25438),  = 2.16 Scaled to min / max (874 / 25438),  = 0.45

What are acceptable image manipulations? JCB has the best guidelines – – Brightness and contrast adjustments ok, so long as done over whole image and don’t obscure or eliminate background Nonlinear adjustments (like gamma) must be disclosed No cutting and pasting of regions within an image (e.g. individual cells)

Background correction Cameras have a non-zero offset There can also be background fluorescence due to media autofluorescence, etc. Want to correct for this by background subtraction –Camera dark image –Estimate background from image

Estimating background from image Pixel Intensity Number

Dark image Acquired with no light going to the camera –Allows you to measure instrument background –Can detect what’s real background autofluorescence

Dark image

Shading correction Measure and correct for nonuniformity in illumination and detection Image a uniform fluorescent sample

Shading correction

Correction procedure I meas = I true * Shading + Dark I true = (I meas – Dark) / Shading Good to do on all images

More formally… I(x,y) = F(x,y) * Ex(x,y) * Det(x,y) + Dark(x,y) If no photobleaching, then Shading = Ex(x,y)*Det(x,y) is a good approximation Fluorophore distribution Excitation Intensity distribution Detection efficiency

If photobleaching… I(x,y) = (F(x,y) / k*Ex(x,y)) * [1-exp(-k*Ex(x,y)*t)] * Det(x,y) + Dark(x,y) Yuck If you have significant photobleaching and significant excitation non-uniformity, shading correction breaks down Can actually lead to contrast inversion (!)

Measuring Excitation and Detection Distributions Take photobleaching time-series on uniform thin-film of fluorophore Photobleaching rate at each pixel gives intensity Variance not explained by intensity distribution gives detector sensitivity distribution Zweir et al. 2004, Ghauharali et al. 1998,1999

Illumination Uniformity

Correcting Once excitation distribution is relatively flat, correction for detector distribution is once again linear.

Back to digital image analysis Filtering Averaging / Smoothing Gaussian smoothing

How this works Multiply corresponding pixels and sum ( )/9 = 14 14

Why smooth? If your image is sampled appropriately (at Nyquist) the point spread function will be spread out over multiple pixels Properly exploiting this redundancy requires deconvolution But smoothing helps Also reduces single pixel noise artifacts that can’t be real

Actual PSF

Why smooth? Averages redundancy and suppresses noise 10 photons/pixel average 5 e- read noise Gaussian smoothing filter,  = 1 pixel

Smoothing Original Gaussian filtered,  = 0.6

Other filters Edge Detection

Edge Detection OriginalHorizontal edge detection

Other filters Unsharp masking

Unsharp Masking OriginalUnsharp masked

Nonlinear filters Can do things like median filtering – replace center pixel by median value within box Good for smoothing while maintaining edges

Thresholding Pixel Intensity

One problem with this approach… It’s biased towards brighter objects Ideally would use second channel to independently define objects to measure

Binary images Thresholding gives you a binary image; 1 inside an object, 0 elsewhere This can be used to identify objects It can also be manipulated

Binary operations: dilation and erosion erode

Binary operations: dilation and erosion dilate

Other binary operations Sequential erosion and dilation – tends to smooth objects Hole filling Removing objects at borders

Further reading Lectures available online: nic.ucsf.edu/edu.html Gonzalez, Woods, and Eddins: Digital Image Processing (Using Matlab) Pawley: Handbook of Biological Confocal Microscopy