SlideShare a Scribd company logo
1 of 77
Download to read offline
Image and related concepts

        Aditya Tatu
What is an Image



      Image is a representation of some property of a physical entity.
      The property can be represented as a function f (x, y , z) of 3
      variables.
      A 2D image is obtained by:
          perspective projection through a pin-hole camera
          Assuming that the objects are very far away from the imaging
          system (for eg: z → ∞), thereby giving f (x, y ) = f (x, y , z).
      When the independent variables x, y and the function value f
      are discretized, we get a Digital Image.




                   IT472 - DIP: Lecture 2   2/23
What is an Image



      Image is a representation of some property of a physical entity.
      The property can be represented as a function f (x, y , z) of 3
      variables.
      A 2D image is obtained by:
          perspective projection through a pin-hole camera
          Assuming that the objects are very far away from the imaging
          system (for eg: z → ∞), thereby giving f (x, y ) = f (x, y , z).
      When the independent variables x, y and the function value f
      are discretized, we get a Digital Image.




                   IT472 - DIP: Lecture 2   2/23
What is an Image



      Image is a representation of some property of a physical entity.
      The property can be represented as a function f (x, y , z) of 3
      variables.
      A 2D image is obtained by:
          perspective projection through a pin-hole camera
          Assuming that the objects are very far away from the imaging
          system (for eg: z → ∞), thereby giving f (x, y ) = f (x, y , z).
      When the independent variables x, y and the function value f
      are discretized, we get a Digital Image.




                   IT472 - DIP: Lecture 2   2/23
What is an Image



      Image is a representation of some property of a physical entity.
      The property can be represented as a function f (x, y , z) of 3
      variables.
      A 2D image is obtained by:
          perspective projection through a pin-hole camera
          Assuming that the objects are very far away from the imaging
          system (for eg: z → ∞), thereby giving f (x, y ) = f (x, y , z).
      When the independent variables x, y and the function value f
      are discretized, we get a Digital Image.




                   IT472 - DIP: Lecture 2   2/23
What is an Image



      Image is a representation of some property of a physical entity.
      The property can be represented as a function f (x, y , z) of 3
      variables.
      A 2D image is obtained by:
          perspective projection through a pin-hole camera
          Assuming that the objects are very far away from the imaging
          system (for eg: z → ∞), thereby giving f (x, y ) = f (x, y , z).
      When the independent variables x, y and the function value f
      are discretized, we get a Digital Image.




                   IT472 - DIP: Lecture 2   2/23
What is an Image



      Image is a representation of some property of a physical entity.
      The property can be represented as a function f (x, y , z) of 3
      variables.
      A 2D image is obtained by:
          perspective projection through a pin-hole camera
          Assuming that the objects are very far away from the imaging
          system (for eg: z → ∞), thereby giving f (x, y ) = f (x, y , z).
      When the independent variables x, y and the function value f
      are discretized, we get a Digital Image.




                   IT472 - DIP: Lecture 2   2/23
What is an Image



      Image is a representation of some property of a physical entity.
      The property can be represented as a function f (x, y , z) of 3
      variables.
      A 2D image is obtained by:
          perspective projection through a pin-hole camera
          Assuming that the objects are very far away from the imaging
          system (for eg: z → ∞), thereby giving f (x, y ) = f (x, y , z).
      When the independent variables x, y and the function value f
      are discretized, we get a Digital Image.




                   IT472 - DIP: Lecture 2   2/23
Image formation model




               IT472 - DIP: Lecture 2   3/23
Let i(x, y ) be the illumination at a point (x, y ) and r (x, y ) be
    the reflectance at the same point, then the image f (x, y ) at
    the point is given by f (x, y ) = i(x, y ) r (x, y ).
    From Physics, we get 0 < f (x, y ), i(x, y ) < ∞ and
    0 < r (x, y ) < 1.
    The image capturing device is directly related to the
    illumination source used, for eg: Infrared source - Infrared
    detector, X-ray source - X-ray film, Visible light - CCD array
    detectors.
Summary
At the end, we get a mathematical object f (x, y ) to work with,
that represents an aspect of the real object that we are interested
in.



                  IT472 - DIP: Lecture 2   4/23
Let i(x, y ) be the illumination at a point (x, y ) and r (x, y ) be
    the reflectance at the same point, then the image f (x, y ) at
    the point is given by f (x, y ) = i(x, y ) r (x, y ).
    From Physics, we get 0 < f (x, y ), i(x, y ) < ∞ and
    0 < r (x, y ) < 1.
    The image capturing device is directly related to the
    illumination source used, for eg: Infrared source - Infrared
    detector, X-ray source - X-ray film, Visible light - CCD array
    detectors.
Summary
At the end, we get a mathematical object f (x, y ) to work with,
that represents an aspect of the real object that we are interested
in.



                  IT472 - DIP: Lecture 2   4/23
Let i(x, y ) be the illumination at a point (x, y ) and r (x, y ) be
    the reflectance at the same point, then the image f (x, y ) at
    the point is given by f (x, y ) = i(x, y ) r (x, y ).
    From Physics, we get 0 < f (x, y ), i(x, y ) < ∞ and
    0 < r (x, y ) < 1.
    The image capturing device is directly related to the
    illumination source used, for eg: Infrared source - Infrared
    detector, X-ray source - X-ray film, Visible light - CCD array
    detectors.
Summary
At the end, we get a mathematical object f (x, y ) to work with,
that represents an aspect of the real object that we are interested
in.



                  IT472 - DIP: Lecture 2   4/23
Let i(x, y ) be the illumination at a point (x, y ) and r (x, y ) be
    the reflectance at the same point, then the image f (x, y ) at
    the point is given by f (x, y ) = i(x, y ) r (x, y ).
    From Physics, we get 0 < f (x, y ), i(x, y ) < ∞ and
    0 < r (x, y ) < 1.
    The image capturing device is directly related to the
    illumination source used, for eg: Infrared source - Infrared
    detector, X-ray source - X-ray film, Visible light - CCD array
    detectors.
Summary
At the end, we get a mathematical object f (x, y ) to work with,
that represents an aspect of the real object that we are interested
in.



                  IT472 - DIP: Lecture 2   4/23
What sort of objects are images?


      Since we want to process, operate on and play with images,
      we should first characterize what sort of objects images are
      and what should be possible to do with images?
      Should it be possible to apply filters on images (say, using
      convolution)?
      If yes, then what operations should be allowed on images?
      Addition and Scalar multiplication → Vector Spaces!
      What sort of vector space? - Differentiable functions?
      Continuous functions? Finite bandwidth?
      NO!




                   IT472 - DIP: Lecture 2   5/23
What sort of objects are images?


      Since we want to process, operate on and play with images,
      we should first characterize what sort of objects images are
      and what should be possible to do with images?
      Should it be possible to apply filters on images (say, using
      convolution)?
      If yes, then what operations should be allowed on images?
      Addition and Scalar multiplication → Vector Spaces!
      What sort of vector space? - Differentiable functions?
      Continuous functions? Finite bandwidth?
      NO!




                   IT472 - DIP: Lecture 2   5/23
What sort of objects are images?


      Since we want to process, operate on and play with images,
      we should first characterize what sort of objects images are
      and what should be possible to do with images?
      Should it be possible to apply filters on images (say, using
      convolution)?
      If yes, then what operations should be allowed on images?
      Addition and Scalar multiplication → Vector Spaces!
      What sort of vector space? - Differentiable functions?
      Continuous functions? Finite bandwidth?
      NO!




                   IT472 - DIP: Lecture 2   5/23
What sort of objects are images?


      Since we want to process, operate on and play with images,
      we should first characterize what sort of objects images are
      and what should be possible to do with images?
      Should it be possible to apply filters on images (say, using
      convolution)?
      If yes, then what operations should be allowed on images?
      Addition and Scalar multiplication → Vector Spaces!
      What sort of vector space? - Differentiable functions?
      Continuous functions? Finite bandwidth?
      NO!




                   IT472 - DIP: Lecture 2   5/23
What sort of objects are images?


      Since we want to process, operate on and play with images,
      we should first characterize what sort of objects images are
      and what should be possible to do with images?
      Should it be possible to apply filters on images (say, using
      convolution)?
      If yes, then what operations should be allowed on images?
      Addition and Scalar multiplication → Vector Spaces!
      What sort of vector space? - Differentiable functions?
      Continuous functions? Finite bandwidth?
      NO!




                   IT472 - DIP: Lecture 2   5/23
What sort of objects are images?


      Since we want to process, operate on and play with images,
      we should first characterize what sort of objects images are
      and what should be possible to do with images?
      Should it be possible to apply filters on images (say, using
      convolution)?
      If yes, then what operations should be allowed on images?
      Addition and Scalar multiplication → Vector Spaces!
      What sort of vector space? - Differentiable functions?
      Continuous functions? Finite bandwidth?
      NO!




                   IT472 - DIP: Lecture 2   5/23
Vector space of images



       Images are defined on a set with finite area, i.e., images are
       functions with compact support.
       The image values must be finite at all points,
       → the energy: ||f || =                    2 (x, y )
                                    supp(f ) f               dx dy has to be finite.

   Vector space of images
   Images are part of a vector space of 2-d functions with compact
   support Ω which are square integrable. This vector space is
   denoted as L2 (Ω).




                    IT472 - DIP: Lecture 2   6/23
Vector space of images



       Images are defined on a set with finite area, i.e., images are
       functions with compact support.
       The image values must be finite at all points,
       → the energy: ||f || =                    2 (x, y )
                                    supp(f ) f               dx dy has to be finite.

   Vector space of images
   Images are part of a vector space of 2-d functions with compact
   support Ω which are square integrable. This vector space is
   denoted as L2 (Ω).




                    IT472 - DIP: Lecture 2   6/23
Vector space of images



       Images are defined on a set with finite area, i.e., images are
       functions with compact support.
       The image values must be finite at all points,
       → the energy: ||f || =                    2 (x, y )
                                    supp(f ) f               dx dy has to be finite.

   Vector space of images
   Images are part of a vector space of 2-d functions with compact
   support Ω which are square integrable. This vector space is
   denoted as L2 (Ω).




                    IT472 - DIP: Lecture 2   6/23
Vector space of images



       Images are defined on a set with finite area, i.e., images are
       functions with compact support.
       The image values must be finite at all points,
       → the energy: ||f || =                    2 (x, y )
                                    supp(f ) f               dx dy has to be finite.

   Vector space of images
   Images are part of a vector space of 2-d functions with compact
   support Ω which are square integrable. This vector space is
   denoted as L2 (Ω).




                    IT472 - DIP: Lecture 2   6/23
Image sensors




                                                     Figure: Line of sensors




       Figure: Single Sensor




                                                     Figure: Circular Sensor

      Figure: Array of sensors
                     IT472 - DIP: Lecture 2   7/23
Sampling & Quantization



      Although theoretically 0 < f (x, y ) < ∞, in practice
      Lmin ≤ f (x, y ) ≤ Lmax , where Lmin > 0 and Lmax < ∞ depend on
      sensor ratings.
      For gray scale digital images, typically we use Lmin = 0 representing
      black and Lmax = L − 1 representing white.
      Sampled and quantized image gives a digital image which can be
      represented as a m × n matrix, say A, of which each element is
      called a pixel (or picture element).




                     IT472 - DIP: Lecture 2   8/23
Sampling & Quantization



      Although theoretically 0 < f (x, y ) < ∞, in practice
      Lmin ≤ f (x, y ) ≤ Lmax , where Lmin > 0 and Lmax < ∞ depend on
      sensor ratings.
      For gray scale digital images, typically we use Lmin = 0 representing
      black and Lmax = L − 1 representing white.
      Sampled and quantized image gives a digital image which can be
      represented as a m × n matrix, say A, of which each element is
      called a pixel (or picture element).




                     IT472 - DIP: Lecture 2   8/23
Sampling & Quantization



      Although theoretically 0 < f (x, y ) < ∞, in practice
      Lmin ≤ f (x, y ) ≤ Lmax , where Lmin > 0 and Lmax < ∞ depend on
      sensor ratings.
      For gray scale digital images, typically we use Lmin = 0 representing
      black and Lmax = L − 1 representing white.
      Sampled and quantized image gives a digital image which can be
      represented as a m × n matrix, say A, of which each element is
      called a pixel (or picture element).




                     IT472 - DIP: Lecture 2   8/23
Sampling & Quantization
      Although theoretically 0 < f (x, y ) < ∞, in practice
      Lmin ≤ f (x, y ) ≤ Lmax , where Lmin > 0 and Lmax < ∞ depend on
      sensor ratings.
      For gray scale digital images, typically we use Lmin = 0 representing
      black and Lmax = L − 1 representing white.
      Sampled and quantized image gives a digital image which can be
      represented as a m × n matrix, say A, of which each element is
      called a pixel (or picture element).




                     IT472 - DIP: Lecture 2   8/23
L is typically a power of 2, L = 2k . L levels require k bits of
memory.
For a general image of size 1024 × 1024 pixels with L = 256,
we will need approximately 8MB memory.
Compare this with the file size of one image in your computer.




              IT472 - DIP: Lecture 2   9/23
L is typically a power of 2, L = 2k . L levels require k bits of
memory.
For a general image of size 1024 × 1024 pixels with L = 256,
we will need approximately 8MB memory.
Compare this with the file size of one image in your computer.




              IT472 - DIP: Lecture 2   9/23
L is typically a power of 2, L = 2k . L levels require k bits of
memory.
For a general image of size 1024 × 1024 pixels with L = 256,
we will need approximately 8MB memory.
Compare this with the file size of one image in your computer.




              IT472 - DIP: Lecture 2   9/23
Spatial Resolution


       Resolution of an imaging system determines the smallest
       discernible detail possible and technically is defined as the
       largest number of discernible lines per unit distance.
       (1) Is number of pixels enough to define resolution?
       Not Always!- Also depends on (2) pixel size. Commonly found
       sensors have individual pixel length/width 2 − 8 microns.
       Are smaller sensors always better?
       NO! - Since an image is produced based on number of
       photons (a discrete random variable - Poisson pdf) incident
       on each sensor, bigger sensors are found to be more reliable or
       have higher SNR ratio compared to smaller sensors.



                    IT472 - DIP: Lecture 2   10/23
Spatial Resolution


       Resolution of an imaging system determines the smallest
       discernible detail possible and technically is defined as the
       largest number of discernible lines per unit distance.
       (1) Is number of pixels enough to define resolution?
       Not Always!- Also depends on (2) pixel size. Commonly found
       sensors have individual pixel length/width 2 − 8 microns.
       Are smaller sensors always better?
       NO! - Since an image is produced based on number of
       photons (a discrete random variable - Poisson pdf) incident
       on each sensor, bigger sensors are found to be more reliable or
       have higher SNR ratio compared to smaller sensors.



                    IT472 - DIP: Lecture 2   10/23
Spatial Resolution


       Resolution of an imaging system determines the smallest
       discernible detail possible and technically is defined as the
       largest number of discernible lines per unit distance.
       (1) Is number of pixels enough to define resolution?
       Not Always!- Also depends on (2) pixel size. Commonly found
       sensors have individual pixel length/width 2 − 8 microns.
       Are smaller sensors always better?
       NO! - Since an image is produced based on number of
       photons (a discrete random variable - Poisson pdf) incident
       on each sensor, bigger sensors are found to be more reliable or
       have higher SNR ratio compared to smaller sensors.



                    IT472 - DIP: Lecture 2   10/23
Spatial Resolution


       Resolution of an imaging system determines the smallest
       discernible detail possible and technically is defined as the
       largest number of discernible lines per unit distance.
       (1) Is number of pixels enough to define resolution?
       Not Always!- Also depends on (2) pixel size. Commonly found
       sensors have individual pixel length/width 2 − 8 microns.
       Are smaller sensors always better?
       NO! - Since an image is produced based on number of
       photons (a discrete random variable - Poisson pdf) incident
       on each sensor, bigger sensors are found to be more reliable or
       have higher SNR ratio compared to smaller sensors.



                    IT472 - DIP: Lecture 2   10/23
Spatial Resolution


       Resolution of an imaging system determines the smallest
       discernible detail possible and technically is defined as the
       largest number of discernible lines per unit distance.
       (1) Is number of pixels enough to define resolution?
       Not Always!- Also depends on (2) pixel size. Commonly found
       sensors have individual pixel length/width 2 − 8 microns.
       Are smaller sensors always better?
       NO! - Since an image is produced based on number of
       photons (a discrete random variable - Poisson pdf) incident
       on each sensor, bigger sensors are found to be more reliable or
       have higher SNR ratio compared to smaller sensors.



                    IT472 - DIP: Lecture 2   10/23
For color images, sensors are arranged in a (3) mosaic pattern




It also depends on the (4) spatial resolution of the lens.
To summarize, a camera with 10 megapixels is said to have a
better resolution then a 3 megapixel camera assuming similar
lenses and sensors and that images are taken at the same
distance.




              IT472 - DIP: Lecture 2   11/23
For color images, sensors are arranged in a (3) mosaic pattern




It also depends on the (4) spatial resolution of the lens.
To summarize, a camera with 10 megapixels is said to have a
better resolution then a 3 megapixel camera assuming similar
lenses and sensors and that images are taken at the same
distance.




              IT472 - DIP: Lecture 2   11/23
For color images, sensors are arranged in a (3) mosaic pattern




It also depends on the (4) spatial resolution of the lens.
To summarize, a camera with 10 megapixels is said to have a
better resolution then a 3 megapixel camera assuming similar
lenses and sensors and that images are taken at the same
distance.




              IT472 - DIP: Lecture 2   11/23
Imaging system



      We can assume that the imaging system is linear and position
      invariant/shift invariant.
      A meaningful conclusion about the spatial resolution can be
      obtained by looking at the impulse response of the imaging
      system.
      What is an impulse/impulse response for a camera?




                   IT472 - DIP: Lecture 2   12/23
Imaging system



      We can assume that the imaging system is linear and position
      invariant/shift invariant.
      A meaningful conclusion about the spatial resolution can be
      obtained by looking at the impulse response of the imaging
      system.
      What is an impulse/impulse response for a camera?




                   IT472 - DIP: Lecture 2   12/23
Imaging system



      We can assume that the imaging system is linear and position
      invariant/shift invariant.
      A meaningful conclusion about the spatial resolution can be
      obtained by looking at the impulse response of the imaging
      system.
      What is an impulse/impulse response for a camera?




                   IT472 - DIP: Lecture 2   12/23
Imaging system


      We can assume that the imaging system is linear and position
      invariant/shift invariant.
      A meaningful conclusion about the spatial resolution can be
      obtained by looking at the impulse response of the imaging
      system.
      What is an impulse/impulse response for a camera?




                   IT472 - DIP: Lecture 2   12/23
Spatial resolution




       Print technology: dots per inch (dpi), Computer screens:
       pixels per inch (ppi)
       Difference: Collection of dots forms one pixel.




                     IT472 - DIP: Lecture 2   13/23
Spatial resolution




       Print technology: dots per inch (dpi), Computer screens:
       pixels per inch (ppi)
       Difference: Collection of dots forms one pixel.




                     IT472 - DIP: Lecture 2   13/23
Spatial resolution

       Print technology: dots per inch (dpi), Computer screens:
       pixels per inch (ppi)
       Difference: Collection of dots forms one pixel.




                     IT472 - DIP: Lecture 2   13/23
Intensity resolution




       Smallest discernible change in the intensity level.




                     IT472 - DIP: Lecture 2   14/23
Intensity resolution

       Smallest discernible change in the intensity level.




                     IT472 - DIP: Lecture 2   14/23
Intensity resolution




                  IT472 - DIP: Lecture 2   15/23
Topological concepts




      Neighbors of a pixel p = (x, y )
          4-Neighborhood
          N4 (p) = {(x + 1, y ), (x − 1, y ), (x, y + 1), (x, y − 1)}.
          Diagonal Neighborhood
          ND (p) = {(x+1, y +1), (x−1, y +1), (x+1, y −1), (x−1, y −1)}.
          8-Neighborhood N8 (p) = N4 (p) ∪ ND (p).




                   IT472 - DIP: Lecture 2   16/23
Topological concepts




      Neighbors of a pixel p = (x, y )
          4-Neighborhood
          N4 (p) = {(x + 1, y ), (x − 1, y ), (x, y + 1), (x, y − 1)}.
          Diagonal Neighborhood
          ND (p) = {(x+1, y +1), (x−1, y +1), (x+1, y −1), (x−1, y −1)}.
          8-Neighborhood N8 (p) = N4 (p) ∪ ND (p).




                   IT472 - DIP: Lecture 2   16/23
Topological concepts




      Neighbors of a pixel p = (x, y )
          4-Neighborhood
          N4 (p) = {(x + 1, y ), (x − 1, y ), (x, y + 1), (x, y − 1)}.
          Diagonal Neighborhood
          ND (p) = {(x+1, y +1), (x−1, y +1), (x+1, y −1), (x−1, y −1)}.
          8-Neighborhood N8 (p) = N4 (p) ∪ ND (p).




                   IT472 - DIP: Lecture 2   16/23
Topological concepts




      Neighbors of a pixel p = (x, y )
          4-Neighborhood
          N4 (p) = {(x + 1, y ), (x − 1, y ), (x, y + 1), (x, y − 1)}.
          Diagonal Neighborhood
          ND (p) = {(x+1, y +1), (x−1, y +1), (x+1, y −1), (x−1, y −1)}.
          8-Neighborhood N8 (p) = N4 (p) ∪ ND (p).




                   IT472 - DIP: Lecture 2   16/23
Topological concepts


      Adjacency: Used to define relation between pixels of an
      image.
          Let V be the set of gray levels used to define the relation.
          Example: V = {0, . . . , 10}, V = {0}.
          4-adjacency: Two pixels p and q with values in V are
          4-adjacent if q ∈ N4 (p).
          8-adjacency: Two pixels p and q with values in V are
          8-adjacent if q ∈ N8 (p).
          m-adjacency: Two pixels p and q with values in V are
          m-adjacent if:
               q ∈ N4 (p), or
               q ∈ ND (p) and the set N4 (p) ∪ N4 (q) has no pixels whose
               values are in V .




                   IT472 - DIP: Lecture 2   17/23
Topological concepts


      Adjacency: Used to define relation between pixels of an
      image.
          Let V be the set of gray levels used to define the relation.
          Example: V = {0, . . . , 10}, V = {0}.
          4-adjacency: Two pixels p and q with values in V are
          4-adjacent if q ∈ N4 (p).
          8-adjacency: Two pixels p and q with values in V are
          8-adjacent if q ∈ N8 (p).
          m-adjacency: Two pixels p and q with values in V are
          m-adjacent if:
               q ∈ N4 (p), or
               q ∈ ND (p) and the set N4 (p) ∪ N4 (q) has no pixels whose
               values are in V .




                   IT472 - DIP: Lecture 2   17/23
Topological concepts


      Adjacency: Used to define relation between pixels of an
      image.
          Let V be the set of gray levels used to define the relation.
          Example: V = {0, . . . , 10}, V = {0}.
          4-adjacency: Two pixels p and q with values in V are
          4-adjacent if q ∈ N4 (p).
          8-adjacency: Two pixels p and q with values in V are
          8-adjacent if q ∈ N8 (p).
          m-adjacency: Two pixels p and q with values in V are
          m-adjacent if:
               q ∈ N4 (p), or
               q ∈ ND (p) and the set N4 (p) ∪ N4 (q) has no pixels whose
               values are in V .




                   IT472 - DIP: Lecture 2   17/23
Topological concepts


      Adjacency: Used to define relation between pixels of an
      image.
          Let V be the set of gray levels used to define the relation.
          Example: V = {0, . . . , 10}, V = {0}.
          4-adjacency: Two pixels p and q with values in V are
          4-adjacent if q ∈ N4 (p).
          8-adjacency: Two pixels p and q with values in V are
          8-adjacent if q ∈ N8 (p).
          m-adjacency: Two pixels p and q with values in V are
          m-adjacent if:
               q ∈ N4 (p), or
               q ∈ ND (p) and the set N4 (p) ∪ N4 (q) has no pixels whose
               values are in V .




                   IT472 - DIP: Lecture 2   17/23
Topological concepts


      Adjacency: Used to define relation between pixels of an
      image.
          Let V be the set of gray levels used to define the relation.
          Example: V = {0, . . . , 10}, V = {0}.
          4-adjacency: Two pixels p and q with values in V are
          4-adjacent if q ∈ N4 (p).
          8-adjacency: Two pixels p and q with values in V are
          8-adjacent if q ∈ N8 (p).
          m-adjacency: Two pixels p and q with values in V are
          m-adjacent if:
               q ∈ N4 (p), or
               q ∈ ND (p) and the set N4 (p) ∪ N4 (q) has no pixels whose
               values are in V .




                   IT472 - DIP: Lecture 2   17/23
Topological concepts


      Adjacency: Used to define relation between pixels of an
      image.
          Let V be the set of gray levels used to define the relation.
          Example: V = {0, . . . , 10}, V = {0}.
          4-adjacency: Two pixels p and q with values in V are
          4-adjacent if q ∈ N4 (p).
          8-adjacency: Two pixels p and q with values in V are
          8-adjacent if q ∈ N8 (p).
          m-adjacency: Two pixels p and q with values in V are
          m-adjacent if:
               q ∈ N4 (p), or
               q ∈ ND (p) and the set N4 (p) ∪ N4 (q) has no pixels whose
               values are in V .




                   IT472 - DIP: Lecture 2   17/23
Topological concepts


      Adjacency: Used to define relation between pixels of an
      image.
          Let V be the set of gray levels used to define the relation.
          Example: V = {0, . . . , 10}, V = {0}.
          4-adjacency: Two pixels p and q with values in V are
          4-adjacent if q ∈ N4 (p).
          8-adjacency: Two pixels p and q with values in V are
          8-adjacent if q ∈ N8 (p).
          m-adjacency: Two pixels p and q with values in V are
          m-adjacent if:
               q ∈ N4 (p), or
               q ∈ ND (p) and the set N4 (p) ∪ N4 (q) has no pixels whose
               values are in V .




                   IT472 - DIP: Lecture 2   17/23
Topological concepts

      Path: Path from pixel p = (x, y ) to pixel q = (s, t) is a
      sequence of distinct pixels with coordinates
      (x0 = x, y0 = y ), (x1 , y1 ), . . . , (xn = s, yn = t) such that pixels
      (xi−1 , yi−1 ) and (xi , yi ), ∀1 ≤ i ≤ n are adjacent. If the first
      and last pixels are same then we have a closed path.
      Connectedness: For a given subset S of pixels in an image,
      p, q ∈ S are said to be connected in S if there exists a path
      connecting the two, consisting of pixels only from S.
      Connected component: For p ∈ S, the set of all pixels
      connected to p is a connected component in S.
      Connected Set: If S has only one connected component, it is
      called a connected set. A connected set in an image is often
      called a region.


                     IT472 - DIP: Lecture 2   18/23
Topological concepts

      Path: Path from pixel p = (x, y ) to pixel q = (s, t) is a
      sequence of distinct pixels with coordinates
      (x0 = x, y0 = y ), (x1 , y1 ), . . . , (xn = s, yn = t) such that pixels
      (xi−1 , yi−1 ) and (xi , yi ), ∀1 ≤ i ≤ n are adjacent. If the first
      and last pixels are same then we have a closed path.
      Connectedness: For a given subset S of pixels in an image,
      p, q ∈ S are said to be connected in S if there exists a path
      connecting the two, consisting of pixels only from S.
      Connected component: For p ∈ S, the set of all pixels
      connected to p is a connected component in S.
      Connected Set: If S has only one connected component, it is
      called a connected set. A connected set in an image is often
      called a region.


                     IT472 - DIP: Lecture 2   18/23
Topological concepts

      Path: Path from pixel p = (x, y ) to pixel q = (s, t) is a
      sequence of distinct pixels with coordinates
      (x0 = x, y0 = y ), (x1 , y1 ), . . . , (xn = s, yn = t) such that pixels
      (xi−1 , yi−1 ) and (xi , yi ), ∀1 ≤ i ≤ n are adjacent. If the first
      and last pixels are same then we have a closed path.
      Connectedness: For a given subset S of pixels in an image,
      p, q ∈ S are said to be connected in S if there exists a path
      connecting the two, consisting of pixels only from S.
      Connected component: For p ∈ S, the set of all pixels
      connected to p is a connected component in S.
      Connected Set: If S has only one connected component, it is
      called a connected set. A connected set in an image is often
      called a region.


                     IT472 - DIP: Lecture 2   18/23
Topological concepts

      Path: Path from pixel p = (x, y ) to pixel q = (s, t) is a
      sequence of distinct pixels with coordinates
      (x0 = x, y0 = y ), (x1 , y1 ), . . . , (xn = s, yn = t) such that pixels
      (xi−1 , yi−1 ) and (xi , yi ), ∀1 ≤ i ≤ n are adjacent. If the first
      and last pixels are same then we have a closed path.
      Connectedness: For a given subset S of pixels in an image,
      p, q ∈ S are said to be connected in S if there exists a path
      connecting the two, consisting of pixels only from S.
      Connected component: For p ∈ S, the set of all pixels
      connected to p is a connected component in S.
      Connected Set: If S has only one connected component, it is
      called a connected set. A connected set in an image is often
      called a region.


                     IT472 - DIP: Lecture 2   18/23
Application




         Figure: Count the number of components in the image

                  IT472 - DIP: Lecture 2   19/23
Application




              Figure: Convert it into a binary image


                IT472 - DIP: Lecture 2   20/23
Application




   Figure: Do some morphological processing on the image. Let V = {1}.
   Find the connected sets in the image

                     IT472 - DIP: Lecture 2   21/23
Application




                     Figure: 11 components!


              IT472 - DIP: Lecture 2   22/23
Neighborhood using distances



      We may define neighborhood of a pixel using distances:
      N(p) = {p1 = (x1 , y1 ) |d(p, p1 ) ≤ a}.
      Euclidean distance: d(p, p1 ) = (x − x1 )2 + (y − y1 )2 .
      In general, a distance function (metric) should satisfy:
          Positive Definiteness: d(p, p1 ) ≥ 0, = 0 iff p = p1 .
          Symmetry: d(p, p1 ) = d(p1 , p).
          Triangular inequality: d(p, p1 ) ≤ d(p, q) + d(q, p1 ).
      Examples:
          City block distance - d4 (p, p1 ) = |x − x1 | + |y − y1 |
          Chessboard distance - d8 (p, p1 ) = max{|x − x1 |, |y − y1 |}




                    IT472 - DIP: Lecture 2   23/23
Neighborhood using distances



      We may define neighborhood of a pixel using distances:
      N(p) = {p1 = (x1 , y1 ) |d(p, p1 ) ≤ a}.
      Euclidean distance: d(p, p1 ) = (x − x1 )2 + (y − y1 )2 .
      In general, a distance function (metric) should satisfy:
          Positive Definiteness: d(p, p1 ) ≥ 0, = 0 iff p = p1 .
          Symmetry: d(p, p1 ) = d(p1 , p).
          Triangular inequality: d(p, p1 ) ≤ d(p, q) + d(q, p1 ).
      Examples:
          City block distance - d4 (p, p1 ) = |x − x1 | + |y − y1 |
          Chessboard distance - d8 (p, p1 ) = max{|x − x1 |, |y − y1 |}




                    IT472 - DIP: Lecture 2   23/23
Neighborhood using distances



      We may define neighborhood of a pixel using distances:
      N(p) = {p1 = (x1 , y1 ) |d(p, p1 ) ≤ a}.
      Euclidean distance: d(p, p1 ) = (x − x1 )2 + (y − y1 )2 .
      In general, a distance function (metric) should satisfy:
          Positive Definiteness: d(p, p1 ) ≥ 0, = 0 iff p = p1 .
          Symmetry: d(p, p1 ) = d(p1 , p).
          Triangular inequality: d(p, p1 ) ≤ d(p, q) + d(q, p1 ).
      Examples:
          City block distance - d4 (p, p1 ) = |x − x1 | + |y − y1 |
          Chessboard distance - d8 (p, p1 ) = max{|x − x1 |, |y − y1 |}




                    IT472 - DIP: Lecture 2   23/23
Neighborhood using distances



      We may define neighborhood of a pixel using distances:
      N(p) = {p1 = (x1 , y1 ) |d(p, p1 ) ≤ a}.
      Euclidean distance: d(p, p1 ) = (x − x1 )2 + (y − y1 )2 .
      In general, a distance function (metric) should satisfy:
          Positive Definiteness: d(p, p1 ) ≥ 0, = 0 iff p = p1 .
          Symmetry: d(p, p1 ) = d(p1 , p).
          Triangular inequality: d(p, p1 ) ≤ d(p, q) + d(q, p1 ).
      Examples:
          City block distance - d4 (p, p1 ) = |x − x1 | + |y − y1 |
          Chessboard distance - d8 (p, p1 ) = max{|x − x1 |, |y − y1 |}




                    IT472 - DIP: Lecture 2   23/23
Neighborhood using distances



      We may define neighborhood of a pixel using distances:
      N(p) = {p1 = (x1 , y1 ) |d(p, p1 ) ≤ a}.
      Euclidean distance: d(p, p1 ) = (x − x1 )2 + (y − y1 )2 .
      In general, a distance function (metric) should satisfy:
          Positive Definiteness: d(p, p1 ) ≥ 0, = 0 iff p = p1 .
          Symmetry: d(p, p1 ) = d(p1 , p).
          Triangular inequality: d(p, p1 ) ≤ d(p, q) + d(q, p1 ).
      Examples:
          City block distance - d4 (p, p1 ) = |x − x1 | + |y − y1 |
          Chessboard distance - d8 (p, p1 ) = max{|x − x1 |, |y − y1 |}




                    IT472 - DIP: Lecture 2   23/23
Neighborhood using distances



      We may define neighborhood of a pixel using distances:
      N(p) = {p1 = (x1 , y1 ) |d(p, p1 ) ≤ a}.
      Euclidean distance: d(p, p1 ) = (x − x1 )2 + (y − y1 )2 .
      In general, a distance function (metric) should satisfy:
          Positive Definiteness: d(p, p1 ) ≥ 0, = 0 iff p = p1 .
          Symmetry: d(p, p1 ) = d(p1 , p).
          Triangular inequality: d(p, p1 ) ≤ d(p, q) + d(q, p1 ).
      Examples:
          City block distance - d4 (p, p1 ) = |x − x1 | + |y − y1 |
          Chessboard distance - d8 (p, p1 ) = max{|x − x1 |, |y − y1 |}




                    IT472 - DIP: Lecture 2   23/23
Neighborhood using distances



      We may define neighborhood of a pixel using distances:
      N(p) = {p1 = (x1 , y1 ) |d(p, p1 ) ≤ a}.
      Euclidean distance: d(p, p1 ) = (x − x1 )2 + (y − y1 )2 .
      In general, a distance function (metric) should satisfy:
          Positive Definiteness: d(p, p1 ) ≥ 0, = 0 iff p = p1 .
          Symmetry: d(p, p1 ) = d(p1 , p).
          Triangular inequality: d(p, p1 ) ≤ d(p, q) + d(q, p1 ).
      Examples:
          City block distance - d4 (p, p1 ) = |x − x1 | + |y − y1 |
          Chessboard distance - d8 (p, p1 ) = max{|x − x1 |, |y − y1 |}




                    IT472 - DIP: Lecture 2   23/23
Neighborhood using distances



      We may define neighborhood of a pixel using distances:
      N(p) = {p1 = (x1 , y1 ) |d(p, p1 ) ≤ a}.
      Euclidean distance: d(p, p1 ) = (x − x1 )2 + (y − y1 )2 .
      In general, a distance function (metric) should satisfy:
          Positive Definiteness: d(p, p1 ) ≥ 0, = 0 iff p = p1 .
          Symmetry: d(p, p1 ) = d(p1 , p).
          Triangular inequality: d(p, p1 ) ≤ d(p, q) + d(q, p1 ).
      Examples:
          City block distance - d4 (p, p1 ) = |x − x1 | + |y − y1 |
          Chessboard distance - d8 (p, p1 ) = max{|x − x1 |, |y − y1 |}




                    IT472 - DIP: Lecture 2   23/23
Neighborhood using distances



      We may define neighborhood of a pixel using distances:
      N(p) = {p1 = (x1 , y1 ) |d(p, p1 ) ≤ a}.
      Euclidean distance: d(p, p1 ) = (x − x1 )2 + (y − y1 )2 .
      In general, a distance function (metric) should satisfy:
          Positive Definiteness: d(p, p1 ) ≥ 0, = 0 iff p = p1 .
          Symmetry: d(p, p1 ) = d(p1 , p).
          Triangular inequality: d(p, p1 ) ≤ d(p, q) + d(q, p1 ).
      Examples:
          City block distance - d4 (p, p1 ) = |x − x1 | + |y − y1 |
          Chessboard distance - d8 (p, p1 ) = max{|x − x1 |, |y − y1 |}




                    IT472 - DIP: Lecture 2   23/23

More Related Content

What's hot

Video Surveillance System
Video Surveillance SystemVideo Surveillance System
Video Surveillance SystemAli Mattash
 
MLIP - Chapter 6 - Generation, Super-Resolution, Style transfer
MLIP - Chapter 6 - Generation, Super-Resolution, Style transferMLIP - Chapter 6 - Generation, Super-Resolution, Style transfer
MLIP - Chapter 6 - Generation, Super-Resolution, Style transferCharles Deledalle
 
بررسی دو روش شناسایی سیستم های متغیر با زمان به همراه شبیه سازی و گزارش
بررسی دو روش شناسایی سیستم های متغیر با زمان به همراه شبیه سازی و گزارشبررسی دو روش شناسایی سیستم های متغیر با زمان به همراه شبیه سازی و گزارش
بررسی دو روش شناسایی سیستم های متغیر با زمان به همراه شبیه سازی و گزارشپروژه مارکت
 
FUNCTION APPROXIMATION
FUNCTION APPROXIMATIONFUNCTION APPROXIMATION
FUNCTION APPROXIMATIONankita pandey
 
Cvpr2007 object category recognition p3 - discriminative models
Cvpr2007 object category recognition   p3 - discriminative modelsCvpr2007 object category recognition   p3 - discriminative models
Cvpr2007 object category recognition p3 - discriminative modelszukun
 
Lecture 06 marco aurelio ranzato - deep learning
Lecture 06   marco aurelio ranzato - deep learningLecture 06   marco aurelio ranzato - deep learning
Lecture 06 marco aurelio ranzato - deep learningmustafa sarac
 
Signal Processing Course : Orthogonal Bases
Signal Processing Course : Orthogonal BasesSignal Processing Course : Orthogonal Bases
Signal Processing Course : Orthogonal BasesGabriel Peyré
 
Image analysis using python
Image analysis using pythonImage analysis using python
Image analysis using pythonJerlyn Manohar
 
Analysis of an Image Secret Sharing Scheme to Identify Cheaters
Analysis of an Image Secret Sharing Scheme to Identify CheatersAnalysis of an Image Secret Sharing Scheme to Identify Cheaters
Analysis of an Image Secret Sharing Scheme to Identify CheatersCSCJournals
 
CS 354 Acceleration Structures
CS 354 Acceleration StructuresCS 354 Acceleration Structures
CS 354 Acceleration StructuresMark Kilgard
 
Extracting the Object from the Shadows: Maximum Likelihood Object/Shadow Disc...
Extracting the Object from the Shadows: Maximum Likelihood Object/Shadow Disc...Extracting the Object from the Shadows: Maximum Likelihood Object/Shadow Disc...
Extracting the Object from the Shadows: Maximum Likelihood Object/Shadow Disc...Kan Ouivirach, Ph.D.
 
Neural network
Neural networkNeural network
Neural networkmarada0033
 
Introduction to Deep Learning and Tensorflow
Introduction to Deep Learning and TensorflowIntroduction to Deep Learning and Tensorflow
Introduction to Deep Learning and TensorflowOswald Campesato
 
Variational Autoencoders For Image Generation
Variational Autoencoders For Image GenerationVariational Autoencoders For Image Generation
Variational Autoencoders For Image GenerationJason Anderson
 

What's hot (20)

T01022103108
T01022103108T01022103108
T01022103108
 
Video Surveillance System
Video Surveillance SystemVideo Surveillance System
Video Surveillance System
 
MLIP - Chapter 6 - Generation, Super-Resolution, Style transfer
MLIP - Chapter 6 - Generation, Super-Resolution, Style transferMLIP - Chapter 6 - Generation, Super-Resolution, Style transfer
MLIP - Chapter 6 - Generation, Super-Resolution, Style transfer
 
Chapter 1 - Introduction
Chapter 1 - IntroductionChapter 1 - Introduction
Chapter 1 - Introduction
 
بررسی دو روش شناسایی سیستم های متغیر با زمان به همراه شبیه سازی و گزارش
بررسی دو روش شناسایی سیستم های متغیر با زمان به همراه شبیه سازی و گزارشبررسی دو روش شناسایی سیستم های متغیر با زمان به همراه شبیه سازی و گزارش
بررسی دو روش شناسایی سیستم های متغیر با زمان به همراه شبیه سازی و گزارش
 
FUNCTION APPROXIMATION
FUNCTION APPROXIMATIONFUNCTION APPROXIMATION
FUNCTION APPROXIMATION
 
Cvpr2007 object category recognition p3 - discriminative models
Cvpr2007 object category recognition   p3 - discriminative modelsCvpr2007 object category recognition   p3 - discriminative models
Cvpr2007 object category recognition p3 - discriminative models
 
Pc Seminar Jordi
Pc Seminar JordiPc Seminar Jordi
Pc Seminar Jordi
 
Lecture 06 marco aurelio ranzato - deep learning
Lecture 06   marco aurelio ranzato - deep learningLecture 06   marco aurelio ranzato - deep learning
Lecture 06 marco aurelio ranzato - deep learning
 
Signal Processing Course : Orthogonal Bases
Signal Processing Course : Orthogonal BasesSignal Processing Course : Orthogonal Bases
Signal Processing Course : Orthogonal Bases
 
Review_Cibe Sridharan
Review_Cibe SridharanReview_Cibe Sridharan
Review_Cibe Sridharan
 
Image analysis using python
Image analysis using pythonImage analysis using python
Image analysis using python
 
Analysis of an Image Secret Sharing Scheme to Identify Cheaters
Analysis of an Image Secret Sharing Scheme to Identify CheatersAnalysis of an Image Secret Sharing Scheme to Identify Cheaters
Analysis of an Image Secret Sharing Scheme to Identify Cheaters
 
CS 354 Acceleration Structures
CS 354 Acceleration StructuresCS 354 Acceleration Structures
CS 354 Acceleration Structures
 
Extracting the Object from the Shadows: Maximum Likelihood Object/Shadow Disc...
Extracting the Object from the Shadows: Maximum Likelihood Object/Shadow Disc...Extracting the Object from the Shadows: Maximum Likelihood Object/Shadow Disc...
Extracting the Object from the Shadows: Maximum Likelihood Object/Shadow Disc...
 
Neural network
Neural networkNeural network
Neural network
 
Function Approx2009
Function Approx2009Function Approx2009
Function Approx2009
 
Introduction to Deep Learning and Tensorflow
Introduction to Deep Learning and TensorflowIntroduction to Deep Learning and Tensorflow
Introduction to Deep Learning and Tensorflow
 
DCT
DCTDCT
DCT
 
Variational Autoencoders For Image Generation
Variational Autoencoders For Image GenerationVariational Autoencoders For Image Generation
Variational Autoencoders For Image Generation
 

Similar to Image Formation and Digital Representation

chAPTER1CV.pptx is abouter computer vision in artificial intelligence
chAPTER1CV.pptx is abouter computer vision in artificial intelligencechAPTER1CV.pptx is abouter computer vision in artificial intelligence
chAPTER1CV.pptx is abouter computer vision in artificial intelligenceshesnasuneer
 
computervision1.pptx its about computer vision
computervision1.pptx its about computer visioncomputervision1.pptx its about computer vision
computervision1.pptx its about computer visionshesnasuneer
 
Non-Blind Deblurring Using Partial Differential Equation Method
Non-Blind Deblurring Using Partial Differential Equation MethodNon-Blind Deblurring Using Partial Differential Equation Method
Non-Blind Deblurring Using Partial Differential Equation MethodEditor IJCATR
 
Advance image processing
Advance image processingAdvance image processing
Advance image processingAAKANKSHA JAIN
 
Unit-1Chapter-1Lecture-2.pptxkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk...
Unit-1Chapter-1Lecture-2.pptxkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk...Unit-1Chapter-1Lecture-2.pptxkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk...
Unit-1Chapter-1Lecture-2.pptxkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk...MonikaSharma151258
 
matdid950092.pdf
matdid950092.pdfmatdid950092.pdf
matdid950092.pdflencho3d
 
Chapter 1 introduction (Image Processing)
Chapter 1 introduction (Image Processing)Chapter 1 introduction (Image Processing)
Chapter 1 introduction (Image Processing)Varun Ojha
 
Realizing a Practical Teleportation System
Realizing a Practical Teleportation System  Realizing a Practical Teleportation System
Realizing a Practical Teleportation System Takashi Yamanoue
 
Digital image processing
Digital image processingDigital image processing
Digital image processingDEEPASHRI HK
 
Presentatie Willem En Kevin
Presentatie Willem En KevinPresentatie Willem En Kevin
Presentatie Willem En Kevingueste26e85
 
Introduction to digital image processing
Introduction to digital image processingIntroduction to digital image processing
Introduction to digital image processingHossain Md Shakhawat
 
Gesture Recognition Based Video Game Controller
Gesture Recognition Based Video Game ControllerGesture Recognition Based Video Game Controller
Gesture Recognition Based Video Game ControllerIRJET Journal
 
TAO Fayan_X-Ray and MIP volume rendering
TAO Fayan_X-Ray and MIP volume renderingTAO Fayan_X-Ray and MIP volume rendering
TAO Fayan_X-Ray and MIP volume renderingFayan TAO
 

Similar to Image Formation and Digital Representation (20)

It 603
It 603It 603
It 603
 
It 603
It 603It 603
It 603
 
It 603
It 603It 603
It 603
 
chAPTER1CV.pptx is abouter computer vision in artificial intelligence
chAPTER1CV.pptx is abouter computer vision in artificial intelligencechAPTER1CV.pptx is abouter computer vision in artificial intelligence
chAPTER1CV.pptx is abouter computer vision in artificial intelligence
 
computervision1.pptx its about computer vision
computervision1.pptx its about computer visioncomputervision1.pptx its about computer vision
computervision1.pptx its about computer vision
 
Non-Blind Deblurring Using Partial Differential Equation Method
Non-Blind Deblurring Using Partial Differential Equation MethodNon-Blind Deblurring Using Partial Differential Equation Method
Non-Blind Deblurring Using Partial Differential Equation Method
 
Advance image processing
Advance image processingAdvance image processing
Advance image processing
 
Unit-1Chapter-1Lecture-2.pptxkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk...
Unit-1Chapter-1Lecture-2.pptxkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk...Unit-1Chapter-1Lecture-2.pptxkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk...
Unit-1Chapter-1Lecture-2.pptxkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk...
 
DIP-Questions.pdf
DIP-Questions.pdfDIP-Questions.pdf
DIP-Questions.pdf
 
matdid950092.pdf
matdid950092.pdfmatdid950092.pdf
matdid950092.pdf
 
Chapter 1 introduction (Image Processing)
Chapter 1 introduction (Image Processing)Chapter 1 introduction (Image Processing)
Chapter 1 introduction (Image Processing)
 
Point Processing
Point ProcessingPoint Processing
Point Processing
 
Realizing a Practical Teleportation System
Realizing a Practical Teleportation System  Realizing a Practical Teleportation System
Realizing a Practical Teleportation System
 
Digital image processing
Digital image processingDigital image processing
Digital image processing
 
Presentatie Willem En Kevin
Presentatie Willem En KevinPresentatie Willem En Kevin
Presentatie Willem En Kevin
 
Introduction to digital image processing
Introduction to digital image processingIntroduction to digital image processing
Introduction to digital image processing
 
Gesture Recognition Based Video Game Controller
Gesture Recognition Based Video Game ControllerGesture Recognition Based Video Game Controller
Gesture Recognition Based Video Game Controller
 
TAO Fayan_X-Ray and MIP volume rendering
TAO Fayan_X-Ray and MIP volume renderingTAO Fayan_X-Ray and MIP volume rendering
TAO Fayan_X-Ray and MIP volume rendering
 
Lecture1.pptx
Lecture1.pptxLecture1.pptx
Lecture1.pptx
 
mini prjt
mini prjtmini prjt
mini prjt
 

Recently uploaded

call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfUjwalaBharambe
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxJiesonDelaCerna
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 

Recently uploaded (20)

Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptx
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 

Image Formation and Digital Representation

  • 1. Image and related concepts Aditya Tatu
  • 2. What is an Image Image is a representation of some property of a physical entity. The property can be represented as a function f (x, y , z) of 3 variables. A 2D image is obtained by: perspective projection through a pin-hole camera Assuming that the objects are very far away from the imaging system (for eg: z → ∞), thereby giving f (x, y ) = f (x, y , z). When the independent variables x, y and the function value f are discretized, we get a Digital Image. IT472 - DIP: Lecture 2 2/23
  • 3. What is an Image Image is a representation of some property of a physical entity. The property can be represented as a function f (x, y , z) of 3 variables. A 2D image is obtained by: perspective projection through a pin-hole camera Assuming that the objects are very far away from the imaging system (for eg: z → ∞), thereby giving f (x, y ) = f (x, y , z). When the independent variables x, y and the function value f are discretized, we get a Digital Image. IT472 - DIP: Lecture 2 2/23
  • 4. What is an Image Image is a representation of some property of a physical entity. The property can be represented as a function f (x, y , z) of 3 variables. A 2D image is obtained by: perspective projection through a pin-hole camera Assuming that the objects are very far away from the imaging system (for eg: z → ∞), thereby giving f (x, y ) = f (x, y , z). When the independent variables x, y and the function value f are discretized, we get a Digital Image. IT472 - DIP: Lecture 2 2/23
  • 5. What is an Image Image is a representation of some property of a physical entity. The property can be represented as a function f (x, y , z) of 3 variables. A 2D image is obtained by: perspective projection through a pin-hole camera Assuming that the objects are very far away from the imaging system (for eg: z → ∞), thereby giving f (x, y ) = f (x, y , z). When the independent variables x, y and the function value f are discretized, we get a Digital Image. IT472 - DIP: Lecture 2 2/23
  • 6. What is an Image Image is a representation of some property of a physical entity. The property can be represented as a function f (x, y , z) of 3 variables. A 2D image is obtained by: perspective projection through a pin-hole camera Assuming that the objects are very far away from the imaging system (for eg: z → ∞), thereby giving f (x, y ) = f (x, y , z). When the independent variables x, y and the function value f are discretized, we get a Digital Image. IT472 - DIP: Lecture 2 2/23
  • 7. What is an Image Image is a representation of some property of a physical entity. The property can be represented as a function f (x, y , z) of 3 variables. A 2D image is obtained by: perspective projection through a pin-hole camera Assuming that the objects are very far away from the imaging system (for eg: z → ∞), thereby giving f (x, y ) = f (x, y , z). When the independent variables x, y and the function value f are discretized, we get a Digital Image. IT472 - DIP: Lecture 2 2/23
  • 8. What is an Image Image is a representation of some property of a physical entity. The property can be represented as a function f (x, y , z) of 3 variables. A 2D image is obtained by: perspective projection through a pin-hole camera Assuming that the objects are very far away from the imaging system (for eg: z → ∞), thereby giving f (x, y ) = f (x, y , z). When the independent variables x, y and the function value f are discretized, we get a Digital Image. IT472 - DIP: Lecture 2 2/23
  • 9. Image formation model IT472 - DIP: Lecture 2 3/23
  • 10. Let i(x, y ) be the illumination at a point (x, y ) and r (x, y ) be the reflectance at the same point, then the image f (x, y ) at the point is given by f (x, y ) = i(x, y ) r (x, y ). From Physics, we get 0 < f (x, y ), i(x, y ) < ∞ and 0 < r (x, y ) < 1. The image capturing device is directly related to the illumination source used, for eg: Infrared source - Infrared detector, X-ray source - X-ray film, Visible light - CCD array detectors. Summary At the end, we get a mathematical object f (x, y ) to work with, that represents an aspect of the real object that we are interested in. IT472 - DIP: Lecture 2 4/23
  • 11. Let i(x, y ) be the illumination at a point (x, y ) and r (x, y ) be the reflectance at the same point, then the image f (x, y ) at the point is given by f (x, y ) = i(x, y ) r (x, y ). From Physics, we get 0 < f (x, y ), i(x, y ) < ∞ and 0 < r (x, y ) < 1. The image capturing device is directly related to the illumination source used, for eg: Infrared source - Infrared detector, X-ray source - X-ray film, Visible light - CCD array detectors. Summary At the end, we get a mathematical object f (x, y ) to work with, that represents an aspect of the real object that we are interested in. IT472 - DIP: Lecture 2 4/23
  • 12. Let i(x, y ) be the illumination at a point (x, y ) and r (x, y ) be the reflectance at the same point, then the image f (x, y ) at the point is given by f (x, y ) = i(x, y ) r (x, y ). From Physics, we get 0 < f (x, y ), i(x, y ) < ∞ and 0 < r (x, y ) < 1. The image capturing device is directly related to the illumination source used, for eg: Infrared source - Infrared detector, X-ray source - X-ray film, Visible light - CCD array detectors. Summary At the end, we get a mathematical object f (x, y ) to work with, that represents an aspect of the real object that we are interested in. IT472 - DIP: Lecture 2 4/23
  • 13. Let i(x, y ) be the illumination at a point (x, y ) and r (x, y ) be the reflectance at the same point, then the image f (x, y ) at the point is given by f (x, y ) = i(x, y ) r (x, y ). From Physics, we get 0 < f (x, y ), i(x, y ) < ∞ and 0 < r (x, y ) < 1. The image capturing device is directly related to the illumination source used, for eg: Infrared source - Infrared detector, X-ray source - X-ray film, Visible light - CCD array detectors. Summary At the end, we get a mathematical object f (x, y ) to work with, that represents an aspect of the real object that we are interested in. IT472 - DIP: Lecture 2 4/23
  • 14. What sort of objects are images? Since we want to process, operate on and play with images, we should first characterize what sort of objects images are and what should be possible to do with images? Should it be possible to apply filters on images (say, using convolution)? If yes, then what operations should be allowed on images? Addition and Scalar multiplication → Vector Spaces! What sort of vector space? - Differentiable functions? Continuous functions? Finite bandwidth? NO! IT472 - DIP: Lecture 2 5/23
  • 15. What sort of objects are images? Since we want to process, operate on and play with images, we should first characterize what sort of objects images are and what should be possible to do with images? Should it be possible to apply filters on images (say, using convolution)? If yes, then what operations should be allowed on images? Addition and Scalar multiplication → Vector Spaces! What sort of vector space? - Differentiable functions? Continuous functions? Finite bandwidth? NO! IT472 - DIP: Lecture 2 5/23
  • 16. What sort of objects are images? Since we want to process, operate on and play with images, we should first characterize what sort of objects images are and what should be possible to do with images? Should it be possible to apply filters on images (say, using convolution)? If yes, then what operations should be allowed on images? Addition and Scalar multiplication → Vector Spaces! What sort of vector space? - Differentiable functions? Continuous functions? Finite bandwidth? NO! IT472 - DIP: Lecture 2 5/23
  • 17. What sort of objects are images? Since we want to process, operate on and play with images, we should first characterize what sort of objects images are and what should be possible to do with images? Should it be possible to apply filters on images (say, using convolution)? If yes, then what operations should be allowed on images? Addition and Scalar multiplication → Vector Spaces! What sort of vector space? - Differentiable functions? Continuous functions? Finite bandwidth? NO! IT472 - DIP: Lecture 2 5/23
  • 18. What sort of objects are images? Since we want to process, operate on and play with images, we should first characterize what sort of objects images are and what should be possible to do with images? Should it be possible to apply filters on images (say, using convolution)? If yes, then what operations should be allowed on images? Addition and Scalar multiplication → Vector Spaces! What sort of vector space? - Differentiable functions? Continuous functions? Finite bandwidth? NO! IT472 - DIP: Lecture 2 5/23
  • 19. What sort of objects are images? Since we want to process, operate on and play with images, we should first characterize what sort of objects images are and what should be possible to do with images? Should it be possible to apply filters on images (say, using convolution)? If yes, then what operations should be allowed on images? Addition and Scalar multiplication → Vector Spaces! What sort of vector space? - Differentiable functions? Continuous functions? Finite bandwidth? NO! IT472 - DIP: Lecture 2 5/23
  • 20. Vector space of images Images are defined on a set with finite area, i.e., images are functions with compact support. The image values must be finite at all points, → the energy: ||f || = 2 (x, y ) supp(f ) f dx dy has to be finite. Vector space of images Images are part of a vector space of 2-d functions with compact support Ω which are square integrable. This vector space is denoted as L2 (Ω). IT472 - DIP: Lecture 2 6/23
  • 21. Vector space of images Images are defined on a set with finite area, i.e., images are functions with compact support. The image values must be finite at all points, → the energy: ||f || = 2 (x, y ) supp(f ) f dx dy has to be finite. Vector space of images Images are part of a vector space of 2-d functions with compact support Ω which are square integrable. This vector space is denoted as L2 (Ω). IT472 - DIP: Lecture 2 6/23
  • 22. Vector space of images Images are defined on a set with finite area, i.e., images are functions with compact support. The image values must be finite at all points, → the energy: ||f || = 2 (x, y ) supp(f ) f dx dy has to be finite. Vector space of images Images are part of a vector space of 2-d functions with compact support Ω which are square integrable. This vector space is denoted as L2 (Ω). IT472 - DIP: Lecture 2 6/23
  • 23. Vector space of images Images are defined on a set with finite area, i.e., images are functions with compact support. The image values must be finite at all points, → the energy: ||f || = 2 (x, y ) supp(f ) f dx dy has to be finite. Vector space of images Images are part of a vector space of 2-d functions with compact support Ω which are square integrable. This vector space is denoted as L2 (Ω). IT472 - DIP: Lecture 2 6/23
  • 24. Image sensors Figure: Line of sensors Figure: Single Sensor Figure: Circular Sensor Figure: Array of sensors IT472 - DIP: Lecture 2 7/23
  • 25. Sampling & Quantization Although theoretically 0 < f (x, y ) < ∞, in practice Lmin ≤ f (x, y ) ≤ Lmax , where Lmin > 0 and Lmax < ∞ depend on sensor ratings. For gray scale digital images, typically we use Lmin = 0 representing black and Lmax = L − 1 representing white. Sampled and quantized image gives a digital image which can be represented as a m × n matrix, say A, of which each element is called a pixel (or picture element). IT472 - DIP: Lecture 2 8/23
  • 26. Sampling & Quantization Although theoretically 0 < f (x, y ) < ∞, in practice Lmin ≤ f (x, y ) ≤ Lmax , where Lmin > 0 and Lmax < ∞ depend on sensor ratings. For gray scale digital images, typically we use Lmin = 0 representing black and Lmax = L − 1 representing white. Sampled and quantized image gives a digital image which can be represented as a m × n matrix, say A, of which each element is called a pixel (or picture element). IT472 - DIP: Lecture 2 8/23
  • 27. Sampling & Quantization Although theoretically 0 < f (x, y ) < ∞, in practice Lmin ≤ f (x, y ) ≤ Lmax , where Lmin > 0 and Lmax < ∞ depend on sensor ratings. For gray scale digital images, typically we use Lmin = 0 representing black and Lmax = L − 1 representing white. Sampled and quantized image gives a digital image which can be represented as a m × n matrix, say A, of which each element is called a pixel (or picture element). IT472 - DIP: Lecture 2 8/23
  • 28. Sampling & Quantization Although theoretically 0 < f (x, y ) < ∞, in practice Lmin ≤ f (x, y ) ≤ Lmax , where Lmin > 0 and Lmax < ∞ depend on sensor ratings. For gray scale digital images, typically we use Lmin = 0 representing black and Lmax = L − 1 representing white. Sampled and quantized image gives a digital image which can be represented as a m × n matrix, say A, of which each element is called a pixel (or picture element). IT472 - DIP: Lecture 2 8/23
  • 29. L is typically a power of 2, L = 2k . L levels require k bits of memory. For a general image of size 1024 × 1024 pixels with L = 256, we will need approximately 8MB memory. Compare this with the file size of one image in your computer. IT472 - DIP: Lecture 2 9/23
  • 30. L is typically a power of 2, L = 2k . L levels require k bits of memory. For a general image of size 1024 × 1024 pixels with L = 256, we will need approximately 8MB memory. Compare this with the file size of one image in your computer. IT472 - DIP: Lecture 2 9/23
  • 31. L is typically a power of 2, L = 2k . L levels require k bits of memory. For a general image of size 1024 × 1024 pixels with L = 256, we will need approximately 8MB memory. Compare this with the file size of one image in your computer. IT472 - DIP: Lecture 2 9/23
  • 32. Spatial Resolution Resolution of an imaging system determines the smallest discernible detail possible and technically is defined as the largest number of discernible lines per unit distance. (1) Is number of pixels enough to define resolution? Not Always!- Also depends on (2) pixel size. Commonly found sensors have individual pixel length/width 2 − 8 microns. Are smaller sensors always better? NO! - Since an image is produced based on number of photons (a discrete random variable - Poisson pdf) incident on each sensor, bigger sensors are found to be more reliable or have higher SNR ratio compared to smaller sensors. IT472 - DIP: Lecture 2 10/23
  • 33. Spatial Resolution Resolution of an imaging system determines the smallest discernible detail possible and technically is defined as the largest number of discernible lines per unit distance. (1) Is number of pixels enough to define resolution? Not Always!- Also depends on (2) pixel size. Commonly found sensors have individual pixel length/width 2 − 8 microns. Are smaller sensors always better? NO! - Since an image is produced based on number of photons (a discrete random variable - Poisson pdf) incident on each sensor, bigger sensors are found to be more reliable or have higher SNR ratio compared to smaller sensors. IT472 - DIP: Lecture 2 10/23
  • 34. Spatial Resolution Resolution of an imaging system determines the smallest discernible detail possible and technically is defined as the largest number of discernible lines per unit distance. (1) Is number of pixels enough to define resolution? Not Always!- Also depends on (2) pixel size. Commonly found sensors have individual pixel length/width 2 − 8 microns. Are smaller sensors always better? NO! - Since an image is produced based on number of photons (a discrete random variable - Poisson pdf) incident on each sensor, bigger sensors are found to be more reliable or have higher SNR ratio compared to smaller sensors. IT472 - DIP: Lecture 2 10/23
  • 35. Spatial Resolution Resolution of an imaging system determines the smallest discernible detail possible and technically is defined as the largest number of discernible lines per unit distance. (1) Is number of pixels enough to define resolution? Not Always!- Also depends on (2) pixel size. Commonly found sensors have individual pixel length/width 2 − 8 microns. Are smaller sensors always better? NO! - Since an image is produced based on number of photons (a discrete random variable - Poisson pdf) incident on each sensor, bigger sensors are found to be more reliable or have higher SNR ratio compared to smaller sensors. IT472 - DIP: Lecture 2 10/23
  • 36. Spatial Resolution Resolution of an imaging system determines the smallest discernible detail possible and technically is defined as the largest number of discernible lines per unit distance. (1) Is number of pixels enough to define resolution? Not Always!- Also depends on (2) pixel size. Commonly found sensors have individual pixel length/width 2 − 8 microns. Are smaller sensors always better? NO! - Since an image is produced based on number of photons (a discrete random variable - Poisson pdf) incident on each sensor, bigger sensors are found to be more reliable or have higher SNR ratio compared to smaller sensors. IT472 - DIP: Lecture 2 10/23
  • 37. For color images, sensors are arranged in a (3) mosaic pattern It also depends on the (4) spatial resolution of the lens. To summarize, a camera with 10 megapixels is said to have a better resolution then a 3 megapixel camera assuming similar lenses and sensors and that images are taken at the same distance. IT472 - DIP: Lecture 2 11/23
  • 38. For color images, sensors are arranged in a (3) mosaic pattern It also depends on the (4) spatial resolution of the lens. To summarize, a camera with 10 megapixels is said to have a better resolution then a 3 megapixel camera assuming similar lenses and sensors and that images are taken at the same distance. IT472 - DIP: Lecture 2 11/23
  • 39. For color images, sensors are arranged in a (3) mosaic pattern It also depends on the (4) spatial resolution of the lens. To summarize, a camera with 10 megapixels is said to have a better resolution then a 3 megapixel camera assuming similar lenses and sensors and that images are taken at the same distance. IT472 - DIP: Lecture 2 11/23
  • 40. Imaging system We can assume that the imaging system is linear and position invariant/shift invariant. A meaningful conclusion about the spatial resolution can be obtained by looking at the impulse response of the imaging system. What is an impulse/impulse response for a camera? IT472 - DIP: Lecture 2 12/23
  • 41. Imaging system We can assume that the imaging system is linear and position invariant/shift invariant. A meaningful conclusion about the spatial resolution can be obtained by looking at the impulse response of the imaging system. What is an impulse/impulse response for a camera? IT472 - DIP: Lecture 2 12/23
  • 42. Imaging system We can assume that the imaging system is linear and position invariant/shift invariant. A meaningful conclusion about the spatial resolution can be obtained by looking at the impulse response of the imaging system. What is an impulse/impulse response for a camera? IT472 - DIP: Lecture 2 12/23
  • 43. Imaging system We can assume that the imaging system is linear and position invariant/shift invariant. A meaningful conclusion about the spatial resolution can be obtained by looking at the impulse response of the imaging system. What is an impulse/impulse response for a camera? IT472 - DIP: Lecture 2 12/23
  • 44. Spatial resolution Print technology: dots per inch (dpi), Computer screens: pixels per inch (ppi) Difference: Collection of dots forms one pixel. IT472 - DIP: Lecture 2 13/23
  • 45. Spatial resolution Print technology: dots per inch (dpi), Computer screens: pixels per inch (ppi) Difference: Collection of dots forms one pixel. IT472 - DIP: Lecture 2 13/23
  • 46. Spatial resolution Print technology: dots per inch (dpi), Computer screens: pixels per inch (ppi) Difference: Collection of dots forms one pixel. IT472 - DIP: Lecture 2 13/23
  • 47. Intensity resolution Smallest discernible change in the intensity level. IT472 - DIP: Lecture 2 14/23
  • 48. Intensity resolution Smallest discernible change in the intensity level. IT472 - DIP: Lecture 2 14/23
  • 49. Intensity resolution IT472 - DIP: Lecture 2 15/23
  • 50. Topological concepts Neighbors of a pixel p = (x, y ) 4-Neighborhood N4 (p) = {(x + 1, y ), (x − 1, y ), (x, y + 1), (x, y − 1)}. Diagonal Neighborhood ND (p) = {(x+1, y +1), (x−1, y +1), (x+1, y −1), (x−1, y −1)}. 8-Neighborhood N8 (p) = N4 (p) ∪ ND (p). IT472 - DIP: Lecture 2 16/23
  • 51. Topological concepts Neighbors of a pixel p = (x, y ) 4-Neighborhood N4 (p) = {(x + 1, y ), (x − 1, y ), (x, y + 1), (x, y − 1)}. Diagonal Neighborhood ND (p) = {(x+1, y +1), (x−1, y +1), (x+1, y −1), (x−1, y −1)}. 8-Neighborhood N8 (p) = N4 (p) ∪ ND (p). IT472 - DIP: Lecture 2 16/23
  • 52. Topological concepts Neighbors of a pixel p = (x, y ) 4-Neighborhood N4 (p) = {(x + 1, y ), (x − 1, y ), (x, y + 1), (x, y − 1)}. Diagonal Neighborhood ND (p) = {(x+1, y +1), (x−1, y +1), (x+1, y −1), (x−1, y −1)}. 8-Neighborhood N8 (p) = N4 (p) ∪ ND (p). IT472 - DIP: Lecture 2 16/23
  • 53. Topological concepts Neighbors of a pixel p = (x, y ) 4-Neighborhood N4 (p) = {(x + 1, y ), (x − 1, y ), (x, y + 1), (x, y − 1)}. Diagonal Neighborhood ND (p) = {(x+1, y +1), (x−1, y +1), (x+1, y −1), (x−1, y −1)}. 8-Neighborhood N8 (p) = N4 (p) ∪ ND (p). IT472 - DIP: Lecture 2 16/23
  • 54. Topological concepts Adjacency: Used to define relation between pixels of an image. Let V be the set of gray levels used to define the relation. Example: V = {0, . . . , 10}, V = {0}. 4-adjacency: Two pixels p and q with values in V are 4-adjacent if q ∈ N4 (p). 8-adjacency: Two pixels p and q with values in V are 8-adjacent if q ∈ N8 (p). m-adjacency: Two pixels p and q with values in V are m-adjacent if: q ∈ N4 (p), or q ∈ ND (p) and the set N4 (p) ∪ N4 (q) has no pixels whose values are in V . IT472 - DIP: Lecture 2 17/23
  • 55. Topological concepts Adjacency: Used to define relation between pixels of an image. Let V be the set of gray levels used to define the relation. Example: V = {0, . . . , 10}, V = {0}. 4-adjacency: Two pixels p and q with values in V are 4-adjacent if q ∈ N4 (p). 8-adjacency: Two pixels p and q with values in V are 8-adjacent if q ∈ N8 (p). m-adjacency: Two pixels p and q with values in V are m-adjacent if: q ∈ N4 (p), or q ∈ ND (p) and the set N4 (p) ∪ N4 (q) has no pixels whose values are in V . IT472 - DIP: Lecture 2 17/23
  • 56. Topological concepts Adjacency: Used to define relation between pixels of an image. Let V be the set of gray levels used to define the relation. Example: V = {0, . . . , 10}, V = {0}. 4-adjacency: Two pixels p and q with values in V are 4-adjacent if q ∈ N4 (p). 8-adjacency: Two pixels p and q with values in V are 8-adjacent if q ∈ N8 (p). m-adjacency: Two pixels p and q with values in V are m-adjacent if: q ∈ N4 (p), or q ∈ ND (p) and the set N4 (p) ∪ N4 (q) has no pixels whose values are in V . IT472 - DIP: Lecture 2 17/23
  • 57. Topological concepts Adjacency: Used to define relation between pixels of an image. Let V be the set of gray levels used to define the relation. Example: V = {0, . . . , 10}, V = {0}. 4-adjacency: Two pixels p and q with values in V are 4-adjacent if q ∈ N4 (p). 8-adjacency: Two pixels p and q with values in V are 8-adjacent if q ∈ N8 (p). m-adjacency: Two pixels p and q with values in V are m-adjacent if: q ∈ N4 (p), or q ∈ ND (p) and the set N4 (p) ∪ N4 (q) has no pixels whose values are in V . IT472 - DIP: Lecture 2 17/23
  • 58. Topological concepts Adjacency: Used to define relation between pixels of an image. Let V be the set of gray levels used to define the relation. Example: V = {0, . . . , 10}, V = {0}. 4-adjacency: Two pixels p and q with values in V are 4-adjacent if q ∈ N4 (p). 8-adjacency: Two pixels p and q with values in V are 8-adjacent if q ∈ N8 (p). m-adjacency: Two pixels p and q with values in V are m-adjacent if: q ∈ N4 (p), or q ∈ ND (p) and the set N4 (p) ∪ N4 (q) has no pixels whose values are in V . IT472 - DIP: Lecture 2 17/23
  • 59. Topological concepts Adjacency: Used to define relation between pixels of an image. Let V be the set of gray levels used to define the relation. Example: V = {0, . . . , 10}, V = {0}. 4-adjacency: Two pixels p and q with values in V are 4-adjacent if q ∈ N4 (p). 8-adjacency: Two pixels p and q with values in V are 8-adjacent if q ∈ N8 (p). m-adjacency: Two pixels p and q with values in V are m-adjacent if: q ∈ N4 (p), or q ∈ ND (p) and the set N4 (p) ∪ N4 (q) has no pixels whose values are in V . IT472 - DIP: Lecture 2 17/23
  • 60. Topological concepts Adjacency: Used to define relation between pixels of an image. Let V be the set of gray levels used to define the relation. Example: V = {0, . . . , 10}, V = {0}. 4-adjacency: Two pixels p and q with values in V are 4-adjacent if q ∈ N4 (p). 8-adjacency: Two pixels p and q with values in V are 8-adjacent if q ∈ N8 (p). m-adjacency: Two pixels p and q with values in V are m-adjacent if: q ∈ N4 (p), or q ∈ ND (p) and the set N4 (p) ∪ N4 (q) has no pixels whose values are in V . IT472 - DIP: Lecture 2 17/23
  • 61. Topological concepts Path: Path from pixel p = (x, y ) to pixel q = (s, t) is a sequence of distinct pixels with coordinates (x0 = x, y0 = y ), (x1 , y1 ), . . . , (xn = s, yn = t) such that pixels (xi−1 , yi−1 ) and (xi , yi ), ∀1 ≤ i ≤ n are adjacent. If the first and last pixels are same then we have a closed path. Connectedness: For a given subset S of pixels in an image, p, q ∈ S are said to be connected in S if there exists a path connecting the two, consisting of pixels only from S. Connected component: For p ∈ S, the set of all pixels connected to p is a connected component in S. Connected Set: If S has only one connected component, it is called a connected set. A connected set in an image is often called a region. IT472 - DIP: Lecture 2 18/23
  • 62. Topological concepts Path: Path from pixel p = (x, y ) to pixel q = (s, t) is a sequence of distinct pixels with coordinates (x0 = x, y0 = y ), (x1 , y1 ), . . . , (xn = s, yn = t) such that pixels (xi−1 , yi−1 ) and (xi , yi ), ∀1 ≤ i ≤ n are adjacent. If the first and last pixels are same then we have a closed path. Connectedness: For a given subset S of pixels in an image, p, q ∈ S are said to be connected in S if there exists a path connecting the two, consisting of pixels only from S. Connected component: For p ∈ S, the set of all pixels connected to p is a connected component in S. Connected Set: If S has only one connected component, it is called a connected set. A connected set in an image is often called a region. IT472 - DIP: Lecture 2 18/23
  • 63. Topological concepts Path: Path from pixel p = (x, y ) to pixel q = (s, t) is a sequence of distinct pixels with coordinates (x0 = x, y0 = y ), (x1 , y1 ), . . . , (xn = s, yn = t) such that pixels (xi−1 , yi−1 ) and (xi , yi ), ∀1 ≤ i ≤ n are adjacent. If the first and last pixels are same then we have a closed path. Connectedness: For a given subset S of pixels in an image, p, q ∈ S are said to be connected in S if there exists a path connecting the two, consisting of pixels only from S. Connected component: For p ∈ S, the set of all pixels connected to p is a connected component in S. Connected Set: If S has only one connected component, it is called a connected set. A connected set in an image is often called a region. IT472 - DIP: Lecture 2 18/23
  • 64. Topological concepts Path: Path from pixel p = (x, y ) to pixel q = (s, t) is a sequence of distinct pixels with coordinates (x0 = x, y0 = y ), (x1 , y1 ), . . . , (xn = s, yn = t) such that pixels (xi−1 , yi−1 ) and (xi , yi ), ∀1 ≤ i ≤ n are adjacent. If the first and last pixels are same then we have a closed path. Connectedness: For a given subset S of pixels in an image, p, q ∈ S are said to be connected in S if there exists a path connecting the two, consisting of pixels only from S. Connected component: For p ∈ S, the set of all pixels connected to p is a connected component in S. Connected Set: If S has only one connected component, it is called a connected set. A connected set in an image is often called a region. IT472 - DIP: Lecture 2 18/23
  • 65. Application Figure: Count the number of components in the image IT472 - DIP: Lecture 2 19/23
  • 66. Application Figure: Convert it into a binary image IT472 - DIP: Lecture 2 20/23
  • 67. Application Figure: Do some morphological processing on the image. Let V = {1}. Find the connected sets in the image IT472 - DIP: Lecture 2 21/23
  • 68. Application Figure: 11 components! IT472 - DIP: Lecture 2 22/23
  • 69. Neighborhood using distances We may define neighborhood of a pixel using distances: N(p) = {p1 = (x1 , y1 ) |d(p, p1 ) ≤ a}. Euclidean distance: d(p, p1 ) = (x − x1 )2 + (y − y1 )2 . In general, a distance function (metric) should satisfy: Positive Definiteness: d(p, p1 ) ≥ 0, = 0 iff p = p1 . Symmetry: d(p, p1 ) = d(p1 , p). Triangular inequality: d(p, p1 ) ≤ d(p, q) + d(q, p1 ). Examples: City block distance - d4 (p, p1 ) = |x − x1 | + |y − y1 | Chessboard distance - d8 (p, p1 ) = max{|x − x1 |, |y − y1 |} IT472 - DIP: Lecture 2 23/23
  • 70. Neighborhood using distances We may define neighborhood of a pixel using distances: N(p) = {p1 = (x1 , y1 ) |d(p, p1 ) ≤ a}. Euclidean distance: d(p, p1 ) = (x − x1 )2 + (y − y1 )2 . In general, a distance function (metric) should satisfy: Positive Definiteness: d(p, p1 ) ≥ 0, = 0 iff p = p1 . Symmetry: d(p, p1 ) = d(p1 , p). Triangular inequality: d(p, p1 ) ≤ d(p, q) + d(q, p1 ). Examples: City block distance - d4 (p, p1 ) = |x − x1 | + |y − y1 | Chessboard distance - d8 (p, p1 ) = max{|x − x1 |, |y − y1 |} IT472 - DIP: Lecture 2 23/23
  • 71. Neighborhood using distances We may define neighborhood of a pixel using distances: N(p) = {p1 = (x1 , y1 ) |d(p, p1 ) ≤ a}. Euclidean distance: d(p, p1 ) = (x − x1 )2 + (y − y1 )2 . In general, a distance function (metric) should satisfy: Positive Definiteness: d(p, p1 ) ≥ 0, = 0 iff p = p1 . Symmetry: d(p, p1 ) = d(p1 , p). Triangular inequality: d(p, p1 ) ≤ d(p, q) + d(q, p1 ). Examples: City block distance - d4 (p, p1 ) = |x − x1 | + |y − y1 | Chessboard distance - d8 (p, p1 ) = max{|x − x1 |, |y − y1 |} IT472 - DIP: Lecture 2 23/23
  • 72. Neighborhood using distances We may define neighborhood of a pixel using distances: N(p) = {p1 = (x1 , y1 ) |d(p, p1 ) ≤ a}. Euclidean distance: d(p, p1 ) = (x − x1 )2 + (y − y1 )2 . In general, a distance function (metric) should satisfy: Positive Definiteness: d(p, p1 ) ≥ 0, = 0 iff p = p1 . Symmetry: d(p, p1 ) = d(p1 , p). Triangular inequality: d(p, p1 ) ≤ d(p, q) + d(q, p1 ). Examples: City block distance - d4 (p, p1 ) = |x − x1 | + |y − y1 | Chessboard distance - d8 (p, p1 ) = max{|x − x1 |, |y − y1 |} IT472 - DIP: Lecture 2 23/23
  • 73. Neighborhood using distances We may define neighborhood of a pixel using distances: N(p) = {p1 = (x1 , y1 ) |d(p, p1 ) ≤ a}. Euclidean distance: d(p, p1 ) = (x − x1 )2 + (y − y1 )2 . In general, a distance function (metric) should satisfy: Positive Definiteness: d(p, p1 ) ≥ 0, = 0 iff p = p1 . Symmetry: d(p, p1 ) = d(p1 , p). Triangular inequality: d(p, p1 ) ≤ d(p, q) + d(q, p1 ). Examples: City block distance - d4 (p, p1 ) = |x − x1 | + |y − y1 | Chessboard distance - d8 (p, p1 ) = max{|x − x1 |, |y − y1 |} IT472 - DIP: Lecture 2 23/23
  • 74. Neighborhood using distances We may define neighborhood of a pixel using distances: N(p) = {p1 = (x1 , y1 ) |d(p, p1 ) ≤ a}. Euclidean distance: d(p, p1 ) = (x − x1 )2 + (y − y1 )2 . In general, a distance function (metric) should satisfy: Positive Definiteness: d(p, p1 ) ≥ 0, = 0 iff p = p1 . Symmetry: d(p, p1 ) = d(p1 , p). Triangular inequality: d(p, p1 ) ≤ d(p, q) + d(q, p1 ). Examples: City block distance - d4 (p, p1 ) = |x − x1 | + |y − y1 | Chessboard distance - d8 (p, p1 ) = max{|x − x1 |, |y − y1 |} IT472 - DIP: Lecture 2 23/23
  • 75. Neighborhood using distances We may define neighborhood of a pixel using distances: N(p) = {p1 = (x1 , y1 ) |d(p, p1 ) ≤ a}. Euclidean distance: d(p, p1 ) = (x − x1 )2 + (y − y1 )2 . In general, a distance function (metric) should satisfy: Positive Definiteness: d(p, p1 ) ≥ 0, = 0 iff p = p1 . Symmetry: d(p, p1 ) = d(p1 , p). Triangular inequality: d(p, p1 ) ≤ d(p, q) + d(q, p1 ). Examples: City block distance - d4 (p, p1 ) = |x − x1 | + |y − y1 | Chessboard distance - d8 (p, p1 ) = max{|x − x1 |, |y − y1 |} IT472 - DIP: Lecture 2 23/23
  • 76. Neighborhood using distances We may define neighborhood of a pixel using distances: N(p) = {p1 = (x1 , y1 ) |d(p, p1 ) ≤ a}. Euclidean distance: d(p, p1 ) = (x − x1 )2 + (y − y1 )2 . In general, a distance function (metric) should satisfy: Positive Definiteness: d(p, p1 ) ≥ 0, = 0 iff p = p1 . Symmetry: d(p, p1 ) = d(p1 , p). Triangular inequality: d(p, p1 ) ≤ d(p, q) + d(q, p1 ). Examples: City block distance - d4 (p, p1 ) = |x − x1 | + |y − y1 | Chessboard distance - d8 (p, p1 ) = max{|x − x1 |, |y − y1 |} IT472 - DIP: Lecture 2 23/23
  • 77. Neighborhood using distances We may define neighborhood of a pixel using distances: N(p) = {p1 = (x1 , y1 ) |d(p, p1 ) ≤ a}. Euclidean distance: d(p, p1 ) = (x − x1 )2 + (y − y1 )2 . In general, a distance function (metric) should satisfy: Positive Definiteness: d(p, p1 ) ≥ 0, = 0 iff p = p1 . Symmetry: d(p, p1 ) = d(p1 , p). Triangular inequality: d(p, p1 ) ≤ d(p, q) + d(q, p1 ). Examples: City block distance - d4 (p, p1 ) = |x − x1 | + |y − y1 | Chessboard distance - d8 (p, p1 ) = max{|x − x1 |, |y − y1 |} IT472 - DIP: Lecture 2 23/23