Image: Susanne Rafelski, Marshall lab Introduction to Digital Image Analysis Part I: Digital Images Kurt Thorn NIC UCSF.

Slides:



Advertisements
Similar presentations
Digital Color 24-bit Color Indexed Color Image file compression
Advertisements

Lecture 9 Grey Level & Colour Enhancement TK3813 Dr. Masri Ayob.
Photoshop Lab colorspace A quick and easy 26 step process for enhancing your photos.
Digital Image Processing
Grey Level Enhancement Contrast stretching Linear mapping Non-linear mapping Efficient implementation of mapping algorithms Design of classes to support.
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 Imaging and Image Analysis
Digital Image Processing
Image (and Video) Coding and Processing Lecture 5: Point Operations Wade Trappe.
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 Chapter 6. Image enhancement IMAGE ENHANCEMENT Introduction Image enhancement algorithms & techniques Point-wise operations Contrast.
Digital Image Processing In The Name Of God Digital Image Processing Lecture3: Image enhancement M. Ghelich Oghli By: M. Ghelich Oghli
Image Enhancement To process an image so that the result is more suitable than the original image for a specific application. Spatial domain methods and.
Digital Image Processing: Revision
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.
Image Analysis Preprocessing Arithmetic and Logic Operations Spatial Filters Image Quantization.
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.
Introduction to Image Analysis Presented to Microscopy and Microscopy Education 11 March 2000 New Orleans, LA.
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.
1 Perception, Illusion and VR HNRS 299, Spring 2008 Lecture 14 Introduction to Computer Graphics.
CS654: Digital Image Analysis Lecture 17: Image Enhancement.
Digital Cameras And Digital Information. How a Camera works Light passes through the lens Shutter opens for an instant Film is exposed to light Film is.
Digital Image Processing Chapter 9: Morphological Image Processing 5 September 2007 Digital Image Processing Chapter 9: Morphological Image Processing.
1 Lecture 1 1 Image Processing Eng. Ahmed H. Abo absa
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.
infinity-project.org Engineering education for today’s classroom 2 Outline How Can We Use Digital Images? A Digital Image is a Matrix Manipulating Images.
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.
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.
11/29/ Image Processing. 11/29/ Systems and Software Image file formats Image processing applications.
CSSE463: Image Recognition Day 5 Lab 2 due Wednesday, 1:30. Lab 2 due Wednesday, 1:30. Tip: by Tues 1:30  + 1 late day to use on: Tip: by Tues 1:30 
Intelligent Vision Systems ENT 496 Image Filtering and Enhancement Hema C.R. Lecture 4.
Digital Image Processing EEE415 Lecture 3
 By Bob “The Bird” Fiske & Anita “The Snail” Cost.
Digital Image Processing Lecture 5: Neighborhood Processing: Spatial Filtering March 9, 2004 Prof. Charlene Tsai.
Lesson 2: Introduction to Digital Imaging Digital Photography MITSAA IAP 2003 Rob Zehner.
ECE472/572 - Lecture 14 Morphological Image Processing 11/17/11.
Designing a Microscopy Experiment Kurt Thorn, PhD Director, Image from Susanne Rafelski, Marshall lab.
An Introduction to Digital Image Processing Dr.Amnach Khawne Department of Computer Engineering, KMITL.
Non-linear filtering Example: Median filter Replaces pixel value by median value over neighborhood Generates no new gray levels.
Introduction to Digital Image Analysis Kurt Thorn NIC.
Tytus Bernas Biological applications of image processing.
Image Enhancement in the Spatial Domain.
Masaki Hayashi 2015, Autumn Visualization with 3D CG Digital 2D Image Basic.
What is a digital image ? 1.
Sampling, Quantization, Color Models & Indexed Color
Image enhancement algorithms & techniques Point-wise operations
ECE 692 – Advanced Topics in Computer Vision
IMAGE PROCESSING INTENSITY TRANSFORMATION AND SPATIAL FILTERING
Histogram Histogram is a graph that shows frequency of anything. Histograms usually have bars that represent frequency of occuring of data. Histogram has.
Image Enhancement in the Spatial Domain
Introduction to Digital Image Analysis Part II: Image Analysis
Introduction to Digital Image Analysis Part I: Digital Images
Digital Image Processing

DIGITAL IMAGE PROCESSING Elective 3 (5th Sem.)
Presentation transcript:

Image: Susanne Rafelski, Marshall lab Introduction to Digital Image Analysis Part I: Digital Images Kurt Thorn NIC UCSF

What is a digital Image? Many measurements of light intensity

Bit depth and dynamic range # of bits range byte 2-bytes

Bit depth and dynamic range 8 bit 6 bit 4 bit 2 bit

Converting bit-depth # of bits range Your monitor is an 8-bit display

Mapping values onto display Digital Number Display Intensity

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

Brightness / Contrast adjustment

Brightness/contrast Full Range Auto-Scale Be aware of how your software scales your image

Brightness/contrast Full Range High B/C Be aware of how your software scales your image

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

Gamma adjustment 0.6  =1  =0.6  =2.2

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) Control and experiment must be treated identically

Lookup Tables (LUTs)

False coloring to bring out detail

Lookup Tables (LUTs)

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

Color Images

= Or

Stacks: Sequences of images Can represent time series(movies), z-positions, or other variables Z

File Formats Data sets can be big: 1392 × 1040 × 2 = 2.8MB 3-channels, 15 image z-stack, 200 time points: 2.8 × 3 × 15 × 200 = 25.2GB Compression!

Compression Lossless: preserves all information in original image –Original image can be restored Lossy: discards information not necessary for visual appearance –Original image cannot be restored See: Lossless vs. Lossy

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

Software Tools Acquisition + Analysis NIS-Elements AxioVision MetaMorph Zen Slidebook Micro-Manager Presentation Photoshop Gimp Analysis Matlab ImageJ Imaris (3D visualization) CellProfiler

Basic Image Analysis

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

Digital Image Filters Averaging / Smoothing Gaussian smoothing

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

Linear Filters Kernel Simple Smoothing Gaussian Smoothing

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 and Gaussian Filter PSF Gaussian

Why smooth? Averages redundancy and suppresses noise Noisy image Gaussian smoothing filter,  = 1 pixel

Smoothing Original Gaussian Filtered

Edge Detection Original

Edge Detection Horizontal edge detection

Contrast enhancement filters Unsharp Laplacian Laplacian of Gaussian

Contast enhancement Original Unsharp Filtered

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

Thresholding, where to set the cutoff?

Automatic segmentation using Otsu’s method

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: Erosion/Dilation Structuring Element: Erosion Dilation

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

Acknowledgements & Further Reading Nico Stuurman Gonzalez, Woods, and Eddins: Digital Image Processing (Using Matlab) Burger and Burge, Digital Image Processing, An Algorithmic Introduction using Java (ImageJ) Pawley: Handbook of Biological Confocal Microscopy