Ch2: Digital image Fundamentals Prepared by: Hanan Hardan

Slides:



Advertisements
Similar presentations
Pixels and Digital Images Yrd. Doc. Dr. Ahmet Sayar Kocaeli Universitesi Bilgisayar Muhendisligi Ileri Bilgisayar Grafikleri.
Advertisements

CS Spring 2009 CS 414 – Multimedia Systems Design Lecture 4 – Digital Image Representation Klara Nahrstedt Spring 2009.
Digital Image Fundamentals Selim Aksoy Department of Computer Engineering Bilkent University
Chap 1 Image fundamental. Trends Image processing techniques have developed from Gray-level processing to color processing 2-D processing to 3-D processing.
Image Analysis Preprocessing Image Quantization Binary Image Analysis
Digital Image Fundamentals
1 Image filtering Images by Pawan SinhaPawan Sinha.
1 Image filtering
Computer Vision Lecture 3: Digital Images
Chapter 2: Digital Image Fundamentals Fall 2003, 劉震昌.
5. 1 JPEG “ JPEG ” is Joint Photographic Experts Group. compresses pictures which don't have sharp changes e.g. landscape pictures. May lose some of the.
College Algebra Fifth Edition James Stewart Lothar Redlin Saleem Watson.
Mestrado em Ciência de Computadores Mestrado Integrado em Engenharia de Redes e Sistemas Informáticos VC 14/15 – TP3 Digital Images Miguel Tavares Coimbra.
The Digital Image.
Digital Image Fundamentals
Digital Images Chapter 8 Exploring the Digital Domain.
What is an image? f(x,y):2 
Digital Image Processing Lecture 2
Digital Image Processing in Life Sciences March 14 th, 2012 Lecture number 1: Digital Image Fundamentals.
Digital Image Fundamentals Selim Aksoy Department of Computer Engineering Bilkent University
© 1999 Rochester Institute of Technology Introduction to Digital Imaging.
Digital Image Fundamentals II 1.Image modeling and representations 2.Pixels and Pixel relations 3.Arithmetic operations of images 4.Image geometry operation.
1 CS6825: Digital images How are DIGITAL images created. How are DIGITAL images created. Previous lecture we discussed how ANALOG images are created Previous.
September 5, 2013Computer Vision Lecture 2: Digital Images 1 Computer Vision A simple two-stage model of computer vision: Image processing Scene analysis.
1 COMS 161 Introduction to Computing Title: Digital Images Date: November 12, 2004 Lecture Number: 32.
Chapter Teacher: Remah W. Al-Khatib. This lecture will cover:  The human visual system  Light and the electromagnetic spectrum  Image representation.
Digital Image Fundamentals Faculty of Science Silpakorn University.
A Simple Image Model Image: a 2-D light-intensity function f(x,y)
Spring 2012Meeting 2, 7:20PM-10PM1 Image Processing with Applications-CSCI567/MATH563 Lectures 3, 4, and 5: L3. Representing Digital Images; Zooming. Bilinear.
3. Image Sampling & Quantisation 3.1 Basic Concepts To create a digital image, we need to convert continuous sensed data into digital form. This involves.
Lecture 3 The Digital Image – Part I - Single Channel Data 12 September
Digital Image Processing (DIP) Lecture # 5 Dr. Abdul Basit Siddiqui Assistant Professor-FURC 1FURC-BCSE7.
Digital Image Processing Lecture 3: Image Display & Enhancement March 2, 2005 Prof. Charlene Tsai.
Ch1: Introduction Prepared by: Tahani Khatib AOU
Medical Image Processing & Neural Networks Laboratory 1 Medical Image Processing Chapter 2 Digital Image Fundamentals 國立雲林科技大學 資訊工程研究所 張傳育 (Chuan-Yu Chang.
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Image Processing Example.
© 2002 by Yu Hen Hu 1 ECE533 Digital Image Processing Image Acquisition.
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Image Processing Example.
Digital Image Processing Lecture4: Fundamentals. Digital Image Representation An image can be defined as a two- dimensional function, f(x,y), where x.
Computer Vision Introduction to Digital Images.
DIGITAL IMAGE. Basic Image Concepts An image is a spatial representation of an object An image can be thought of as a function with resulting values of.
Digital Image Processing In The Name Of God Digital Image Processing Lecture2: Digital Image Fundamental M. Ghelich Oghli By: M. Ghelich Oghli
Image Processing Ch2: Digital image Fundamentals Prepared by: Tahani Khatib.
CS 101 – Sept. 14 Review Huffman code Image representation –B/W and color schemes –File size issues.
ISAN-DSP GROUP Digital Image Fundamentals ISAN-DSP GROUP What is Digital Image Processing ? Processing of a multidimensional pictures by a digital computer.
Image Representation Last update st March Heejune Ahn, SeoulTech.
Lecture 02 Point Based Image Processing Lecture 02 Point Based Image Processing Mata kuliah: T Computer Vision Tahun: 2010.
Digital Image Processing Lecture 4: Image Enhancement: Point Processing January 13, 2004 Prof. Charlene Tsai.
Digital Image Processing Image Enhancement in Spatial Domain
Mohammed AM Dwikat CIS Department Digital Image.
1 Objective To provide background material in support of topics in Digital Image Processing that are based on matrices and/or vectors. Review Matrices.
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)
Image Sampling and Quantization
Digital Image Fundamentals
Miguel Tavares Coimbra
Image Processing Digital image Fundamentals. Introduction to the course Grading – Project: 30% – Midterm Exam: 30% – Final Exam : 40% – Total: 100% –
Multimedia Systems and Applications
Image quantization By Student Manar naji. quantization The values obtained by sampling a continuous function usually comprise of an infinite set or.
CS 1674: Intro to Computer Vision Linear Algebra Review
T490 (IP): Tutorial 2 Chapter 2: Digital Image Fundamentals
Digital Image Processing using MATLAB
Computer Vision Lecture 3: Digital Images
Image filtering Images by Pawan Sinha.
Digital Image Fundamentals
Image filtering Images by Pawan Sinha.
CSC 381/481 Quarter: Fall 03/04 Daniela Stan Raicu
Magnetic Resonance Imaging
Fundamentals of Image Processing Digital Image Representation
Miguel Tavares Coimbra
Lecture 2 Digital Image Fundamentals
Presentation transcript:

Ch2: Digital image Fundamentals Prepared by: Hanan Hardan Image Processing Ch2: Digital image Fundamentals Prepared by: Hanan Hardan

Image sampling and quantization Ch2: image sampling and quantization Image sampling and quantization In order to process the image, it must be saved on computer. The image output of most sensors (eg: Camera) is continuous voltage waveform. But computer deals with digital images not with continuous images, thus: continuous images should be converted into digital form. continuous image (in real life)  digital (computer)

Image sampling and quantization Ch2: image sampling and quantization Image sampling and quantization

Image sampling and quantization Ch2: image sampling and quantization Image sampling and quantization continuous image (in real life)  digital (computer) To do this we use Two processes: sampling and quantization.  Remember that: the image is a function f(x,y), 􀂁 x and y are coordinates 􀂁 F: intensity value (Amplitude) Sampling: digitizing the coordinate values Quantization: digitizing the amplitude values Thus, when x, y and f are all finite, discrete quantities, we call the image a digital image.

How does the computer digitize the continuous image? Ch2: image sampling and quantization How does the computer digitize the continuous image?

Ch2: image sampling and quantization How does the computer digitize the continuous image? Ex: scan a line such as AB from the continuous image, and represent the gray intensities. How does the computer digitize the continuous image? Ex: scan a line such as AB from the continuous image, and represent the gray intensities.

Ch2: image sampling and quantization How does the computer digitize the continuous image? Sampling: digitizing coordinates Quantization: digitizing intensities Gray-level scale that divides gray-level into 8 discrete levels Quantization: converting each sample gray-level value into discrete digital quantity. sample is a small white square, located by a vertical tick mark as a point x,y

Ch2: image sampling and quantization How does the computer digitize the continuous image? Now: the digital scanned line AB representation on computer: The continuous image VS the result of digital image after sampling and quantization

Representing digital images Ch2: image sampling and quantization Representing digital images Every pixel has a # of bits.

Digital Image Representation Coordinate Conventions The result of sampling and quantization is a matrix of real numbers There are two principle ways to represent a digital image: Assume that an image f(x,y) is sampled so that the resulting image has M rows and N columns. We say that the image is of size M x N. The values of the coordinates (x,y) are discrete quantities. For clarity, we use integer values for these discrete coordinates. In many image processing books, the image origin is defined to be at (x,y) = (0,0). The next coordinate values along the first row of the image are (x,y) = (0,1). It is important to keep in mind that the notation (0,1) is used to signify the second sample along the first row. It does not mean that these are the actual values of physical coordinates. Note that x ranges from 0 to M-1, and y ranges from 0 to N-1. Figure (a)

Digital Image Representation Coordinate Conventions The coordinate convention used in toolbox to denote arrays is different from the preceding paragraph in two minor ways. Instead of using (x,y) the toolbox uses the notation (r,c) to indicate rows and columns. The origin of the coordinate system is at (r,c) = (1,1); thus, r ranges from 1 to M and c from 1 to N, in integer increments. This coordinate convention is shown in Figure (b).

Digital Image Representation Coordinate Conventions (B)

Digital Image Representation Images as Matrices The coordination system in figure (A) and the preceding discussion lead to the following representation for a digitized image function:

Digital Image Representation Images as Matrices The right side of the equation is a digital image by definition. Each element of this array is called an image element, picture element, pixel or pel. A digital image can be represented naturally as a MATLAB matrix: Where f(1,1) = f(0,0). Clearly, the two representations are identical, except for the shift in origin.

Ch2: image sampling and quantization Pixels! Every pixel has # of bits (k) Q: Suppose a pixel has 1 bit, how many gray levels can it represent? Answer: 2 intensity levels only, black and white. Bit (0,1)  0:black , 1: white Q: Suppose a pixel has 2 bit, how many gray levels can it represent? Answer: 4 gray intensity levels 2Bit (00, 01, 10 ,11). Now .. if we want to represent 256 intensities of grayscale, how many bits do we need? Answer: 8 bits  which represents: 28=256 so, the gray intensities ( L ) that the pixel can hold, is calculated according to according to number of pixels it has (k). L= 2k

Number of storage of bits: Ch2: image sampling and quantization Number of storage of bits: N * M: the no. of pixels in all the image. K: no. of bits in each pixel L: grayscale levels the pixel can represent L= 2K all bits in image= N*N*k

Number of storage of bits: Ch2: image sampling and quantization Number of storage of bits: EX: Here: N=32, K=3, L = 23 =8 # of pixels=N*N = 1024 . (because in this example: M=N) # of bits = N*N*K = 1024*3= 3072 N=M in this table, which means no. of horizontal pixels= no. of vertical pixels. And thus: # of pixels in the image= N*N

Spatial and gray-level resolution Sampling is the principal factor determining the spatial resolution of an image Basically, spatial resolution is the smallest discernible detail in an image. Spatial Resolution (هي وحدة قياس لاصغر جزء في الصورة يمكن تمييزة بالعين.) عدد البكسلات في الصورة لا يحدد وضوحها, فهو فقط يحد ابعاد الصورة , اما Spatial resolution هو المسؤول عن تحديد الوضوح , فكلما كانت البكسلات متقاربة وتحمل قيم لونيه صحيحة  اكثر كان لها قدرة اعلى على توضيح معالم الصورة بشكل اوضح.

Spatial and gray-level resolution الصورة في اليسار تحمل عدد بكسلات اكبر من الصورة في الجهه اليمين , ومع ذالك الصورة في اليسار تبدوا غير واضحة

Spatial and gray-level resolution Gray-level resolution refers to the smallest discernible change in gray level. وهي تعني اصغر تغيير في الكثافة (كثافة اللون الرمادي) يمكن تمييزها ورؤيتها

Spatial and gray-level resolution Ch2: image sampling and quantization Spatial and gray-level resolution Sub sampling Same # of bits in all images (same gray level) different # of pixels subSampling is performed by deleting rows and columns from the original image.

Ch2: image sampling and quantization Spatial and gray-level resolution Re sampling (pixel replication) A special case of nearest neighbor zooming. Resampling is performed by row and column duplication