22.09.2011 Digital Image Processing Exercise 1.

Slides:



Advertisements
Similar presentations
JPEG Compresses real images Standard set by the Joint Photographic Experts Group in 1991.
Advertisements

電腦視覺 Computer and Robot Vision I
Image Processing Lecture 4
Chapter 3 Image Enhancement in the Spatial Domain.
EE663 Image Processing Histogram Equalization Dr. Samir H. Abdul-Jauwad Electrical Engineering Department King Fahd University of Petroleum & Minerals.
Lecture 07 Segmentation Lecture 07 Segmentation Mata kuliah: T Computer Vision Tahun: 2010.
Teaching assistant: Yimo Guo Digital Image Processing (Digitaalinen kuvankäsittely) Exercise 1.
電腦視覺 Computer and Robot Vision I Chapter2: Binary Machine Vision: Thresholding and Segmentation Instructor: Shih-Shinh Huang 1.
Quadtrees, Octrees and their Applications in Digital Image Processing
Objective of Computer Vision
Quadtrees, Octrees and their Applications in Digital Image Processing
Image Enhancement.
Objective of Computer Vision
Computer Vision Lecture 3: Digital Images
EEE377 Lecture Notes1 EEE436 DIGITAL COMMUNICATION Coding En. Mohd Nazri Mahmud MPhil (Cambridge, UK) BEng (Essex, UK) Room 2.14.
1 Image Processing(IP) 1. Introduction 2. Digital Image Fundamentals 3. Image Enhancement in the spatial Domain 4. Image Enhancement in the Frequency Domain.
Image Formation and Digital Video
CS 376b Introduction to Computer Vision 02 / 26 / 2008 Instructor: Michael Eckmann.
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}
Digital Image Processing
Spatial transformations
1/1/20001 Topic >>>> Scan Conversion CSE Computer Graphics.
Machine Vision for Robots
: Chapter 12: Image Compression 1 Montri Karnjanadecha ac.th/~montri Image Processing.
The Digital Image Dr. John Ryan.
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.
September 5, 2013Computer Vision Lecture 2: Digital Images 1 Computer Vision A simple two-stage model of computer vision: Image processing Scene analysis.
Digital Image Processing CCS331 Relationships of Pixel 1.
Quadtrees, Octrees and their Applications in Digital Image Processing.
Digital Image Processing Image Compression
Digital Image Fundamentals Faculty of Science Silpakorn University.
CS654: Digital Image Analysis Lecture 18: Image Enhancement in Spatial Domain (Histogram)
Intensity Transformations (Histogram Processing)
Digital Image Processing (Digitaalinen kuvankäsittely) Exercise 2
Computer Vision Introduction to Digital Images.
CS654: Digital Image Analysis Lecture 5: Pixels Relationships.
CS 376b Introduction to Computer Vision 02 / 11 / 2008 Instructor: Michael Eckmann.
IT-101 Section 001 Lecture #9 Introduction to Information Technology.
Visual Computing Computer Vision 2 INFO410 & INFO350 S2 2015
Data Representation. What is data? Data is information that has been translated into a form that is more convenient to process As information take different.
STATISTIC & INFORMATION THEORY (CSNB134) MODULE 11 COMPRESSION.
Nottingham Image Analysis School, 23 – 25 June NITS Image Segmentation Guoping Qiu School of Computer Science, University of Nottingham
1 © 2010 Cengage Learning Engineering. All Rights Reserved. 1 Introduction to Digital Image Processing with MATLAB ® Asia Edition McAndrew ‧ Wang ‧ Tseng.
EE 7730 Image Enhancement. Bahadir K. Gunturk2 Image Enhancement The objective of image enhancement is to process an image so that the result is more.
Huffman Coding (2 nd Method). Huffman coding (2 nd Method)  The Huffman code is a source code. Here word length of the code word approaches the fundamental.
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.
Digital Image Processing CCS331 Relationships of Pixel 1.
Computer Graphics CC416 Lecture 04: Bresenham Line Algorithm & Mid-point circle algorithm Dr. Manal Helal – Fall 2014.
Image Sampling and Quantization
Chapter 6 Continuous Probability Distribution
Color Image Processing
Miguel Tavares Coimbra
Data Compression.
JPEG Image Coding Standard
Digital 2D Image Basic Masaki Hayashi
Data Compression.
Computer Vision Lecture 5: Binary Image Processing
CSC 381/481 Quarter: Fall 03/04 Daniela Stan Raicu
Digital Image Processing
Digital Image Processing
Digital Image Procesing Introduction to Image Enhancement Histogram Processing DR TANIA STATHAKI READER (ASSOCIATE PROFFESOR) IN SIGNAL PROCESSING IMPERIAL.
Image Segmentation.
Computer and Robot Vision I
Computer and Robot Vision I
Miguel Tavares Coimbra
Lecture 7 Spatial filtering.
Presentation transcript:

Digital Image Processing Exercise 1

Exercises: - Questions : one week before classQuestions - Solutions : the day we have class Solutions - Slides along with Matlab code (if have) : after classSlidesMatlab code

1 gigabyte = ( 8 × ) bits 1. One of the several HDTV formats is 1080p24, which means video stream of full frames of 1920×1080 pixels at frame rate 24 fps. If each pixel has 24 bits of intensity resolution (8 bits each for red, green and blue channels), how many gigabytes are needed for 2 hours of HDTV video without compression? HDTV (High-definition television) formats is 1080p24. Each pixel has 24 bits of intensity resolution. Frame rate 24 fps. Video size is n b × n f bits

2. (Exam ) Perform connected component analysis of the follow- ing binary image. Use the two-scan labeling algorithm and represent results after each scan by using letters (a,b,c,... ) as labels. (a) Assume 4-connectivity. From left to right, top to bottom. Examine each pixel P and its neighbor pixels: left (x 1 ) and up (x 2 ). First scan:

Second scan: Image is scanned and pixels are given final labels according to the equivalences found during the first scan.

(b) Assume 8-connectivity. This picture is scanned in the similar way as with 4-connectivity, but now we examine four neighbors of P (also the diagonal neighbors). We notice that a is equal to b. They are given final label A in the second scan. (Matlab code)

3. (Gonzalez & Woods 2007, Ex. 2.15) Consider the image segment shown. (a)Let V = {0, 1} and compute the lengths of the shortest 4-, 8-, and m-path between p and q. If a particular path does not exist between these points, explain why. i. There is no 4-path between p and q, as none of the 4-neighbors of pixel q have values from V.

ii. The shortest 8-path from p to q, considering 8 neighborhood of one pixel (q) (p) 1012 V = {0, 1} p = (3; 0); (3; 1); (2; 2); (1; 2); (0; 3) = q The length is N - 1 where N is the number of pixels on the path. The length of the shortest 8-path is 4.

iii. The shortest m-path from p to q. m- adjacency (Page 67) : Two pixels p and q with values from V are m-adjacent if: (i) q is in N 4 (p), or (ii) q is in N D (p) and the intersection set of N 4 (p) N 4 (q) has no pixels whose values are from V (q) (p) 1012 V = {0, 1} Intersection set of N 4 (p) and N 4 (q) is {1, 2} Thus, the length of this path is 5.

(b) Let V = {1, 2} and compute the lengths of the shortest 4-, 8-, and m-path between p and q. If a particular path does not exist between these points, explain why. i. One possibility for 4-path: p = (3; 0); (2; 0); (2; 1); (2; 2); (2; 3); (1; 3); (0; 3) = q The length of this path is 6. ii. One possibility for the shortest 8-path: p = (3; 0); (2; 1); (1; 1); (0; 2); (0; 3) = q The length of the shortest path is 4. iii. One possibility for the shortest m-path: p = (3; 0); (2; 0); (2; 1); (1; 1); (0; 1); (0; 2); (0; 3) = q The length of this path is 6. Notice that these paths are not unique. It is easily verified that another path of the same length exists between p and q.

Equalization of an image histogram is the cumulative density function. (a) Perform histogram equalization given the following histogram. (r=Gray level, n=number of occurrences) First, calculate the probability p k for each gray level: p k = n k /sum(n k ) 4.

Second, compute the discrete cumulative density function s k. Finally, round to the nearest discrete value available: The equalized histogram is: x/7

(b) Perform histogram specification of the previous histogram using the specified histogram shown in the following table. (r=Gray level, p=probability of occurrences) Transform the histogram into a given distribution. First, equalize the histogram. (in part (a) ) Second, change the equalized histogram into the given target distribution. (inverse transform z = G-1(s), where G(z) is a mapping that equalizes the target distribution) Compute this mapping: First, cumulate the probability.

Next, apply the inverse transform z = G -1 (s), by finding the closest s k for each s k ’ computed in part (a). part (a) Thus, the histogram resulting from the transform is:

5. An image is corrupted by additive uncorrelated, zero-average noise yielding How is the signal-to-noise ratio affected if you average these K images? Signal-to-noise power ratio: For single image:

zero-average noise:

The average image: Its signal-to-noise power ratio:

Finally, the signal-to-noise ratio becomes: (Matlab code) P(x,y)

6. (Exam ) Explain different methods for handling border pixels with mask operations. (a) operator modification operator is modified for exceptions where some of the necessary neighbors are missing often complex seldom used (b) adding zeroes easy to perform often used

(c) reflecting usually better than adding zeroes often used

(d) image is considered to be cyclic seldom used one should have some reason for assuming the image to be periodic

(e) only the pixels that have all the necessary neighbors are processed the only ‘right’ way processed image is smaller than original