Computational Biology, Part 23 Biological Imaging II Robert F. Murphy Copyright  1996, 1999, 2000-2006. All rights reserved.

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.
A Graph based Geometric Approach to Contour Extraction from Noisy Binary Images Amal Dev Parakkat, Jiju Peethambaran, Philumon Joseph and Ramanathan Muthuganapathy.
Spatial Filtering (Chapter 3)
Creation of a digital image from an analog signal. Analog-Digital Converter (ADC)
Point Processing Image Arithmetic. Arithmetic Image Operations (blending) 2  Two source images can be added, multiplied, one subtracted from the other.
Image Processing in Matlab An Introductory Approach by Sabih D. Khan
ImageJ tutorial showing the operations needed to calculate air-filled porosity for an example soil column.
CDS 301 Fall, 2009 Image Visualization Chap. 9 November 5, 2009 Jie Zhang Copyright ©
1Ellen L. Walker ImageJ Java image processing tool from NIH Reads / writes a large variety of images Many image processing operations.
Chapter 9: Morphological Image Processing
Introduction to Morphological Operators
Morphological Image Processing Md. Rokanujjaman Assistant Professor Dept of Computer Science and Engineering Rajshahi University.
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.
Image Filtering CS485/685 Computer Vision Prof. George Bebis.
Digital Image Processing
Computer Vision Introduction to Image formats, reading and writing images, and image environments Image filtering.
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.
Image Analysis Preprocessing Arithmetic and Logic Operations Spatial Filters Image Quantization.
Chapter 3 Binary Image Analysis. Types of images ► Digital image = I[r][c] is discrete for I, r, and c.  B[r][c] = binary image - range of I is in {0,1}
Image Processing and Analysis Image Processing. Agenda Gray-Level Operations –Look-up Tables –Brightness and Contrast Color Space Operations Frequency.
Lecture 5. Morphological Image Processing. 10/6/20152 Introduction ► ► Morphology: a branch of biology that deals with the form and structure of animals.
Chapter 9.  Mathematical morphology: ◦ A useful tool for extracting image components in the representation of region shape.  Boundaries, skeletons,
Computational Biology, Part 23 Biological Imaging III G. Steven Vanni Robert F. Murphy Copyright  1998, All rights reserved.
Digital Image Processing Chapter 9: Morphological Image Processing 5 September 2007 Digital Image Processing Chapter 9: Morphological Image Processing.
Digital Image Processing CCS331 Relationships of Pixel 1.
Morphological Image Processing
EE663 Image Processing Dr. Samir H. Abdul-Jauwad Electrical Engineering Department King Fahd University of Petroleum & Minerals.
Image Segmentation and Morphological Processing Digital Image Processing in Life- Science Aviad Baram
AdeptSight Image Processing Tools Lee Haney January 21, 2010.
Digital image consist of very small elements called pixels.
Mathematical Morphology Mathematical morphology (matematická morfologie) –A special image analysis discipline based on morphological transformations of.
11/29/ Image Processing. 11/29/ Systems and Software Image file formats Image processing applications.
Computational Biology, Part 22 Biological Imaging II Robert F. Murphy Copyright  1996, 1999, All rights reserved.
Visual Computing Computer Vision 2 INFO410 & INFO350 S2 2015
CS654: Digital Image Analysis
CS654: Digital Image Analysis
Nottingham Image Analysis School, 23 – 25 June NITS Image Segmentation Guoping Qiu School of Computer Science, University of Nottingham
CDS 301 Fall, 2008 Image Visualization Chap. 9 November 11, 2008 Jie Zhang Copyright ©
1 Mathematic Morphology used to extract image components that are useful in the representation and description of region shape, such as boundaries extraction.
Morphological Image Processing Robotics. 2/22/2016Introduction to Machine Vision Remember from Lecture 12: GRAY LEVEL THRESHOLDING Objects Set threshold.
Course 5 Edge Detection. Image Features: local, meaningful, detectable parts of an image. edge corner texture … Edges: Edges points, or simply edges,
Lecture 04 Edge Detection Lecture 04 Edge Detection Mata kuliah: T Computer Vision Tahun: 2010.
Machine Vision Edge Detection Techniques ENT 273 Lecture 6 Hema C.R.
TOPIC 12 IMAGE SEGMENTATION & MORPHOLOGY. Image segmentation is approached from three different perspectives :. Region detection: each pixel is assigned.
Machine Vision. Image Acquisition > Resolution Ability of a scanning system to distinguish between 2 closely separated points. > Contrast Ability to detect.
Instructor: Mircea Nicolescu Lecture 5 CS 485 / 685 Computer Vision.
Digital Image Processing CSC331
Lecture(s) 3-4. Morphological Image Processing. 3/13/20162 Introduction ► ► Morphology: a branch of biology that deals with the form and structure of.
Morphological Image Processing
Introduction to Digital Image Analysis Kurt Thorn NIC.
Spatial Filtering (Chapter 3) CS474/674 - Prof. Bebis.
Image Processing and Analysis
Introduction to Morphological Operators
Scott Tan Boonping Lau Chun Hui Weng
Histogram Histogram is a graph that shows frequency of anything. Histograms usually have bars that represent frequency of occuring of data. Histogram has.
Computer Vision Lecture 9: Edge Detection II
Lecture 3 (2.5.07) Image Enhancement in Spatial Domain
Binary Image Analysis used in a variety of applications:
CSC 381/481 Quarter: Fall 03/04 Daniela Stan Raicu
CS Digital Image Processing Lecture 5
Spatial operations and transformations
Midterm Exam Closed book, notes, computer Similar to test 1 in format:
Midterm Exam Closed book, notes, computer Similar to test 1 in format:
Image Enhancement in Spatial Domain: Neighbourhood Processing
Spatial operations and transformations
DIGITAL IMAGE PROCESSING Elective 3 (5th Sem.)
Binary Image Analysis used in a variety of applications:
Presentation transcript:

Computational Biology, Part 23 Biological Imaging II Robert F. Murphy Copyright  1996, 1999, All rights reserved.

Outline Image Display Image Display Image Processing Image Processing Image Analysis Image Analysis Image Interpretation Image Interpretation

From Images to Knowledge Image Processing Image Image Analysis Image Image Interpretation Image Numbers Knowledge

Image Display Operations that change display without changing image Operations that change display without changing image  LUT - grayscale or color  Contrast stretching Operations that change image Operations that change image  reversible  non-reversible (majority)

Image Display - LUT change

Image Display - Enhance contrast

Image Display After enhancement uses full range Original (before contrast enhancement)

Thresholding Thresholding refers to the division of the pixels of an image into two classes: those below a certain value (the threshold) and those at or above it. The two classes are often shown in white and black, respectively. Thresholding refers to the division of the pixels of an image into two classes: those below a certain value (the threshold) and those at or above it. The two classes are often shown in white and black, respectively. Thresholding serves as a means to consider only a subset of the pixels of an images. Thresholding serves as a means to consider only a subset of the pixels of an images.

Thresholding The choice of threshold must be made empirically by considering the nature of the sample, the type and number of objects expected in the image, and/or a histogram of pixel values The choice of threshold must be made empirically by considering the nature of the sample, the type and number of objects expected in the image, and/or a histogram of pixel values The threshold can be specified as a multiple of the background value (normally the most common value) for partial automation The threshold can be specified as a multiple of the background value (normally the most common value) for partial automation

Thresholding

Once a threshold has been applied, the resulting image may be Once a threshold has been applied, the resulting image may be  displayed in black and white  displayed with above threshold pixels at their original intensities and below threshold pixels in black

Thresholding Once a threshold has been applied, the resulting image may be Once a threshold has been applied, the resulting image may be  saved as a new image with only pixels above threshold being retained (others set to 0)  saved as or converted to a binary image (above threshold pixels set to 1, below threshold pixels set to 0)

Binary image operations Erosion Erosion  Remove pixels from edges of objects  Set “on” pixel to “off” if four or more of its eight neighbors are white Dilation Dilation  Add pixels to edges of objects  Set “off” pixel to “on” if four or more of its neighbors are black

Binary image operations Process/Binary/Threshold does auto threshold and applies it to make binary image

Binary image operations

This image shows just the pixels that were turned off by the erode operation

Binary image operations Open Open  Smooth objects and fill in small holes  Erosion followed by dilation Close Close  Smooth objects and fill in small holes  Dilation followed by erosion

Binary image operations Outline Outline  Find “on” pixel, trace around outside until return to first “on” pixel Skeletonize Skeletonize  Remove pixels from the edges of objects until the objects are one pixel wide

Binary image operations

Binary image operations - outline

Basic Image Processing Operations Image Math Image Math Kernel/Filter Operations Kernel/Filter Operations Image Calculator Image Calculator

Arithmetic Operations Two cases: Two cases:  Perform a single operand operation (e.g., logarithm, square root) on each pixel of an image  Perform a dual operand operation (e.g., add, multiply) on each pixel of an image using a constant as the second operand In both cases, the result is usually stored in the same pixel location (“storing in place”) In both cases, the result is usually stored in the same pixel location (“storing in place”)

Arithmetic Operations

Kernel/Filter Operations Basic idea: Use a matrix (usually square and of odd dimension, e.g., 3x3) in combination with an image to generate a new image Basic idea: Use a matrix (usually square and of odd dimension, e.g., 3x3) in combination with an image to generate a new image Algorithm: Algorithm:  For each pixel in the image (the current pixel)  Align the matrix to center it on that pixel  For each position in the matrix, multiply the corresponding pixel value in the image by the value in the matrix and sum the results  Store the result in the current pixel

Kernel/Filter Operations A matrix used in this fashion is called a kernel or filter A matrix used in this fashion is called a kernel or filter Note that the operation is different from matrix multiplication of the kernel by the image because Note that the operation is different from matrix multiplication of the kernel by the image because  the dimensions don’t match, and  all elements of the matrix are combined to give one result

Common Kernel Operations used in Image Processing Smoothing Smoothing Sharpening Sharpening Edge Finding Edge Finding

Original image Original image

Examples of Kernel Operations using NIH Image Smooth Smooth

Results of one Smooth Results of one Smooth

Results of a second Smooth Results of a second Smooth

Examples of Kernel Operations using NIH Image Close smoothed image, reopen original image, then Sharpen Close smoothed image, reopen original image, then Sharpen

Original image Original image

Image after one Sharpen Image after one Sharpen

Image after a second Sharpen Image after a second Sharpen

Examples of Kernel Operations using NIH Image Close sharpened image, reopen original image, then Find Edges Close sharpened image, reopen original image, then Find Edges

Image after Find Edges Image after Find Edges

Example kernels Smoothing Smoothing

Example kernels Sharpen Sharpen

Example kernels Edge detection (Sobel) Edge detection (Sobel)

Image Math Basic idea: Combine two images using an dual operand operator to generate a new image Basic idea: Combine two images using an dual operand operator to generate a new image Algorithm: Algorithm:  For each pixel in the first image, operate on it using the corresponding pixel in the second image and store the result in the corresponding pixel in a new (output) image

Image Math Any operator can be used Any operator can be used Most common operators: Most common operators:  division: generate ratio image  logical AND: mask one image with another (usually binary) image

Examples of Image Math using NIH Image Open original image and sharpen once (save as Abdomen.sharpen1), reopen original image Open original image and sharpen once (save as Abdomen.sharpen1), reopen original image

Ratio of sharp to original image (shows regions affected by sharpen) Ratio of sharp to original image (shows regions affected by sharpen)

Image Math vs. Arithmetic Operations Note difference between Image Math which does an operation on two images and Arithmetic which does an operation on a single image and a constant Note difference between Image Math which does an operation on two images and Arithmetic which does an operation on a single image and a constant

Summary: Basic Image Processing Operations Arithmetic Operations Arithmetic Operations  Inputs: Image, Constant (optional)  Common use: Subtract background Kernel Operations Kernel Operations  Inputs: Image, Kernel  Common use: Smoothing Image Math Image Math  Inputs: Two images  Common use: Generate ratio image

Image Processing Basic example of image processing: find objects in an image and describe them numerically Basic example of image processing: find objects in an image and describe them numerically

Object finding (Particle analysis) Principle: Identify a contiguous set of pixels that are all above some threshold Principle: Identify a contiguous set of pixels that are all above some threshold Implementation: Implementation:  Start with a binary (thresholded) image  Find a pixel that is “on” and start a list or map  Recursively search all nearest neighbors for additional pixels that are on and add them to the list or map

Object finding (Particle analysis) Start with a thresholded image (Image/Adjust/Threshold)

Object finding (Particle analysis)

Save as Excel file using Save As...

Object finding (Particle analysis) Uses: Uses:  Counting objects  Obtaining area measurements for objects  Obtaining integrated intensity  Isolating objects for other processing