unit vi dspa

Upload: ankita-bhoyar

Post on 02-Jun-2018

223 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/10/2019 Unit Vi Dspa

    1/87

    Unit VI

    Image Formation and Display

    By

    Ankita Tidake

  • 8/10/2019 Unit Vi Dspa

    2/87

    Contents

    Digital Image Structure

    Camera and Eye

    Television Video Signals Other Image Acquisition and Display

    Brightness and Contrast Adjustments

    Grayscale Transform Wraping

  • 8/10/2019 Unit Vi Dspa

    3/87

    Digital Image Structure

    Pixel: A picture Element

    A pixel is a single number between 0-255.

    Grayscale: to view a visual image, the value ofeach pixel is converted into a grayscale

    0 is black and 255 is white

    Intermediate values are shades of gray.

    Spatial Domain : Images have theirinformation encoded in the spatial domain,the image equivalent of the time domain.

  • 8/10/2019 Unit Vi Dspa

    4/87

    How are images represented in a

    computer?

  • 8/10/2019 Unit Vi Dspa

    5/87

    Color Images

  • 8/10/2019 Unit Vi Dspa

    6/87

    A Simple model of image formation

    The scene is illuminated by a single source.

    The scene reflects radiation towards the camera.

    The camera senses it via chemicals on film.

  • 8/10/2019 Unit Vi Dspa

    7/87

    Pinhole camera

    This is the simplest device to form an image of a 3D scene

    on a 2D surface.

    Straight rays of light pass through a pinhole and form an

    inverted image of the object on the image plane.

    fXx

    Z

    fYy

    Z

  • 8/10/2019 Unit Vi Dspa

    8/87

    Camera optics

    In practice, the aperture must be larger to admit more light.

    Lenses are placed to in the aperture to focus the bundle of rays

    from each scene point onto the corresponding point in the

    image plane

  • 8/10/2019 Unit Vi Dspa

    9/87

  • 8/10/2019 Unit Vi Dspa

    10/87

    Sample spacing : The value of each pixel in the digitalimage represents a small region in the continuousimage being digitized. For example, imagine that theVenus probe takes samples every 10 meters along the

    planet's surface as it orbits overhead. This defines asquare sample spacing

    Sampling grid: each pixel representing a 10 meter by10 meter area.

    Sampling aperture: The region of the continuousimage that contributes to the pixel value is called thesampling aperture.

  • 8/10/2019 Unit Vi Dspa

    11/87

    Color Images

  • 8/10/2019 Unit Vi Dspa

    12/87

    A Color Image

    A color image: Red, Blue, Green primary colors

    256 levels for each primary colors

    Each pixel color stored in three bytes (24 bits) of memory

    16.7 million different possible colors.

    Two types of color images: Binary Images

    Use only single bit to represent each pixel

    every pixel in a binary image must be one of two colors, usually blackor white.

    Indexed Color Images

    the data for each pixel consists of a palette index indicating which ofthe colors in the palette applies to that pixel

    dithering must be applied to represent the missing colors and thisdegrades the image.

  • 8/10/2019 Unit Vi Dspa

    13/87

    CAMERA AND EYES

  • 8/10/2019 Unit Vi Dspa

    14/87

    Human Eye

    A human eyeball is like a simple camera!

    Sclera: outer walls, hard, like a light-tight box.

    Cornea and crystalline lens (eyelens): the two

    lens system.

    Retina:at the back of eyeball, like the film.

    Iris: like diaphragms or stop in a camera.

    Pupil: camera aperture.

    Eyelid: lens cover.

  • 8/10/2019 Unit Vi Dspa

    15/87

    Sclera (The white/non-transparent tissue surrounding the cornea)

  • 8/10/2019 Unit Vi Dspa

    16/87

    Aqueous humor and Vitreous humor

    The Aqueous Humoris the clear liquid between the

    cornea and the lens. It has the benefit of being fairly

    homogenous and, as a result, the optical properties

    are easily measured. (Le Grand, 1967) The space that it inhabits is called the anterior

    chamber.

    The Vitreous Humoris the clear liquid between the

    lens and the retina.

    The space that it fills is called the vitreous body.

  • 8/10/2019 Unit Vi Dspa

    17/87

    Functions?

    Provides nourishment to the eyelens and cornea.

    Cannot use the blood vessels:

    Will block the light. Easy for surgical transplant.

    Hold the shape of the eyeball.

  • 8/10/2019 Unit Vi Dspa

    18/87

    Focusing

    The cornea and eyelens form a compound lens

    system, producing a realinvertedimage on the

    retina.

    From air to cornea(n=1.376): large bending, the mainfocusing.

    From cornea to eyelens(n=1.406), less focusing power.

    (Eyelens can develop white cloudiness when getting old:

    Cataracts.)

    The eye has a limited depth of field. We cannot see

    things close and far at the same time.

  • 8/10/2019 Unit Vi Dspa

    19/87

    Accommodation

    The eye focusing is not done by change the distance

    between the lens and retina. Rather, it is done bychanging the focal length of the eyelens! Ciliary

    muscles help to change the shape of the lens:accommodation.

    Muscles relax, long focal length, see objects far way;

    Muscles tense, short focal length see objects close.

    Normal eyes can see 25cm to infinity, however, if thecornea bulges too much or too little. The accommodation

    does not help. (myopia or hyperopia)

  • 8/10/2019 Unit Vi Dspa

    20/87

    The Iris

    When it is full open, it is about f/2 and f/3.

    This happens at low light level.

    When the iris has a small opening, it can cut

    down the light intensity by a factor of 20.

    However, the main function of stopping down

    the iris is to increase the depth of field.

  • 8/10/2019 Unit Vi Dspa

    21/87

    Retina Structure

    Light sensitive layeris made of photo-receptors: rods (120 millions) and cones (7

    millions) which absorb the light. Plexiform Layer: nerve cells that process the

    signals generated by rods and cones andrelay them to the optical nerve.

    Choroid:carries mayor blood vessels tonourish the retina and absorb the light sothat it will not be reflected back (dark pupil!)

  • 8/10/2019 Unit Vi Dspa

    22/87

  • 8/10/2019 Unit Vi Dspa

    23/87

  • 8/10/2019 Unit Vi Dspa

    24/87

    Rods and Cones

    Covers an area of 5 cm2. A baseball a mile

    away gives an image covering one cone.

    Cones: for more precise vision, need stronglight. help to see colors. Mostly distributed

    in the center of the retina (fovea).

    Rods: for peripheral and night vision.Sensitive to light. Mostly distributed away

    from fovea.

  • 8/10/2019 Unit Vi Dspa

    25/87

  • 8/10/2019 Unit Vi Dspa

    26/87

    Sensitivity

    Cones: slow, fine grain, like color film.

    Need high level of light (photopic condition, day)

    High density, high resolution.

    Rods: fast, coarse grain, black & white film Low level of light (scotopic condition, at night)

    No color is obvious.

    Adaptation: Changing of retina sensitivity.

  • 8/10/2019 Unit Vi Dspa

    27/87

    Singal Processing

    Trace the signal through the retina:

    The retina is a seven-layered structureinvolved in signal transduction.

    Light enters from the GCL side first, and mustpenetrate all cell types before reaching the rodsand cones.

    The outer segments of the rods and cones

    transduce the light and send the signal throughthe cell bodies of the ONL and out to their axons.

  • 8/10/2019 Unit Vi Dspa

    28/87

    In the OPL photoreceptor axons contact the

    dendrites of bipolar cells and horizontal

    cells. Horizontal cells are interneuronswhich aid in signal processing

    The bipolar cells in the INL process input

    from photoreceptors and horizontal cells,and transmit the signal to their axons.

  • 8/10/2019 Unit Vi Dspa

    29/87

    In the IPL, bipolar axons contact ganglioncell dendrites and amacrine cells, another

    class of interneurons. The ganglion cells of the GCL send their

    axons through the OFL to the optic disk tomake up the optic nerve. They travel all the

    way to the lateral geniculate nucleus.

  • 8/10/2019 Unit Vi Dspa

    30/87

    Fovea

    The foveadefines the center of the retina, and

    is the region of highest visual acuity. The fovea

    is directed towards whatever object you wish

    to study most closely - this sentence, at themoment. In the fovea there are almost

    exclusively cones, and they are at their highest

    density.

  • 8/10/2019 Unit Vi Dspa

    31/87

    Processing Time

    Latency:it takes a bit time for the cells in

    retina to respond to a flash of light.

    Persistence of response: the response does

    not stop at the instant the flash stops.

    1/25 second at low intensity, 1/50 second at high

    intensity.

    The persistence allows as to see moving thingsclearly.

  • 8/10/2019 Unit Vi Dspa

    32/87

    Cameras

    Charge Coupled Devices (CCDs)

    CCDs work by converting light into a pattern of

    electronic charge in a silicon chip.

    This pattern of charge is converted into a videowaveform, digitized and stored as an image file on

    a computer.

  • 8/10/2019 Unit Vi Dspa

    33/87

    CCD Analogy

    A n number of buckets (Pixels) are distributed across a field (FocalPlane of a telescope) in a square array.

    The buckets are placed on top of a series of parallel conveyor beltsand collect rain fall (Photons)across the field.

    The conveyor belts are initially stationary, while the rain slowly fillsthen buckets (During the course of the exposure).

    Once the rain stops (The camera shutter closes) the conveyorbelts start turning and transfer the buckets of rain , one by one , toa measuring cylinder (Electronic Amplifier) at the corner of thefield (at the corner of the CCD)

  • 8/10/2019 Unit Vi Dspa

    34/87

    RAIN (PHOTONS)

    BUCKETS (PIXELS)

    VERTICAL

    CONVEYOR

    BELTS

    (CCD COLUMNS)

    HORIZONTAL

    CONVEYOR BELT

    (SERIAL REGISTER)

    MEASURING

    CYLINDER

    (OUTPUT

    AMPLIFIER)

    CCD Analogy

  • 8/10/2019 Unit Vi Dspa

    35/87

    Exposure finished, buckets now contain samples of rain.

  • 8/10/2019 Unit Vi Dspa

    36/87

    Conveyor belt starts turning and transfers buckets. Rain collected on the vertical conveyoris tipped into buckets on the horizontal conveyor.

  • 8/10/2019 Unit Vi Dspa

    37/87

    Vertical conveyor stops. Horizontal conveyor starts up and tips each bucket in turn intothe measuring cylinder .

  • 8/10/2019 Unit Vi Dspa

    38/87

    `

    After each bucket has been measured, the measuring cylinderis emptied , ready for the next bucket load.

  • 8/10/2019 Unit Vi Dspa

    39/87

  • 8/10/2019 Unit Vi Dspa

    40/87

  • 8/10/2019 Unit Vi Dspa

    41/87

  • 8/10/2019 Unit Vi Dspa

    42/87

  • 8/10/2019 Unit Vi Dspa

    43/87

  • 8/10/2019 Unit Vi Dspa

    44/87

  • 8/10/2019 Unit Vi Dspa

    45/87

    A new set of empty buckets is set up on the horizontal conveyor and the processis repeated.

  • 8/10/2019 Unit Vi Dspa

    46/87

  • 8/10/2019 Unit Vi Dspa

    47/87

  • 8/10/2019 Unit Vi Dspa

    48/87

  • 8/10/2019 Unit Vi Dspa

    49/87

  • 8/10/2019 Unit Vi Dspa

    50/87

  • 8/10/2019 Unit Vi Dspa

    51/87

  • 8/10/2019 Unit Vi Dspa

    52/87

  • 8/10/2019 Unit Vi Dspa

    53/87

  • 8/10/2019 Unit Vi Dspa

    54/87

  • 8/10/2019 Unit Vi Dspa

    55/87

  • 8/10/2019 Unit Vi Dspa

    56/87

  • 8/10/2019 Unit Vi Dspa

    57/87

  • 8/10/2019 Unit Vi Dspa

    58/87

  • 8/10/2019 Unit Vi Dspa

    59/87

  • 8/10/2019 Unit Vi Dspa

    60/87

  • 8/10/2019 Unit Vi Dspa

    61/87

    Charge Collection in a CCD.

  • 8/10/2019 Unit Vi Dspa

    62/87

    pix

    el

    boundary

    Charge packetp-type silicon

    n-type silicon

    SiO2 Insulating layer

    Electrode Structure

    pi

    xel

    bo

    undary

    inc

    oming

    photons

    Photons entering the CCD create electron-hole pairs. The electrons are then attracted towards

    the most positive potential in the device where they create charge packets. Each packet

    corresponds to one pixel

  • 8/10/2019 Unit Vi Dspa

    63/87

    PotentialEnergy

    Conventional Clocking 1

    Surface electrodesCharge packet (photo-electrons)

    P-type siliconN-type silicon

    Insulating layer

    Charge packets occupy potential minimums

  • 8/10/2019 Unit Vi Dspa

    64/87

    PotentialEnergy

    Conventional Clocking 2

  • 8/10/2019 Unit Vi Dspa

    65/87

    PotentialEnergy

    Conventional Clocking 3

  • 8/10/2019 Unit Vi Dspa

    66/87

    PotentialEnergy

    Conventional Clocking 4

  • 8/10/2019 Unit Vi Dspa

    67/87

    PotentialEnergy

    Conventional Clocking 5

  • 8/10/2019 Unit Vi Dspa

    68/87

    PotentialEnergy

    Conventional Clocking 6

  • 8/10/2019 Unit Vi Dspa

    69/87

    PotentialEnergy

    Conventional Clocking 7

  • 8/10/2019 Unit Vi Dspa

    70/87

    PotentialEnergy

    Conventional Clocking 8

  • 8/10/2019 Unit Vi Dspa

    71/87

    PotentialEnergy

    Conventional Clocking 9

    Charge Transfer in a CCD 1.

  • 8/10/2019 Unit Vi Dspa

    72/87

    In the following few slides, the implementation of the conveyor belts as actual electronic

    structures is explained.

    The charge is moved along these conveyor belts by modulating the voltages on the electrodespositioned on the surface of the CCD. In the following illustrations, electrodes colour coded red

    are held at a positive potential, those coloured black are held at a negative potential.

    1

    2

    3

    Charge Transfer in a CCD 2.

  • 8/10/2019 Unit Vi Dspa

    73/87

    1

    2

    3

    +5V

    0V

    -5V

    +5V

    0V

    -5V

    +5V

    0V

    -5V

    Time-slice shown in diagram

    1

    2

    3

    Charge Transfer in a CCD 3.

  • 8/10/2019 Unit Vi Dspa

    74/87

    1

    2

    3

    +5V

    0V

    -5V

    +5V

    0V

    -5V

    +5V

    0V

    -5V

    1

    2

    3

    Charge Transfer in a CCD 4.

  • 8/10/2019 Unit Vi Dspa

    75/87

    1

    2

    3

    +5V

    0V

    -5V

    +5V

    0V

    -5V

    +5V

    0V

    -5V

    1

    2

    3

    Charge Transfer in a CCD 5.

  • 8/10/2019 Unit Vi Dspa

    76/87

    1

    2

    3

    +5V

    0V

    -5V

    +5V

    0V

    -5V

    +5V

    0V

    -5V

    1

    2

    3

    Charge Transfer in a CCD 6.

  • 8/10/2019 Unit Vi Dspa

    77/87

    1

    2

    3

    +5V

    0V

    -5V

    +5V

    0V

    -5V

    +5V

    0V

    -5V

    1

    2

    3

    Charge Transfer in a CCD 7.

  • 8/10/2019 Unit Vi Dspa

    78/87

    1

    2

    3

    +5V

    0V

    -5V

    +5V

    0V

    -5V

    +5V

    0V

    -5V

    1

    2

    3

    Charge packet from subsequent pixel enters

    from left as first pixel exits to the right.

    Charge Transfer in a CCD 8.

  • 8/10/2019 Unit Vi Dspa

    79/87

    1

    2

    3

    +5V

    0V

    -5V

    +5V

    0V

    -5V

    +5V

    0V

    -5V

    1

    2

    3

    d

  • 8/10/2019 Unit Vi Dspa

    80/87

    Camera and Eye

    You can watch the Eyes vs Camera animation

    by following the link

    https://www.youtube.com/watch?v=CL61MbyYsd4

  • 8/10/2019 Unit Vi Dspa

    81/87

    TELEVISION VIDEO SIGNALS

  • 8/10/2019 Unit Vi Dspa

    82/87

    The horizontal and vertical synchronization (sync)pulses mixed with the actual picture informationis called composite video.

    Frame: Each second of standard video contains30 complete images called Frames.

    Frame contains 525 lines:

    480-486 lines contains video information

    39-45 lines are reserved To keep television circuits synchronized with the video

    signal.

    F bb

  • 8/10/2019 Unit Vi Dspa

    83/87

    Frame grabber

    Usually, a CCD camera plugs into a computer board (framegrabber).

    The frame grabber digitizes the signal and stores it in its

    memory (frame buffer).

  • 8/10/2019 Unit Vi Dspa

    84/87

    Image digitization

    Samplingmeans measuring the value of an image at a finite numberof points.

    Quantizationis the representation of the measured value at thesampled point by an integer.

    O h I A i i i d Di l

  • 8/10/2019 Unit Vi Dspa

    85/87

    Other Image Acquisition and Display

    Images can be acquired :

    An entire frame at a time

    By line scanning e.g. fax m/c, airport x-ray baggage

    scanner Point by point e.g. microwave image of Venus

    Printed images are divided into two categories:

    Grayscale Halftone

  • 8/10/2019 Unit Vi Dspa

    86/87

    a. Brightness too High b. Brightness too low

    c: Contrast too high d: Contrast too low

    G S l T f ti

  • 8/10/2019 Unit Vi Dspa

    87/87

    Gray Scale Transformation

    a. Original IR Image b. With gray-scale transform