Chapter2 CV
Chapter2 CV
Chapter2 CV
123 77 89
80 255 255
Con’t…
Image-digital image
An image is a two-dimensional function f(x,y), where x
and y are the spatial (plane) coordinates, and the
amplitude of f at any pair of coordinates (x,y) is called
the intensity of the image at that level.
If x,y and the amplitude values of f are finite and discrete
quantities, we call the image a digital image.
A digital image is composed of a finite number of
elements called pixels, each of which has a particular
location and value.
Con’t…
Digital Image is an image or picture represented
digitally, specifically called pixels
Digital Image Processing is the technology of
manipulating these groups of bits( or pixels) to
enhance the quality of the image or create
different perspectives or to extract information
from the image digitally, with the help of
computer algorithms.
Relationship between a digital image and a signal
If the image is a two dimensional array then what
does it have to do with a signal?
Signal: In physical world, It can be measured
through its dimensions and time over space.
A signal is a mathematical function, and it
conveys (contain) some information.
A signal can be one dimensional or two
dimensional or higher dimensional signal.
One dimensional signal is a signal that is
measured over time. E.g. is a voice signal.
Con’t…
The two dimensional signals are those that
are measured over some other physical
quantities. E.g. is a digital image.
Relationship: Since anything that conveys
information or broadcast a message in
physical world between two observers is a
signal.
That includes speech or (human voice) or an
image as a signal.
Con’t…
Since when we speak , our voice is converted to a
sound wave/signal and transformed with respect
to the time to person we are speaking to.
Digital camera works, as while acquiring an
image from a digital camera involves transfer of a
signal from one part of the system to the other.
Basic concept of image
Dimension
Channel
Pixel
Basic concept of image
Dimension of image
Image dimensions have the length and
width of a digital image
It does not have depth.
An image is only of 2-dimensional that is
why an image is defined as a 2-
dimensional signal.
Con’t…
Dimension of image
Any object which has length and height comes
under 2-dimension signal
It has two independent variables.
F (x, y) = Object
Con’t…
Channel of image
It is color of images
A digital color image is formed by the combination of 3
color channels e.g. Red/Green/Blue
In other words, each 2D color image can be represented
as a combination of 3 separate grayscale images, each
with information about a separate color code.
Images are usually represented as Height x Width x
#Channels where #Channels is 3 for RGB images and 1
for grayscale images.
Width x Height x #Channels, but the third dimension is
the “channels.”
Con’t…
An RGB image has three channels
The red channel is an array of values that
specifies the intensity of red for each pixel in
the image.
The green and blue channels similarly specify
the intensity of green and blue, respectively,
for each pixel.
When the three channels are combined, you
get a full color image.
Basic concept of image-pexel
What is a Pixel?
Pixels are arranged in a 2-dimensional grid, represented
using squares.
Each pixel is a sample of an original image,
The intensity of each pixel is variable; in color systems,
each pixel has typically three or four components such as
red, green, and blue, or cyan, magenta, yellow, and black.
The word pixel is based on a contraction of pix ("pictures")
and el (for "element").
Con’t…
The number of pixels determines the resolution of a
computer monitor or TV screen
Generally the more pixels, the clearer and sharper
the image
The number of pixels is calculated by multiplying the
horizontal and vertical pixel measurements
The physical size of a pixel depends on the set
resolution for the display screen
what is resolution and what is the its relation
with pixel?
how we calculate total image pixel?
Assignment 1
Discuss in detail about resolutions of
physical device listed below
TV
Digital camera
Printer
Phone
Relationship of pixels
Con’t…
Connectivity and Adjacency
We want to know how the pixels are related to
each other.
Two pixels that are neighbour and have the
same gray level are adjacent.
Adjacency means next to you(neighbour pixel
and have same Gray level).
3 types of Adjacency:
a) 4-adjacency
Two pixels p & q with values from V are 4-
adjacent, if q is in the set of N4(p).
Con’t…
c) m-adjacency (mixed adjacency)
Two pixels p & q with values from V are m-
adjacent if:
i. q is in N4(p), or
ii. q is in ND(p) and the set N4(p) Ʌ N4(q) has no pixels whose
values are from V. or it means no common pixel or empty set
is a modification of 8-adjacency.
useful to eliminate and solve the ambiguities (such as
multiple path connectivity to move in the pixels ) that
often arise when 8-adjacency is used.
If multiple path(4 neighbour and 8 neighbour ) give
priority to 4 neighbour path to reduce ambiguities.
Examples: Adjacency and Path
V = {1, 2}
0 1 1 0 1 1 0 1 1
0 2 0 0 2 0 0 2 0
0 0 1 0 0 1 0 0 1
Examples: Adjacency and Path
V = {1, 2}
The 8-path from (1,3) to (3,3): The m-path from (1,3) to (3,3):
(i) (1,3), (1,2), (2,2), (3,3) (1,3), (1,2), (2,2), (3,3)
(ii)(1,3), (2,2), (3,3)
Connectivity
Connectivity used for:
Connectivity between pixels is a fundamental
concept that simplifies the definition of
numerous digital image concepts, such as region
and boundaries
To establish if two pixels are connected, it must
be determined if they are neighbours and their
Gray levels satisfy a specified criterion of
similarity(say if their Gray levels are equal).
For any pixel p in S, the set of pixels in S that
are connected to p, is a connected component of
S.
Con’t…
Let S represent a subset of pixels in an image.
Two pixels p & q are said to be connected in S, if
there exists a path between them consisting entirely
of pixels in S.
a, Continuous image projected onto a sensor array b. Result of image sampling and
quantization
Con’t…
No gray level
One of the interesting this about this binary
image that there is no gray level in it.
Only two colors that are black and white are
found in it
Format
Binary images have a format of PBM
( Portable bit map )
Con’t…
Thank you