图像处理技术讲座(2) Digital Image Processing (2) 灰度直方图和二值化操作 Gray-level Histogram and Threshold 顾 力栩 上海交通大学 计算机系 2006.3.3.

Slides:



Advertisements
Similar presentations
Applications of one-class classification
Advertisements

QR Code Recognition Based On Image Processing
電腦視覺 Computer and Robot Vision I
Computational Biology, Part 23 Biological Imaging II Robert F. Murphy Copyright  1996, 1999, All rights reserved.
Image Enhancement in the Spatial Domain II Jen-Chang Liu, 2006.
Automatic Histogram Threshold Using Fuzzy Measures 呂惠琪.
Automatic Thresholding
Chapter 4: Image Enhancement
Digital Image Processing In The Name Of God Digital Image Processing Lecture3: Image enhancement M. Ghelich Oghli By: M. Ghelich Oghli
Copyright © 2012 Elsevier Inc. All rights reserved.. Chapter 4 Thresholding Techniques.
電腦視覺 Computer and Robot Vision I Chapter2: Binary Machine Vision: Thresholding and Segmentation Instructor: Shih-Shinh Huang 1.
Computer Vision Lecture 16: Region Representation
图像处理技术讲座( 7 ) Digital Image Processing (7) 二值形态学 Binary morphology 顾 力栩 上海交通大学 计算机系
6/9/2015Digital Image Processing1. 2 Example Histogram.
EE 7730 Image Segmentation.
Surface Reconstruction from 3D Volume Data. Problem Definition Construct polyhedral surfaces from regularly-sampled 3D digital volumes.
Image Analysis Preprocessing Image Quantization Binary Image Analysis
Processing Digital Images. Filtering Analysis –Recognition Transmission.
Segmentation Divide the image into segments. Each segment:
Regionalized Variables take on values according to spatial location. Given: Where: A “structural” coarse scale forcing or trend A random” Local spatial.
CS 376b Introduction to Computer Vision 02 / 25 / 2008 Instructor: Michael Eckmann.
Highlights Lecture on the image part (10) Automatic Perception 16
Computer Vision Basics Image Terminology Binary Operations Filtering Edge Operators.
图像处理技术讲座(10) Digital Image Processing (10) 灰度的数学形态学(2) Mathematical morphology in gray scale (2) 顾 力栩 上海交通大学 计算机系
E.G.M. PetrakisBinary Image Processing1 Binary Image Analysis Segmentation produces homogenous regions –each region has uniform gray-level –each region.
Introduction to Image Processing Grass Sky Tree ? ? Review.
October 14, 2014Computer Vision Lecture 11: Image Segmentation I 1Contours How should we represent contours? A good contour representation should meet.
Chapter 9.  Mathematical morphology: ◦ A useful tool for extracting image components in the representation of region shape.  Boundaries, skeletons,
CS 6825: Binary Image Processing – binary blob metrics
Digital Image Processing & Analysis Spring Definitions Image Processing Image Analysis (Image Understanding) Computer Vision Low Level Processes:
CS 376b Introduction to Computer Vision 02 / 22 / 2008 Instructor: Michael Eckmann.
Segmentation.
Digital Image Processing
September 23, 2014Computer Vision Lecture 5: Binary Image Processing 1 Binary Images Binary images are grayscale images with only two possible levels of.
Binary Thresholding Threshold detection Variations
Digital Image Processing Lecture 18: Segmentation: Thresholding & Region-Based Prof. Charlene Tsai.
Image Segmentation and Morphological Processing Digital Image Processing in Life- Science Aviad Baram
EECS 274 Computer Vision Segmentation by Clustering II.
Digital Image Processing (DIP) Lecture # 5 Dr. Abdul Basit Siddiqui Assistant Professor-FURC 1FURC-BCSE7.
Digital Camera and Computer Vision Laboratory Department of Computer Science and Information Engineering National Taiwan University, Taipei, Taiwan, R.O.C.
Pixel Connectivity Pixel connectivity is a central concept of both edge- and region- based approaches to segmentation The notation of pixel connectivity.
1 University of Texas at Austin Machine Learning Group 图像与视频处理 计算机学院 Motion Detection and Estimation.
Image Segmentation and Edge Detection Digital Image Processing Instructor: Dr. Cheng-Chien LiuCheng-Chien Liu Department of Earth Sciences National Cheng.
CS654: Digital Image Analysis
COMP322/S2000/L171 Robot Vision System Major Phases in Robot Vision Systems: A. Data (image) acquisition –Illumination, i.e. lighting consideration –Lenses,
Levels of Image Data Representation 4.2. Traditional Image Data Structures 4.3. Hierarchical Data Structures Chapter 4 – Data structures for.
图像处理技术讲座( 1 ) Digital Image Processing (1) INTRODUCTION 简介 顾 力栩 (Lixu Gu) 上海交通大学 计算机系
Colour and Texture. Extract 3-D information Using Vision Extract 3-D information for performing certain tasks such as manipulation, navigation, and recognition.
图像处理技术讲座(11) Digital Image Processing (11) 灰度的数学形态学(3) Mathematical morphology in gray scale (3) 顾 力栩 上海交通大学 计算机系
Digital Image Processing
October 1, 2013Computer Vision Lecture 9: From Edges to Contours 1 Canny Edge Detector However, usually there will still be noise in the array E[i, j],
Machine Vision ENT 273 Regions and Segmentation in Images Hema C.R. Lecture 4.
1 Mathematic Morphology used to extract image components that are useful in the representation and description of region shape, such as boundaries extraction.
Digital Image Processing Lecture 16: Segmentation: Detection of Discontinuities May 2, 2005 Prof. Charlene Tsai.
Machine Vision Edge Detection Techniques ENT 273 Lecture 6 Hema C.R.
Robotics Chapter 6 – Machine Vision Dr. Amit Goradia.
Chapter 6 Skeleton & Morphological Operation. Image Processing for Pattern Recognition Feature Extraction Acquisition Preprocessing Classification Post.
Color Image Segmentation Mentor : Dr. Rajeev Srivastava Students: Achit Kumar Ojha Aseem Kumar Akshay Tyagi.
1. 2 What is Digital Image Processing? The term image refers to a two-dimensional light intensity function f(x,y), where x and y denote spatial(plane)
April 21, 2016Introduction to Artificial Intelligence Lecture 22: Computer Vision II 1 Canny Edge Detector The Canny edge detector is a good approximation.
图像处理技术讲座(3) Digital Image Processing (3) Basic Image Operations
IMAGE SEGMENTATION USING THRESHOLDING
DIGITAL SIGNAL PROCESSING
Mean Shift Segmentation
Computer Vision Lecture 5: Binary Image Processing
A New Approach to Track Multiple Vehicles With the Combination of Robust Detection and Two Classifiers Weidong Min , Mengdan Fan, Xiaoguang Guo, and Qing.
Binary Image Analysis used in a variety of applications:
Image Segmentation.
Binary Image Analysis used in a variety of applications:
Presentation transcript:

图像处理技术讲座(2) Digital Image Processing (2) 灰度直方图和二值化操作 Gray-level Histogram and Threshold 顾 力栩 上海交通大学 计算机系 2006.3.3

Image Processing Example lixugu @ 2005 copyright reserved

Image Processing Categories Low level: from image to image, often called image filtering Intermediate level: from image to symbolic representation, also called image segmentation High level: from symbolic to functional description, also called image understanding or pattern recognition lixugu @ 2005 copyright reserved

TYPICAL IMAGE PROCESSING SYSTEM FOR MEDICAL IMAGING Image Acquisition Output -Low Level- Pre-Processing (filtering) Enhancement (sharpen, smooth, …) Interpolate, reduce noise, crop -High Level- Modeling Volume Rendering, Deformable Models, Mathematical Models -High Level- Recognition Region feature analysis (position, orientation, size…), Object Matching -Intermediate Level- Segmentation Region (or Contour) Extraction, Labeling, Grouping lixugu @ 2005 copyright reserved

EXTRACTION OF ORGANS FROM 3D ABDOMINAL CT IMAGE - 1 Segmentation (Extraction): Thresholding Differential Top-hat Noise Reduction Region Reconstruction lixugu @ 2005 copyright reserved EXAMPLE

EXTRACTION OF ORGANS FROM 3D ABDOMINAL CT IMAGE - 2 Volume View 1.vertebra, 2.rib, 3.pelvis, 4.left kidney, 5.spleen, 6.stomach,7.right kidney, 8.liver, 9.artery, 10.vein, 11.heart lixugu @ 2005 copyright reserved EXAMPLE

EXTRACTION OF ORGANS FROM 3D ABDOMINAL CT IMAGE - 3 Bone segmentation and reference point: Extract bones Separate spine from ribs Find the 12th rib Find the vertebra connected with the 12th rib Set the center of gravity of the vertebra as the reference point (origin of our specified coordinate system) lixugu @ 2005 copyright reserved EXAMPLE

EXTRACTION OF ORGANS FROM 3D ABDOMINAL CT IMAGE - 4 Pattern Spectrum -- size analysis lixugu @ 2005 copyright reserved EXAMPLE

EXTRACTION OF ORGANS FROM 3D ABDOMINAL CT IMAGE - 5 Noise Reduction lixugu @ 2005 copyright reserved EXAMPLE

EXTRACTION OF ORGANS FROM 3D ABDOMINAL CT IMAGE - 6 Subdivision into regions lixugu @ 2005 copyright reserved EXAMPLE

EXTRACTION OF ORGANS FROM 3D ABDOMINAL CT IMAGE - 7 Threshold segmentation lixugu @ 2005 copyright reserved EXAMPLE

EXTRACTION OF ORGANS FROM 3D ABDOMINAL CT IMAGE - 8 Segmentation using Recursive Erosion (RE) and Geodesic Influence(GI): RE: region shrinking to generate all the candidate seeds GI: region reconstruction to recover separated organs lixugu @ 2005 copyright reserved EXAMPLE

lixugu @ 2005 copyright reserved ORGAN RECOGNITION Organ recognition: Feature analysis (size, position) Match the data base or “dictionary” Label the objects with an unique symbol (a number or an anatomic name) lixugu @ 2005 copyright reserved EXAMPLE

Histogram and Threshold lixugu @ 2005 copyright reserved

lixugu @ 2005 copyright reserved Histogram Definition: Histogram is a pixel distribution function based on each gray level. Its x-coordinate represents each gray level when y showing the according total pixel numbers. Pixel numbers Gray level lixugu @ 2005 copyright reserved

lixugu @ 2005 copyright reserved Features of Histogram An image condensed into a histogram, all spatial information is discarded Specify the number of pixels having each gray level No hint as to where those pixels are located Moving a object within an image have no effect on the histogram Histogram VS. area of an image lixugu @ 2005 copyright reserved

Histogram Application Histogram can help us to set up the digitizing parameters Help to find a optimal threshold level A bimodal histogram. The gray level corresponding to the minimum of two peaks is the optimal for defining the boundary lixugu @ 2005 copyright reserved

lixugu @ 2005 copyright reserved Binary Operation Thresholding is a simple, non-contextual, efficient segmentation technique Usually refer to Intensity Thresholding Classify pixels (voxels) into two categories Create a binary image (binarisation) Thresholding can employ either a fixed or an adaptive threshold value A variety of techniques have been devised to automatically choose a threshold, but no one is robust lixugu @ 2005 copyright reserved

lixugu @ 2005 copyright reserved Binary VS. Histogram Thresholding usually involves analyzing the histogram Different image features give rise to distinct features in a histogram (Bimodel) In general the histogram peaks corresponding to two features will overlap An example of a threshold value is the mean intensity value lixugu @ 2005 copyright reserved

lixugu @ 2005 copyright reserved Fixed Threshold Fixed or Global threshold: the threshold value is held constant throughout the image Fixed Threshold is in the form of: (T is the threshold) Normal Threshold Reverse Threshold A variation which uses two thresholds to define a range of intensity values: lixugu @ 2005 copyright reserved

lixugu @ 2005 copyright reserved Fixed Threshold The success of thresholding depends critically on the selection of an appropriate threshold An Example: lixugu @ 2005 copyright reserved

Single Threshold (Example) lixugu @ 2005 copyright reserved

Double Thresholds (Example) lixugu @ 2005 copyright reserved

lixugu @ 2005 copyright reserved Isodata Algorithm This iterative threshold selection technique was developed by Ridler and Calvard The algorithm works as: Select an initial threshold T0 (e.g. the mean intensity) Partition the image into two groups (R1 and R2) using the T0 Calculate the mean intensity values 1 and 2 of the partitions R1 and R2. Select a new threshold: Ti = (1 + 2 )/2 Repeat steps 2-4 until: Ti = Ti-1 lixugu @ 2005 copyright reserved

lixugu @ 2005 copyright reserved Optimal Threslding Histogram shape can be useful in locating the threshold. However it is not reliable for threshold selection when peaks are not clearly resolved Optimal thresholding: a criterion function is devised that yields some measure of separation between regions A criterion function is calculated for each intensity and that which maximizes/minimizes this function is chosen as the threshold lixugu @ 2005 copyright reserved

lixugu @ 2005 copyright reserved OTSU Algorithm Otsu’s thresholding method is based on selecting the lowest point between two classes (peaks). Frequency and Mean value: Frequency: N: total pixel number Mean: ni: number of pixels in level i Analysis of variance (variance=standard deviation2) Total variance: Ωω-omiga, lixugu @ 2005 copyright reserved

lixugu @ 2005 copyright reserved OTSU Algorithm between-classes variance (b2 ): The variation of the mean values for each class from the overall intensity mean of all pixels: b2 = 0 (0 - t ) 2 + 1(1 - t ) 2, Substituting t = 0 0 + 11, we get: b2 = 01(1 - 0 )2 0, 1, 0, 1 stands for the frequencies and mean values of two classes, respectively. lixugu @ 2005 copyright reserved

lixugu @ 2005 copyright reserved OTSU Algorithm The criterion function involves between-classes variance to the total variance is defined as:  = b2 / t2 All possible thresholds are evaluated in this way, and the one that maximizes  is chosen as the optimal threshold Ηη- eta lixugu @ 2005 copyright reserved

lixugu @ 2005 copyright reserved Entropy Method Entropy is served as a measure of information content A threshold level t separates the whole information into two classes, and the entropy associated with them is: Optimal threshold is the one maximize: H = Hb + Hw lixugu @ 2005 copyright reserved

Comparing Threshold Value lixugu @ 2005 copyright reserved

lixugu @ 2005 copyright reserved Other Algorithms Triangle Algorithm: Maximized distance d indicate the optimal threshold lixugu @ 2005 copyright reserved

Adaptive Thresholding Adaptive thresholding is also called local (or regional) thresholding Employ more than one threshold value. Works when the background intensity level is not constant and the object varies within the image. Examines the relationships between intensities of neighboring pixels to adapt the threshod according to the intensity statistics of different regions. Difficulties of thresholding: Poor image contrast, Spatial non-uniformities, Ambiguity… lixugu @ 2005 copyright reserved

lixugu @ 2005 copyright reserved Discussion lixugu @ 2005 copyright reserved