Statistical Operations

Slides:



Advertisements
Similar presentations
Embedded Image Processing on FPGA Brian Kinsella Supervised by Dr Fearghal Morgan.
Advertisements

Grey Level Enhancement Contrast stretching Linear mapping Non-linear mapping Efficient implementation of mapping algorithms Design of classes to support.
Exposure and Dynamic Range Low contrast | High Contrast.
Image Histograms Cumulative histogram
EE663 Image Processing Histogram Equalization Dr. Samir H. Abdul-Jauwad Electrical Engineering Department King Fahd University of Petroleum & Minerals.
Automatic Histogram Threshold Using Fuzzy Measures 呂惠琪.
Image Processing1 Statistical Operations Gray-level transformation Histogram equalization Multi-image operations.
Chapter 4: Image Enhancement
BYST Eh-1 DIP - WS2002: Enhancement in the Spatial Domain Digital Image Processing Bundit Thipakorn, Ph.D. Computer Engineering Department Image Enhancement.
DREAM PLAN IDEA IMPLEMENTATION Introduction to Image Processing Dr. Kourosh Kiani
Exposure and Dynamic Range Low contrast | High Contrast.
Multimedia Data Introduction to Image Processing Dr Mike Spann Electronic, Electrical and Computer.
IMAGE 1 An image is a two dimensional Function f(x,y) where x and y are spatial coordinates And f at any x,y is related to the brightness at that point.
Detecting Vehicles from Satellite Images Presented By: Dr. Fernando Rios Dr. Rocio Alba Flores Sumalatha Kuthadi Prashant Jain.
University of Ioannina - Department of Computer Science Intensity Transformations (Point Processing) Christophoros Nikou Digital Image.
Design Visualization and Character Development Artistic Rendering Using Illustration Software.
Multimedia Data Introduction to Image Processing Dr Sandra I. Woolley Electronic, Electrical.
Digital Image Processing Lecture 4: Image Enhancement: Point Processing Prof. Charlene Tsai.
EE663 Image Processing Dr. Samir H. Abdul-Jauwad Electrical Engineering Department King Fahd University of Petroleum & Minerals.
MULTIMEDIA TECHNOLOGY SMM 3001 MEDIA - IMAGES. Processing digital Images digital images are often processed using “digital filters” digital images are.
: Chapter 4: Statistical Operations 1 Montri Karnjanadecha ac.th/~montri Image Processing.
Computational Biology, Part 22 Biological Imaging II Robert F. Murphy Copyright  1996, 1999, All rights reserved.
More digital reading explaining LUT RT 244 Perry Sprawls, Ph.D. Professor Emeritus Department of Radiology Emory University School of.
CH2. Point Processes Arithmetic Operation Histogram Equalization
Digital Image Processing Part 2 Contrast processing.
CDS 301 Fall, 2008 Image Visualization Chap. 9 November 11, 2008 Jie Zhang Copyright ©
Digital Image Processing
Chapter 8 Computer Vision. Artificial IntelligenceChapter 92 Contents What is Image Processing? Digital Image Processing Electromagnetic Spectrum Steps.
Machine Vision Edge Detection Techniques ENT 273 Lecture 6 Hema C.R.
Lecture Reading  3.1 Background  3.2 Some Basic Gray Level Transformations Some Basic Gray Level Transformations  Image Negatives  Log.
More digital 244 wk 12 Perry Sprawls, Ph.D. Professor Emeritus Department of Radiology Emory University School of Medicine Atlanta, GA,
Digital Image Processing Lecture 4: Image Enhancement: Point Processing January 13, 2004 Prof. Charlene Tsai.
Prof. Amr Goneid, AUC1 Analysis & Design of Algorithms (CSCE 321) Prof. Amr Goneid Department of Computer Science, AUC Part 3. Time Complexity Calculations.
Image Enhancement Band Ratio Linear Contrast Enhancement
HADI Tutorial Void Inspection Contents 1.Basic Void Inspection Procedure 2.Smooth ROI 3.Background Processing (Flatten BG) 4.Thresholding (Void.
Image Enhancement in the Spatial Domain.
Lecture z Chapter 10: Image Segmentation. Segmentation approaches 1) Gradient based: How different are pixels? 2) Thresholding: Converts grey-level images.
AP Biology: Standard Deviation and Standard Error of the Mean
Lecture Six Figures from Gonzalez and Woods, Digital Image Processing, Second Edition, Copyright 2002.
REMOTE SENSING Digital Image Processing Radiometric Enhancement Geometric Enhancement Reference: Chapters 4 and 5, Remote Sensing Digital Image Analysis.
IMAGE PROCESSING Questions and Answers.
Digital Image Processing
: Chapter 9: Image Segmentation
Image quantization By Student Manar naji. quantization The values obtained by sampling a continuous function usually comprise of an infinite set or.
Digital Processing Techniques for Transmission Electron Microscope Images of Combustion-generated Soot Bing Hu and Jiangang Lu Department of Civil and.
Intensity Transformations and Spatial Filtering
Discussion #29 – Images II
Digital Image Processing
IMAGE PROCESSING AKSHAY P S3 EC ROLL NO. 9.
7 elements of remote sensing process
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
Image Enhancement in the
CSC 381/481 Quarter: Fall 03/04 Daniela Stan Raicu
Spatial operations and transformations
Technique 6: General gray-level transformations
Digital Image Processing Week III
Histogram Equalization
Technique 6: General gray-level transformations
Grey Level Enhancement

CIS 4350 Image ENHANCEMENT SPATIAL DOMAIN
Quantizing Compression
Lecture 6 Histogram processing.
Histogram The histogram of an image is a plot of the gray _levels values versus the number of pixels at that value. A histogram appears as a graph with.
Segmentation and Edge Detection
Digital image Levels of gray levels, quality: 1 byte = 8 bit 0 = Black
Image Enhancement in Spatial Domain: Point Processing
Quantizing Compression
Spatial operations and transformations
Presentation transcript:

Statistical Operations Gray-level transformation Histogram equalization Multi-image operations 240-373 Image Processing

Histogram If the number of pixels at each gray level in an image is counted (may use the following code fragment) for (row=0; row<rowmax; roww++) for (col=0; col=colmax; col++) { count[image[row,col]]++; } 240-373 Image Processing

Histogram The array “count” can be plotted to represent a “histogram” of the image as the number of pixels at particular gray level The histogram can yield useful information about the nature of the image. An image may be too bright or too dark. 240-373 Image Processing

Histogram Illustration 10 9 1 2 3 2 3 2 0 0 1 2 1 4 4 4 2 1 2 1 1 2 1 2 1 2 5 4 2 1 4 0 8 7 6 5 4 3 2 1 1 2 3 4 5 240-373 Image Processing

Global Attenuation in Brightness To alter the brightness of an image by adding or subtracting all pixel values with a constant for (row=0; row<rowmax; roww++) for (col=0; col=colmax; col++) { image[row,col] += constant; } 240-373 Image Processing

240-373 Image Processing

240-373 Image Processing

240-373 Image Processing

240-373 Image Processing

Thresholding Use: Operation: To remove the gray level trends in an image To make gray level more discrete To segment or split an image into distinct parts Operation: setting all gray levels below a certain level to “zero”, and above a certain level to a maximum brightness 240-373 Image Processing

Code for Thresholding for (row=0; row<rowmax; roww++) for (col=0; col=colmax; col++) { if (image[row,col] > threshold) image[row,col] = MAX; else image[row,col] = MIN; } 240-373 Image Processing

240-373 Image Processing

Thresholding Errors Rarely is it possible to identify a perfect gray level break, what we want to be background pixels become foreground or vice versa Type 1: not all pixels caught that should be included Type 2: some pixels caught should not be included in the group 240-373 Image Processing

An image before and after thresholding 240-373 Image Processing

Bunching (Quantizing) Use: to reduce the number of different gray level in an image to segment an image to remove unwanted gray level degradation Operation: Close gray levels are combined, thus removing unwanted variations in data 240-373 Image Processing

Bunching (Quantizing) Method 1: inspecting histogram and combining close group into single gray level Method 2: identifying a set of gray levels allowed in the final image, then changing the gray level in every pixel to its nearest allowed value 240-373 Image Processing

Bunching Example 0 **** 0 ****** 1 ** 1 2 ***** 2 3 ********* 0 **** 1 ** 2 ***** 3 ********* 4 ***** 5 ***** 6 ***** 7 ***** 8 ********* 9 *** 0 ****** 1 2 3 ******************* 4 5 6 *************** 7 8 9 ************ 240-373 Image Processing

Bunching Code for (row=0; row<rowmax; row++) for (col=0; col<colmax; col++) { image[row,col] = bunchsize*((int)image[row,col]/bunchsize); } bunchsize = number of levels to be grouped into one 240-373 Image Processing

Splittings Use: Operation: to increase the different two groups of gray levels so that the contrast between segments compose of one group of the other is enhanced Operation: rounding the gray levels up if they are in the range and down if they are in another 240-373 Image Processing

Splitting Example The characters on a car number-plate are at gray level 98 The background of the characters is at gray level 99 Pushing 98 down to 80 and pushing 99 up to 120 will give the picture a better contrast around the number plate Question: How to find a good splitting level? 240-373 Image Processing

Automatic Selection of Splitting Level Use: to find the best gray level for splitting--usually for thresholding to black and white Operation: Let 240-373 Image Processing

Automatic Selection of Splitting Level Let P=NxM = the number of pixels under consideration Let m(g) = mean gray level for only those pixels containing gray level between zero and g, i.e. If the maximum number of gray level is G (G=0,…,G-1) then evaluate the following equation (T = splitting threshold) A B 240-373 Image Processing

Example Histogram f(g) t(g) g.f(g) Sg.f(g) m(g) A B A*B 0 **** 4 4 0 0 0 0.08 23.04 0.18 1 ** 2 6 2 2 0.3 0.13 20.25 2.83 2 ***** 5 11 10 12 1.1 0.27 13.69 3.70 3 ********* 9 20 27 39 2 0.63 7.84 4.94 4 ***** 5 25 20 59 2.4 0.93 5.76 5.36 5 ***** 5 30 25 84 2.8 1.36 4.00 5.44 6 ***** 5 35 30 114 3.3 2.06 2.25 4.64 7 ***** 5 40 35 149 3.7 3.33 1.21 4.03 8 ********* 9 49 72 221 4.5 16.33 0.09 1.47 9 *** 3 52 27 248 4.8 -INF- T = max(A*B) - 1 = 4 240-373 Image Processing