SCCS 4761 Introduction What is Image Processing? Fundamental of Image Processing
SCCS 4762 Image & Image Processing Image and Pictures –An image is a single picture that represents something What is image processing? –Interest in digital image processing methods stems from two application areas: Improvement of pictorial information for human interpretation Processing of image data for storage, transmission, and representation for autonomous machine perception
SCCS 4763 Example 1: Contrast Enhancement BEFOREAFTER Gamma = 0.5
SCCS 4764 Example 2: Sharpening BEFORE AFTER
SCCS 4765 Example 3: Denoising BEFOREAFTER
SCCS 4766 Example 3: Edge Extraction
SCCS 4767 Example 4: Blurring
SCCS 4768 Example 5: Blurring & Sharpening
SCCS 4769 Example 6:Image Enhancement
SCCS Example 6: Image Enhancement
SCCS Image Acquisition and Sampling t A How many points must be used to represent this curve? At least at the rate of Nyquist rate (twice the maximum frequency in the function). Sampling
SCCS Undersampling Definition: sampling signals with too few points Effects: aliasing (jagged edge in image)
SCCS Using Light & Other Energy Sources Light is the predominant energy source for images. Digital images are captured using visible light, infrared, ultraviolet, etc.
SCCS Image Acquisition Camera: digital camera –CCD (Charge-Coupled Device) –CMOS (Complementary Metal Oxide Semi- conductor) Flat-bed scanner –Scan row by row –Examples: Computed Axial Tomography, MRI, etc.
SCCS Imaging Sensors (a) Single sensor (b) Line sensor (c) Array sensor
SCCS Digital image acquisition process
SCCS Images and Digital Images
SCCS Image Sampling & Quantization Quantization Image Sampling
SCCS Pixel Picture elements Pixel
SCCS Digital Images
SCCS Image Representation Consider an image as a matrix Intensity of pixel ( x,y ), f( x,y ), is the member at row x and column y of the matrix Lexicographic ordering: –Rearrange image matrix into 1-D vector format –Concatenate the row together –Pixel at (x,y) is at the position x WIDTH + y
SCCS Neighborhood 3 neighborhood (usually is the odd number)
SCCS Applications of Image Processing Medicine –Inspection and investigation of images obtained from x-rays, MRI, CAT scans –Analysis of cell images and chromosome karyotypes Agriculture –Satellite/aerial views of land: determine how much land is being used –Inspection of fruit and vegetables: distinguish good and fresh produce from old Industry –Automatic inspection of items on a production line –Inspection of paper samples Law enforcement –Fingerprint analysis
SCCS Aspects of Image Processing (image processing algorithm ) Image Enhancement : processing an image so that the result is more suitable for a particular application. –sharpening or deblurring –highlighting edges –improving image contrast or brightening image –removing noise
SCCS Aspects of Image Processing (cont) Image Restoration: An image may be restored by the damage done to it by known cause, for example –removing of blur caused by linear motion –removing of optical distortions –removing periodic interference Note: (i) enhancement – make it look better, (ii) restoration – remove damage
SCCS Aspects of Image Processing (cont) Image Segmentation: Segmentation involves subdividing an image into constitute parts –finding lines, circles, or particular shapes in an image –Identifying cars, trees buildings, or roads in an aerial photograph
SCCS Image Processing Task Real-world application: A system for reading the postal codes from envelopes –Image Acquisition. First we need to produce a digital image from a paper envelop. This can be done using either CCD camera or a scanner. –Preprocessing. Use some image processing algorithms to obtain the resulting image more suitable for the later process. In this application it may involve enhancing the contrast, removing noises, or identifying regions likely to contain the postal code. –Segmentation. Use some image processing algorithms to extract the region that contains postal code from the image
SCCS Image Processing Task (cont) –Representation and description. Extracting the particular features to differentiate between objects. Here suppose we will be looking for curves, holes, and corners that allow us to distinguish the different digits that constitute a postal code. –Recognition and interpretation. Assigning labels to objects based on their descriptors (from the previous step) and assigning meanings to these labels. We identify particular digits, and interpret a string of digits at the end of the address as the postal code.
SCCS Types of Digital Images Binary –1 bit/pixel (black & white image) Grayscale –8 bit/pixel (gray image) Color image: –true color: 24 bit/pixel (Red, Green Blue, colors) Indexed image: 8 bit/pixel (color image with 256 colors)
SCCS Binary Image Two color: black and white. No gray. Value range: 0 : black, 1 : white
SCCS Grayscale Image Use black (0), white (255) and shades of gray Value range: 0-255
SCCS Color Image 3 bytes for 1 pixel R = [0,255], G = [0, 255], B = [0,255]
SCCS Indexed Image Mostly 1 byte for 1 pixel Good for image composing of less than 256 colors
SCCS Indexed Image (cont) Indices (value of the pixel) Color Map (Palette) Index 0 Color: (0.1807, , ) Color: (0.1611, , )
SCCS Size of Image File Total number of pixel = Width Height Size = Total number of pixel size of pixel = Width Height #bit/pixel [bits] = Width Height #byte/pixel [byte]
SCCS Examples: File Size Binary image: –Width = 352 –Height = 288 –Size = ? Grayscale image: –Width = 352 –Height = 288 –Size = ?
SCCS Image Perception Much of image processing in concerned with making an image appear better to human beings. Therefore, we should be aware of the limitations of the human visual system. Image perception consists of –capture the image with the eye –recognize and interpret the image with the visual cortex in the brain
SCCS Limitations of Human Visual System Observed intensities vary as to the background
SCCS Limitations of Human Visual System (cont) Observation of nonexistence intensity as bars in continuously varying gray level
SCCS Limitations of Human Visual System (cont)
SCCS Limitations of Human Visual System (cont) False contouring
SCCS Limitations of Human Visual System (cont) Undershoot or overshoot around the boundary of regions of different intensities –Boundary appeared brighter when seeing from dark to bright region. –Boundary appeared darker when seeing from bright to dark region
SCCS Limitations of Human Visual System (cont) Mach bands