image_processing and application

Upload: ravi-kumar-k

Post on 05-Apr-2018

214 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/31/2019 Image_Processing and Application

    1/74

    NICE TO MEET YOU

  • 7/31/2019 Image_Processing and Application

    2/74

    Dr. D.S. Guru

    Department of Studies in Computer Science,

    University of Mysore,

    Mysore, INDIA

  • 7/31/2019 Image_Processing and Application

    3/74

    About my place : Mysore

    A city of palaces, gardens, shady avenues and sacred temples.

    A historical place.

    Retains some of the charm of the old world with its many institutionsthat propagate Carnatic Classical music and dance.

    It is called a beautiful and cultured daughter city of mother India.

    Palace

    St. Philominas Church Holy Temples

  • 7/31/2019 Image_Processing and Application

    4/74

    Brindavan Garden National Park

    Falls Mysore Zoo Bird Sanctuary

  • 7/31/2019 Image_Processing and Application

    5/74

    MANASAGANGOTHRI CAMPUS

    University of Mysore

  • 7/31/2019 Image_Processing and Application

    6/74

    IMAGE PROCESSING

  • 7/31/2019 Image_Processing and Application

    7/74

  • 7/31/2019 Image_Processing and Application

    8/74

  • 7/31/2019 Image_Processing and Application

    9/74

  • 7/31/2019 Image_Processing and Application

    10/74

  • 7/31/2019 Image_Processing and Application

    11/74

  • 7/31/2019 Image_Processing and Application

    12/74

  • 7/31/2019 Image_Processing and Application

    13/74

  • 7/31/2019 Image_Processing and Application

    14/74

  • 7/31/2019 Image_Processing and Application

    15/74

  • 7/31/2019 Image_Processing and Application

    16/74

  • 7/31/2019 Image_Processing and Application

    17/74

  • 7/31/2019 Image_Processing and Application

    18/74

  • 7/31/2019 Image_Processing and Application

    19/74

  • 7/31/2019 Image_Processing and Application

    20/74

  • 7/31/2019 Image_Processing and Application

    21/74

    Image?

    x

    y

    f(x,y)

    O

  • 7/31/2019 Image_Processing and Application

    22/74

    PROCESSING:

    Analysis + Understanding

    IMAGE:

    A two dimensional light intensity function

    Analog Image : f(xR, y R) vR = i(x,y) * r(x,y)

    SamplingQuantization

    Digital Image : f(xZ, yZ) vZ

  • 7/31/2019 Image_Processing and Application

    23/74

    Image Acquisition Process

  • 7/31/2019 Image_Processing and Application

    24/74

  • 7/31/2019 Image_Processing and Application

    25/74

  • 7/31/2019 Image_Processing and Application

    26/74

    Two Dimensional Representation of an Image

    Memory Requirement?

  • 7/31/2019 Image_Processing and Application

    27/74

    Image

    An image is non-textual informationthat can be displayed and printed.

    Images can be from real world orvirtual

    Described as spatial arrays of values

    The smallest addressable imageelement is called PIXEL (pictureelement). The array is called a bitmap

  • 7/31/2019 Image_Processing and Application

    28/74

  • 7/31/2019 Image_Processing and Application

    29/74

  • 7/31/2019 Image_Processing and Application

    30/74

  • 7/31/2019 Image_Processing and Application

    31/74

  • 7/31/2019 Image_Processing and Application

    32/74

  • 7/31/2019 Image_Processing and Application

    33/74

  • 7/31/2019 Image_Processing and Application

    34/74

    Why Image Processing?

    To improve the visual quality of an image for human

    interpretation

    To analyze the contents of the image for autonomousmachine perception

    Image Enhancement

  • 7/31/2019 Image_Processing and Application

    35/74

    Low Contrast Image

    Its Histogram

    High Contrast Image

    Stretched Histogram

    Image Enhancement

  • 7/31/2019 Image_Processing and Application

    36/74

    Low quality imagesImages after processing

  • 7/31/2019 Image_Processing and Application

    37/74

    Equalization

  • 7/31/2019 Image_Processing and Application

    38/74

    Star treck team

  • 7/31/2019 Image_Processing and Application

    39/74

  • 7/31/2019 Image_Processing and Application

    40/74

    Enhanced to acolor image

    Encrypted Image Decrypted Image

    Water

    markingapplication

    Autonomous Machine Perception

  • 7/31/2019 Image_Processing and Application

    41/74

    Region to be inspected

    (Picture of a tunnel)

    A Robot

    Identified Defective RegionClose lookup

    Autonomous Machine Perception

    Automation of Tile inspection

  • 7/31/2019 Image_Processing and Application

    42/74

    In a continuous productionprocess, all dried roof tilesare automatically inspectedfor cracks, deformations,dimensional correctness, andcolor.

    The inspection speed isabout 40 tiles per minute.Defective tiles are eliminatedfrom the production processbefore further refinementtakes place.

    Courtesy: Thuringian research program "Image Processing, PatternRecognition and Engineering Vision Systems" (Germany)

    Automation of Tile inspection

    Quality Assurance

    M di l Di i

  • 7/31/2019 Image_Processing and Application

    43/74

    Medical Diagnosis

    X-ray Image Binary Image Noise eliminated

    Skeletonization Angle Measurement

  • 7/31/2019 Image_Processing and Application

    44/74

    Oblitered Image

    Deciphered Image

    Forensic

    Application

    Thresholdingoperation

    Enhanced Image

    Median Filtering

    N b l t id tifi ti

  • 7/31/2019 Image_Processing and Application

    45/74

    The vehicle approached the secured area, and starts the cycle

    by stepping over a magnetic loop detector (which is the mostpopular vehicle sensor). The loop detector senses the car and

    its presence is signaled to the LPR unit.

    Number plate identification

  • 7/31/2019 Image_Processing and Application

    46/74

    The LPR unit activates the illumination (invisible Infra-

    red in most cases) and takes pictures of the front or rear

    plates from the LPR camera (shown at the left side of

    the gate). The images of the vehicle include the plateand the pixel information is read by the LPR unit's

    image processing hardware (the frame grabber).

  • 7/31/2019 Image_Processing and Application

    47/74

    The LPR unit analyzes the image with different image

    processing software algorithms, enhances the image, detects

    the plate position, extracts the plate string, and identifies the

    fonts using special artificial intelligence methods (such asNeural Networks)

  • 7/31/2019 Image_Processing and Application

    48/74

    The LPR unit checks if the vehicle appears on a predefined

    list of authorized cars, and if found - it signals to open the

    gate by activating its relay. The unit can also switch on a

    green "go-ahead" light or red "stop" light. The unit can alsodisplay a Welcome! message with personalized data.

  • 7/31/2019 Image_Processing and Application

    49/74

    The authorized vehicle enters into the secured

    area. After passing the gate its detector closes the

    gate. Now the system waits for the next vehicle to

    approach the secured area

  • 7/31/2019 Image_Processing and Application

    50/74

    A Number Plate Recognition

    system

  • 7/31/2019 Image_Processing and Application

    51/74

    The plate number is used to produce a violation

    fine on speed or red-light systems The manualprocess of preparing a violation fine is replaced by

    an automated process which reduces the time. The

    fines can be viewed and paid on-line.

  • 7/31/2019 Image_Processing and Application

    52/74

    Image segmentation

    Cheque validation

  • 7/31/2019 Image_Processing and Application

    53/74

    Stages in processing

    Image acquisition

    Preprocessing

    Segmentation

    Representationand

    Description

    Recognition and

    Interpretation

    A

    An application

    S

    Solution

    Knowledge Base

  • 7/31/2019 Image_Processing and Application

    54/74

    Image Formats

    Image capturing formats: the format in which imageis created

    Image storage format: the format in which imagesare stored (often transmitted)

    In bit maps, the values are binary numbers

    In color images, the values correspond to RGB components

    While storing images, additional information may be storedalong with pixels, like width, height, author, etc.

  • 7/31/2019 Image_Processing and Application

    55/74

    RIFF:Resource Interchange File Format

    GIF:Graphics Interchange Format TIFF:Tagged Image File Format

    JPEG:Joint Photographic Experts Group

    PostScript:

    PBM:Portable BitMap

    BMP:Bitamp

    Image Formats

  • 7/31/2019 Image_Processing and Application

    56/74

  • 7/31/2019 Image_Processing and Application

    57/74

    TIFFFormat

    TIFF was developed by Aldus and Microsoft.

    TIFF uses 4-byte integer file offsets to store image

    data, with the consequence that a TIFF file cannothave more than 4 Gigabytes of raster data.

    Strengths: TIFF is primarily designed for rasterdata interchange. It's main strengths are a highlyflexible and platform-independent format which issupported by numerous image processingapplications.

  • 7/31/2019 Image_Processing and Application

    58/74

  • 7/31/2019 Image_Processing and Application

    59/74

    BMP Format

    Windows bitmap files are stored in a device-independentbitmap (DIB) format that allows Windows to display thebitmap on any type of display device.

    The default filename extension of a Windows DIB fileis .BMP.

    Bitmap-File Structures: Each bitmap file contains abitmap-file header, a bitmap-information header, a color

    table, and an array of bytes that defines the bitmap bits.

    The bitmap-file header contains information about thetype, size, and layout of a device-independent bitmap file.The header is defined as a BITMAPFILEHEADERstructure.

  • 7/31/2019 Image_Processing and Application

    60/74

    Standard Color spaces:

    Grayscale

    Pseudo color (any size) RGB

    CMYK

  • 7/31/2019 Image_Processing and Application

    61/74

    The RGB Color Model

    The Primary colors:

    R (red) G (green) B (blue)

    0 --- off lowest intensity

    1 --- on highest intensity

    A linear combination of all three colors with differentintensity levels

    G

  • 7/31/2019 Image_Processing and Application

    62/74

    (0,1,1)cyan

    (0,1,0)green

    (1,1,1)white

    (1,1,0)

    yellow

    (1,0,1)magenta

    (0,0,1)blue

    (0,0,0)black

    gray axis

    B

    R(1,0,0)red

  • 7/31/2019 Image_Processing and Application

    63/74

    CMYK Color Model

    Short for Cyan-Magenta-Yellow-Black.

    A color model in which all colors aredescribed as a mixture of these four Processcolors.

    CMYK is the standard color model used inoffset printing for full-color documents

    Because such printing uses inks of these fourbasic colors, it is often called four-colorprinting.

  • 7/31/2019 Image_Processing and Application

    64/74

  • 7/31/2019 Image_Processing and Application

    65/74

    Pixels Relationships

    Neighbors of pixel pi

    1. Four Neighbors : N4(pi) = {(x, y-1), (x+1, y), (x, y+1), (x-1, y)}

    2.Diagonal Neighbors : ND(p

    i) = {(x+1, y-1), (x+1, y+1), (x-1, y+1),

    (x-1, y-1)}

    3.Eight Neighbors : N8(pi) = N4(pi) ND(pi)

    x-1, y-1 x, y-1 x+1, y-1

    x-1, y pi (x, y) x+1, y

    x-1, y+1 x, y+1 x+1, y+1

    Pixel Connectivity

  • 7/31/2019 Image_Processing and Application

    66/74

    Pixel Connectivity

    4-Connectivity : Pixels p and q are four connected if

    1. p and q bear values in V 2. p N4(q)

    D-Connectivity : Pixels p and q are diagonally connected if

    1. p and q bear values in V 2. p ND(q)

    8-Connectivity : Pixels p and q are eight connected if

    1. p and q bear values in V 2. p N8(q)

  • 7/31/2019 Image_Processing and Application

    67/74

    m-connectivity: Pixels p and q are mixed connected if

    1. p and q bear values in V

    2. p N4(q) or p ND(q) and N4(p) N4(q) =

    0 1 1

    0 1 0

    0 0 1

    0 1 1

    0 1 0

    0 0 1

    0 1 1

    0 1 0

    0 0 1

    Labeling of Connected Components

  • 7/31/2019 Image_Processing and Application

    68/74

    E E C F F F F F

    G G G G G G

    G G G

    G G

    G G

    R A

    B B B B B

    C D D D D B

    C C D D D B

    E E C C F F J F

    E E E C F F J F

    E E H I I I J J

    G = Region 1;A = Region 2R = B = Region 3;C = Region 4;D=F=Region 5;E= Region 6;J= Region 7;

    H=Region 8;I= Region 9;

    III

    III

    IV V

    VI

    VIII IX

    VII

    III

    III

    IV

    V

    VII

    VI

    4-Connected Component 8-Connected Component

    G = Region 1;A = Region 2R = B = C= H= Region 3;D=F=Region 4;E= Region 5;J= Region 6;

    I= Region 7;

    4-connected

    8-connected

  • 7/31/2019 Image_Processing and Application

    69/74

    In Summary

    Introduction

    Major Goals

    Applications

    Stages

  • 7/31/2019 Image_Processing and Application

    70/74

    EDUCATION

    Enhancing ones quality through

    Dedication,Understanding and

    Commitment with an

    Aspiration to become a member of a team

    Involved in

    Offline / Online development of

    Nation

    -D.S. Guru

    No(w)

    Questions!?

  • 7/31/2019 Image_Processing and Application

    71/74

    T H A N K Y O U

  • 7/31/2019 Image_Processing and Application

    72/74

    Dr. D.S.G

  • 7/31/2019 Image_Processing and Application

    73/74

    Review Questions1. What is an image? How do you convert an analog image into a digital

    image?

    2. Explain the process of image acquisition.

    3. How does computer represent a digital image?

    4. What is the smallest addressable element of an image?

    5. What are the objectives of image processing?

    6. Mention at least four applications of image processing.

    7. Write the different stages in image processing.

    8. What is the role of knowledge base in image processing?

    9. What are different image formats available?

    10.Explain RGB color space.

    11.Discuss on the importance of pixel connectivity.

    12.Solve the problems of chapter 2.

  • 7/31/2019 Image_Processing and Application

    74/74

    Review Assignments

    1. Write a program to read and display an imagecreated in MS Paint software (BMP format).

    2. Reduce the size of an image by the factor 2X2 bymerging four neighboring pixels and see the effect.

    3. Write a program to read images in different formats.

    4. Write program to label the connected componentsusing 4, 8 and m connectivity.