图像处理技术讲座(3) Digital Image Processing (3) Basic Image Operations

Slides:



Advertisements
Similar presentations
QR Code Recognition Based On Image Processing
Advertisements

Medical Image Registration Kumar Rajamani. Registration Spatial transform that maps points from one image to corresponding points in another image.
電腦視覺 Computer and Robot Vision I
Chapter 3 Image Enhancement in the Spatial Domain.
Document Image Processing
CDS 301 Fall, 2009 Image Visualization Chap. 9 November 5, 2009 Jie Zhang Copyright ©
Image Segmentation Image segmentation (segmentace obrazu) –division or separation of the image into segments (connected regions) of similar properties.
Each pixel is 0 or 1, background or foreground Image processing to
September 10, 2013Computer Vision Lecture 3: Binary Image Processing 1Thresholding Here, the right image is created from the left image by thresholding,
1Ellen L. Walker Edges Humans easily understand “line drawings” as pictures.
MIPR Lecture 5 Copyright Oleh Tretiak, Medical Imaging and Pattern Recognition Lecture 5 Image Measurements and Operations Oleh Tretiak.
1 Formation et Analyse d’Images Session 3 Daniela Hall 14 October 2004.
Objective of Computer Vision
Objective of Computer Vision
A Novel 2D To 3D Image Technique Based On Object- Oriented Conversion.
September 25, 2014Computer Vision Lecture 6: Spatial Filtering 1 Computing Object Orientation We compute the orientation of an object as the orientation.
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.
Digital Image Processing
Image Formation. Input - Digital Images Intensity Images – encoding of light intensity Range Images – encoding of shape and distance They are both a 2-D.
Machine Vision for Robots
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 11 Representation & Description Chapter 11 Representation.
Digital Image Processing Lecture 20: Representation & Description
Recap CSC508.
CS 6825: Binary Image Processing – binary blob metrics
Digital Image Fundamentals II 1.Image modeling and representations 2.Pixels and Pixel relations 3.Arithmetic operations of images 4.Image geometry operation.
September 23, 2014Computer Vision Lecture 5: Binary Image Processing 1 Binary Images Binary images are grayscale images with only two possible levels of.
Digital Image Processing Lecture 6: Image Geometry
EE663 Image Processing Dr. Samir H. Abdul-Jauwad Electrical Engineering Department King Fahd University of Petroleum & Minerals.
Digital Camera and Computer Vision Laboratory Department of Computer Science and Information Engineering National Taiwan University, Taipei, Taiwan, R.O.C.
AdeptSight Image Processing Tools Lee Haney January 21, 2010.
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Representation & Description.
Digital Image Processing (DIP) Lecture # 5 Dr. Abdul Basit Siddiqui Assistant Professor-FURC 1FURC-BCSE7.
Pixel Connectivity Pixel connectivity is a central concept of both edge- and region- based approaches to segmentation The notation of pixel connectivity.
CS482 Selected Topics in Digital Image Processing بسم الله الرحمن الرحيم Instructor: Dr. Abdullah Basuhail,CSD, FCIT, KAU, 1432H Chapter 2: Digital Image.
COMP322/S2000/L171 Robot Vision System Major Phases in Robot Vision Systems: A. Data (image) acquisition –Illumination, i.e. lighting consideration –Lenses,
CS654: Digital Image Analysis Lecture 5: Pixels Relationships.
Image Registration Advanced DIP Project
CS654: Digital Image Analysis Lecture 4: Basic relationship between Pixels.
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.
1 Overview representing region in 2 ways in terms of its external characteristics (its boundary)  focus on shape characteristics in terms of its internal.
Course 5 Edge Detection. Image Features: local, meaningful, detectable parts of an image. edge corner texture … Edges: Edges points, or simply edges,
Robotics Chapter 6 – Machine Vision Dr. Amit Goradia.
Instructor: Mircea Nicolescu Lecture 5 CS 485 / 685 Computer Vision.
Digital Image Processing, 3rd ed. © 1992–2008 R. C. Gonzalez & R. E. Woods Gonzalez & Woods Chapter 11 Representation and.
Course 3 Binary Image Binary Images have only two gray levels: “1” and “0”, i.e., black / white. —— save memory —— fast processing —— many features of.
Relationship between pixels Neighbors of a pixel – 4-neighbors (N,S,W,E pixels) == N 4 (p). A pixel p at coordinates (x,y) has four horizontal and vertical.
Sheng-Fang Huang Chapter 11 part I.  After the image is segmented into regions, how to represent and describe these regions? ◦ In terms of its external.
Image Enhancement in the Spatial Domain.
Image Sampling and Quantization
Some Basic Relationships Between Pixels
Image Representation and Description – Representation Schemes
IT472: Digital Image Processing
Computer and Robot Vision I
Digital Image Processing Lecture 20: Representation & Description
Computer Vision Lecture 12: Image Segmentation II
Computer Vision Lecture 5: Binary Image Processing
Digital Image Processing
Histogram Histogram is a graph that shows frequency of anything. Histograms usually have bars that represent frequency of occuring of data. Histogram has.
T490 (IP): Tutorial 2 Chapter 2: Digital Image Fundamentals
Computer Vision Lecture 16: Texture II
CIS 350 – 3 Image ENHANCEMENT SPATIAL DOMAIN
From a presentation by Jimmy Huff Modified by Josiah Yoder
Digital Image Fundamentals
Binary Image processing بهمن 92
Computer and Robot Vision I
Introduction to Mathematical tools in used in DIP
Computer and Robot Vision I
Presentation transcript:

图像处理技术讲座(3) Digital Image Processing (3) Basic Image Operations 顾 力栩 上海交通大学 计算机系 2006.3.10

Lixu Gu @ 2005 copyright reserved pixel operation 点操作 (Point operation) 代数操作 (Algebraic operation) 几何操作 (Geometric operation) Lixu Gu @ 2005 copyright reserved

Lixu Gu @ 2005 copyright reserved Point Operation Point opearition: Output pixel’s gray level depends only upon the gray level of the corresponding input pixel. Contrast enhancement; contrast stretching; gray scale transformation; pixel-by-pixel copying operations, except that the gray levels are modified according to the transformation function. B(x,y) = f[A(x,y)] Lixu Gu @ 2005 copyright reserved

Lixu Gu @ 2005 copyright reserved Point Operation Linear point operations: DB = f(DA) = aDA + b a>1: contrast increased; 0<a<1: contrast reduced a=1 & b0: shift gray level; a<0: reverse the contrast. Nonlinear monotonic point operations: f(x) = x+Cx(Dm – x) Dm: maximum gray level; C: determine the amount of increase (C>0) or decrease (C<0) in the midlevel gray range. Lixu Gu @ 2005 copyright reserved

Lixu Gu @ 2005 copyright reserved Application Photometric calibration Contrast enhancement thresholding Contour lines clipping Lixu Gu @ 2005 copyright reserved

Lixu Gu @ 2005 copyright reserved Algebraic operation Algebraic operation: Produce an output image which is the pixel-by-pixel sum, difference, product, or quotient of two or more images. If one of the input image is a constant, it can be treated as a linear point operation. Lixu Gu @ 2005 copyright reserved

Lixu Gu @ 2005 copyright reserved Definition The four algebraic image-processing operations are expressed mathematically as: C(x,y) = A(x,y) + B(x,y) C(x,y) = A(x,y) - B(x,y) C(x,y) = A(x,y)  B(x,y) C(x,y) = A(x,y)  B(x,y) Where, A(x,y) and B(x,y) are the input images C(x,y) is the output image. Lixu Gu @ 2005 copyright reserved

Lixu Gu @ 2005 copyright reserved Application Image Addition: Averaging for noise reduction Double-exposure effect Image Subtraction: Background subtraction Motion detection Gradient magnitude Multiplication and division Lixu Gu @ 2005 copyright reserved

Lixu Gu @ 2005 copyright reserved Geometric Operation Geometric operation: Change the spatial relationships among the objects in an image. Moving things around within the image. Two algorithms are required: Spatial transformation Gray level interpolation Lixu Gu @ 2005 copyright reserved

Lixu Gu @ 2005 copyright reserved Transformation Simple transform: Suppose the coordinate before and after the transform are (x,y) and (x’,y’) Translation: Rotation: Lixu Gu @ 2005 copyright reserved

Lixu Gu @ 2005 copyright reserved Transformation Scale change: Order of transform Translation followed by scale change Scale change followed by translation Lixu Gu @ 2005 copyright reserved

Typical Transformations Scale change followed by rotation Rotation followed by scale change Lixu Gu @ 2005 copyright reserved

Lixu Gu @ 2005 copyright reserved Application Original Translation Rotation (300) Scale change (60%) Lixu Gu @ 2005 copyright reserved

Interpolation Algorithm Nearest Neighbor Interpolation: Bilinear Interpolation (square interpolation): see detail at pp.118~119 Higher Order Interpolation: 样条函数 (B-Spline) 多项式函数 (Polynomials) Lixu Gu @ 2005 copyright reserved

Neighbourhood Operators Lixu Gu @ 2005 copyright reserved

Neighbourhood Operators Pixel Connectivity: for a pixel P(x,y) 4-neighbours: N4(P) = {(x+1,y), (x-1,y), (x,y+1),(x,y-1)} 8-neighbours : N8(P) = N4(P) {(x+1,y+1), (x+1,y-1), (x-1,y+1),(x-1,y-1)} 4(8)-connected: two pixels within N4(P) or N8(P) Lixu Gu @ 2005 copyright reserved

Connected Component Labeling Connected components labeling: groups the pixels in an image into components based on pixel connectivity Labels components with a gray level or a color (color labeling) Connected component labeling works by scanning an image, pixel-by-pixel (from top to bottom and left to right) in order to identify connected pixel regions Intensity criterion(IC): the same set of intensity values ( 1 for a binary image; a value range for a gray level image) Lixu Gu @ 2005 copyright reserved

Lixu Gu @ 2005 copyright reserved Labeling Algorithm Labeling algirithm: for a pixel P satisfy IC Step 1 (First Scan): If all neighbors do not satisfy IC, assign a new label to P if only one neighbor satisfy IC, assign its label to P if one or more of the neighbors satisfy IC, assign one of the labels to P and make a note of the equivalences. Step2 (Resolve equivalence) : The equivalent label pairs are sorted into equivalence classes by a equivalence resolve algorithm ( e.g. Floyd-Warshall algorithm) and a unique label is assigned to each class Step3 (Second scan) : Each label is replaced by the label assigned to its equivalence classes Lixu Gu @ 2005 copyright reserved

Lixu Gu @ 2005 copyright reserved Labeling Algorithm Examples: %banner S Labels %banner C Labels ##### 00000 ##### 00000 # # 1 2 # # 1 2 # 1 # 1 ##### 33333 # 1 # 4 # 1 # # 5 4 # # 1 3 ##### 66666 ##### 44444 Lixu Gu @ 2005 copyright reserved

Lixu Gu @ 2005 copyright reserved Region Property Region Properties are important features for the region analysis (or measurement) after the regions have been labeled (segmented) Region Properties: Perimeter and Area Center, Radius and Diameter Centroid Moments and Orientation Extreme Points and Curvature Intensity Properties Lixu Gu @ 2005 copyright reserved

Lixu Gu @ 2005 copyright reserved Region Property Perimeter and Area: Perimeter: The length of the contour of a connected component (region). calculated from the chain-code of the contour,or estimated by the number of pixels on the contour. Area: The number of unit squares contained. Pick’s formula: A(P) = nI + nB/2-1 nI , nB : number of interior points or the points lie on borders, respectively. Lixu Gu @ 2005 copyright reserved

Lixu Gu @ 2005 copyright reserved Region Property Center, Radius and Diameter : Eccentricity of a point P in F is the maximum of distance d(p,q) for all points qF: ecc(p) = max d(p,q) | qF Center: The set of points P of least eccentricity Radius: The value of the least eccentricity d(p,p’) Diameter: The value of the greatest eccentricity d(p’,q’) F P’ q’ P Lixu Gu @ 2005 copyright reserved

Lixu Gu @ 2005 copyright reserved Region Property Centroid Moments and Orientation: Centroid: Given F, a set of n connected pixels (xi,yi), we can define a centroid c as: Moments: The discrete (k,l)-order central moment is defined as: Orientation: Orientation is defined here as an angle  : Lixu Gu @ 2005 copyright reserved

Lixu Gu @ 2005 copyright reserved Projects Lixu Gu @ 2005 copyright reserved

Lixu Gu @ 2005 copyright reserved Project -1 Histogram and threshold: Requirement: Program to realize Histogram analysis and threshold operation Design UI and function buttons Threshold operation can be manual or automatic (Otsu and Entropy) Choose your favorite language Lixu Gu @ 2005 copyright reserved

Lixu Gu @ 2005 copyright reserved Classic Image Samples Lixu Gu @ 2005 copyright reserved

Lixu Gu @ 2005 copyright reserved Classic Image Samples Lixu Gu @ 2005 copyright reserved

Lixu Gu @ 2005 copyright reserved Discussion Lixu Gu @ 2005 copyright reserved