SlideShare a Scribd company logo
Data Structures
in Image Analysis
    Ashish Khare
   Computer program = data + algorithm

   Data organization can considerably affect the
    simplicity of the selection and the implementation
    of an algorithm. The choice of data structures is
    fundamental when writing a program
Levels of Image Data Representation
   Iconic images - consists of images containing
    original data; integer matrices with data about pixel
    brightness.
       E.g., outputs of pre-processing operations (e.g., filtration or
        edge sharpening) used for highlighting some aspects.

   Segmented images - parts of the image are joined
    into groups that probably belong to the same
    objects.
       It is useful to know something about the application domain
        while doing image segmentation.

   Geometric representations - hold knowledge
    about 2D and 3D shapes.
       The quantification of a shape is very difficult but very
        important.
   Relational models - give the ability to treat data
    more efficiently and at a higher level of abstraction.

   A priori knowledge about the case being solved is
    usually used in processing of this kind.
       Example - counting planes standing at an airport using
        satellite images

   A priori knowledge
       position of the airport (e.g., from a map)
       relations to other objects in the image ( e.g., to roads,
        lakes, urban areas)
       geometric models of planes for which we are searching
       etc.
Traditional Image Data Structures
   matrices,
   chains,
   graphs,
   lists of object properties,
   relational databases,
   etc.

   used not only for the direct representation of
    image information, also a basis of more complex
    hierarchical methods of image representation.
Matrices
   Most common data structure for low level image
    representation Elements of the matrix are integer
    numbers.

   Image data of this kind are usually the direct
    output of the image capturing device, e.g., a
    scanner.
Chains
   Chains are used for description of object borders

   Symbols in a chain usually correspond to the
    neighborhood of primitives in the image.
   If local information is needed from the chain code,
    it is necessary to search through the whole chain
    systematically.

   A sample pair of symbols in the chain must be
    found - simple.

   If global information is needed, situation is much
    more difficult.

   Questions about the shape of the border
    represented by chain codes are not trivial.
   Chains can be represented using static data
    structures (e.g., 1D arrays); their size is the
    longest length of the chain expected.

   Dynamic data structures are more advantageous
    to save memory
Run Length Coding
   Often used to represent strings of symbols in an
    image matrix (e.g., FAX machines use it).

   In binary images, run length coding records only
    areas that belong to the object in the image; the
    area is then represented as a list of lists.

   Each row of the image is described by a sublist, the
    first element of which is the row number.

   Subsequent terms are co-ordinate pairs; the first
    element of a pair is the beginning of a run and the
    second is the end.
   There can be several such sequences in the row.




   Run length coding can be used for an image with
    multiple brightness levels as well - in the sublist,
    sequence brightness must also be recorded.
Topological Data Structures
   Image description as a set of elements and their
    relations.
       Graphs
       Evaluated graphs
       Region adjacency graphs
Relational Structures
   Information is then concentrated in relations
    between semantically important parts of the image
    - objects - that are the result of segmentation

   Appropriate for higher level image understanding
Hierarchical Data Structures
   Computer vision is by its nature very
    computationally expensive, if for no other reason
    than the amount of data to be processed.

   One of the solutions is using parallel computers =
    brute force

   Many computer vision problems are difficult to divide
    among processors, or decompose in any way.

   Hierarchical data structures make it possible to use
    algorithms which decide a strategy for processing on
    the basis of relatively small quantities of data.
   They work at the finest resolution only with those
    parts of the image for which it is necessary, using
    knowledge instead of brute force to ease and
    speed up the processing.

   Two typical structures –
       pyramids
       quadtrees.
Pyramids
   M-pyramid - Matrix pyramid ... is a sequence {ML,
    ML-1, ..., M0} of images

   ML has the same dimensions and elements as the
    original image

   Mi-1 is derived from the Mi by reducing the
    resolution by one half.

   Square matrices with dimensions equal to powers of
    two required - M0 corresponds to one pixel only.

   M-pyramids are used when it is necessary to work
    with an image at different resolutions
    simultaneously.
   An image having one degree smaller resolution in a
    pyramid contains four times less data, so that it is
    processed approximately four times as quickly.

   Often it is advantageous to use several resolutions
    simultaneously rather than to choose just one image
    from the M-pyramid.

   Such images can be represented using tree
    pyramids ... T-pyramids.
   T-pyramid is a tree, every node of the T-pyramid
    has 4 child nodes
   The number of image pixels used by an M-pyramid
    for storing all matrices is



   The T-pyramid is represented in memory similarly.

   Arcs of the tree need not be recorded because
    addresses of the both child and parent nodes are
    easy to compute due to the regularity of the
    structure. An algorithm for the effective creation
Quadtrees
   Quadtrees are modifications of T-pyramids.

   Every node of the tree except the leaves has four
    children (NW: north-western, NE: north-eastern,
    SW: south-western, SE: south-eastern).

   Similarly to T-pyramids, the image is divided into
    four quadrants at each hierarchical level, however it
    is not necessary to keep nodes at all levels.

   If a parent node has four children of the same value
    (e.g., brightness), it is not necessary to record
    them.
   Problems associated with hierarchical image
    representation:
       Dependence on the position, orientation and relative
        size of objects.

       Two similar images with just very small differences can
        have very different pyramid or quadtree
        representations.

       Even two images depicting the same, slightly shifted
        scene, can haveentirely different representations.

More Related Content

What's hot

Noise Models
Noise ModelsNoise Models
Noise Models
Sardar Alam
 
Simultaneous Smoothing and Sharpening of Color Images
Simultaneous Smoothing and Sharpening of Color ImagesSimultaneous Smoothing and Sharpening of Color Images
Simultaneous Smoothing and Sharpening of Color Images
Cristina Pérez Benito
 
Image feature extraction
Image feature extractionImage feature extraction
Image feature extractionRushin Shah
 
Image processing second unit Notes
Image processing second unit NotesImage processing second unit Notes
Image processing second unit Notes
AAKANKSHA JAIN
 
Image Restoration And Reconstruction
Image Restoration And ReconstructionImage Restoration And Reconstruction
Image Restoration And Reconstruction
Amnaakhaan
 
6 spatial filtering p2
6 spatial filtering p26 spatial filtering p2
6 spatial filtering p2Gichelle Amon
 
Features image processing and Extaction
Features image processing and ExtactionFeatures image processing and Extaction
Features image processing and Extaction
Ali A Jalil
 
Bit plane slicing
Bit plane slicingBit plane slicing
Bit plane slicing
Asad Ali
 
Chapter 9 morphological image processing
Chapter 9   morphological image processingChapter 9   morphological image processing
Chapter 9 morphological image processing
Ahmed Daoud
 
Image sampling and quantization
Image sampling and quantizationImage sampling and quantization
Image sampling and quantization
BCET, Balasore
 
Edge Detection and Segmentation
Edge Detection and SegmentationEdge Detection and Segmentation
Edge Detection and Segmentation
A B Shinde
 
Color Image Processing
Color Image ProcessingColor Image Processing
Color Image Processing
kiruthiammu
 
image enhancement
 image enhancement image enhancement
image enhancement
Rajendra Prasad
 
Hidden surface removal
Hidden surface removalHidden surface removal
Hidden surface removal
Ankit Garg
 
Statistical Pattern recognition(1)
Statistical Pattern recognition(1)Statistical Pattern recognition(1)
Statistical Pattern recognition(1)Syed Atif Naseem
 
Image Enhancement in Spatial Domain
Image Enhancement in Spatial DomainImage Enhancement in Spatial Domain
Image Enhancement in Spatial Domain
DEEPASHRI HK
 
Computer graphics iv unit
Computer graphics iv unitComputer graphics iv unit
Computer graphics iv unit
aravindangc
 
Smoothing in Digital Image Processing
Smoothing in Digital Image ProcessingSmoothing in Digital Image Processing
Smoothing in Digital Image Processing
Pallavi Agarwal
 
Histogram Processing
Histogram ProcessingHistogram Processing
Histogram Processing
Amnaakhaan
 
Artificial Intelligence Notes Unit 1
Artificial Intelligence Notes Unit 1 Artificial Intelligence Notes Unit 1
Artificial Intelligence Notes Unit 1
DigiGurukul
 

What's hot (20)

Noise Models
Noise ModelsNoise Models
Noise Models
 
Simultaneous Smoothing and Sharpening of Color Images
Simultaneous Smoothing and Sharpening of Color ImagesSimultaneous Smoothing and Sharpening of Color Images
Simultaneous Smoothing and Sharpening of Color Images
 
Image feature extraction
Image feature extractionImage feature extraction
Image feature extraction
 
Image processing second unit Notes
Image processing second unit NotesImage processing second unit Notes
Image processing second unit Notes
 
Image Restoration And Reconstruction
Image Restoration And ReconstructionImage Restoration And Reconstruction
Image Restoration And Reconstruction
 
6 spatial filtering p2
6 spatial filtering p26 spatial filtering p2
6 spatial filtering p2
 
Features image processing and Extaction
Features image processing and ExtactionFeatures image processing and Extaction
Features image processing and Extaction
 
Bit plane slicing
Bit plane slicingBit plane slicing
Bit plane slicing
 
Chapter 9 morphological image processing
Chapter 9   morphological image processingChapter 9   morphological image processing
Chapter 9 morphological image processing
 
Image sampling and quantization
Image sampling and quantizationImage sampling and quantization
Image sampling and quantization
 
Edge Detection and Segmentation
Edge Detection and SegmentationEdge Detection and Segmentation
Edge Detection and Segmentation
 
Color Image Processing
Color Image ProcessingColor Image Processing
Color Image Processing
 
image enhancement
 image enhancement image enhancement
image enhancement
 
Hidden surface removal
Hidden surface removalHidden surface removal
Hidden surface removal
 
Statistical Pattern recognition(1)
Statistical Pattern recognition(1)Statistical Pattern recognition(1)
Statistical Pattern recognition(1)
 
Image Enhancement in Spatial Domain
Image Enhancement in Spatial DomainImage Enhancement in Spatial Domain
Image Enhancement in Spatial Domain
 
Computer graphics iv unit
Computer graphics iv unitComputer graphics iv unit
Computer graphics iv unit
 
Smoothing in Digital Image Processing
Smoothing in Digital Image ProcessingSmoothing in Digital Image Processing
Smoothing in Digital Image Processing
 
Histogram Processing
Histogram ProcessingHistogram Processing
Histogram Processing
 
Artificial Intelligence Notes Unit 1
Artificial Intelligence Notes Unit 1 Artificial Intelligence Notes Unit 1
Artificial Intelligence Notes Unit 1
 

Viewers also liked

process management
 process management process management
process managementAshish Kumar
 
Computer architecture
Computer architecture Computer architecture
Computer architecture Ashish Kumar
 
Tree representation in map reduce world
Tree representation  in map reduce worldTree representation  in map reduce world
Tree representation in map reduce world
Yu Liu
 
Unit iii(dsc++)
Unit iii(dsc++)Unit iii(dsc++)
Unit iii(dsc++)
Durga Devi
 
Compact binary-tree-representation-of-logic-function-with-enhanced-throughput-
Compact binary-tree-representation-of-logic-function-with-enhanced-throughput-Compact binary-tree-representation-of-logic-function-with-enhanced-throughput-
Compact binary-tree-representation-of-logic-function-with-enhanced-throughput-Cemal Ardil
 
Matlab Assignment JK Institute
Matlab Assignment JK InstituteMatlab Assignment JK Institute
Matlab Assignment JK InstituteOm Prakash
 
project on OSPF
project on OSPFproject on OSPF
project on OSPFOm Prakash
 
Introduction image processing
Introduction image processingIntroduction image processing
Introduction image processingAshish Kumar
 
Image trnsformations
Image trnsformationsImage trnsformations
Image trnsformationsJohn Williams
 
Digitized images and
Digitized images andDigitized images and
Digitized images andAshish Kumar
 
Image pre processing-restoration
Image pre processing-restorationImage pre processing-restoration
Image pre processing-restorationAshish Kumar
 

Viewers also liked (15)

process management
 process management process management
process management
 
Computer architecture
Computer architecture Computer architecture
Computer architecture
 
Lecture2 color
Lecture2 colorLecture2 color
Lecture2 color
 
Tree representation in map reduce world
Tree representation  in map reduce worldTree representation  in map reduce world
Tree representation in map reduce world
 
Unit iii(dsc++)
Unit iii(dsc++)Unit iii(dsc++)
Unit iii(dsc++)
 
Compact binary-tree-representation-of-logic-function-with-enhanced-throughput-
Compact binary-tree-representation-of-logic-function-with-enhanced-throughput-Compact binary-tree-representation-of-logic-function-with-enhanced-throughput-
Compact binary-tree-representation-of-logic-function-with-enhanced-throughput-
 
Matlab Assignment JK Institute
Matlab Assignment JK InstituteMatlab Assignment JK Institute
Matlab Assignment JK Institute
 
07object3d
07object3d07object3d
07object3d
 
project on OSPF
project on OSPFproject on OSPF
project on OSPF
 
Introduction image processing
Introduction image processingIntroduction image processing
Introduction image processing
 
Pixelrelationships
PixelrelationshipsPixelrelationships
Pixelrelationships
 
Image trnsformations
Image trnsformationsImage trnsformations
Image trnsformations
 
Digitized images and
Digitized images andDigitized images and
Digitized images and
 
Image pre processing-restoration
Image pre processing-restorationImage pre processing-restoration
Image pre processing-restoration
 
message passing
 message passing message passing
message passing
 

Similar to Data structures

Geoinformatics.pptx
Geoinformatics.pptxGeoinformatics.pptx
Geoinformatics.pptx
jatinbagale2610
 
R-Tree Implementation of Image Databases
R-Tree Implementation of Image DatabasesR-Tree Implementation of Image Databases
R-Tree Implementation of Image Databases
sipij
 
Data models in geographical information system(GIS)
Data models in geographical information system(GIS)Data models in geographical information system(GIS)
Data models in geographical information system(GIS)
Pramoda Raj
 
Data Structures unit I Introduction - data types
Data Structures unit I Introduction - data typesData Structures unit I Introduction - data types
Data Structures unit I Introduction - data types
AmirthaVarshini80
 
Four data models in GIS
Four data models in GISFour data models in GIS
Four data models in GIS
Prof. A.Balasubramanian
 
Geographical Information System (GIS)
Geographical Information System (GIS)Geographical Information System (GIS)
Geographical Information System (GIS)
Malla Reddy University
 
introduction to geographical information system
introduction to geographical information systemintroduction to geographical information system
introduction to geographical information system
DrVenkateswarluGogan1
 
regions
regionsregions
regions
mjbahmani
 
International Journal of Engineering Research and Development
International Journal of Engineering Research and DevelopmentInternational Journal of Engineering Research and Development
International Journal of Engineering Research and Development
IJERD Editor
 
Different Image Segmentation Techniques for Dental Image Extraction
Different Image Segmentation Techniques for Dental Image ExtractionDifferent Image Segmentation Techniques for Dental Image Extraction
Different Image Segmentation Techniques for Dental Image Extraction
IJERA Editor
 
Introducing the Concept of Back-Inking as an Efficient Model for Document Ret...
Introducing the Concept of Back-Inking as an Efficient Model for Document Ret...Introducing the Concept of Back-Inking as an Efficient Model for Document Ret...
Introducing the Concept of Back-Inking as an Efficient Model for Document Ret...
IJITCA Journal
 
Raster data and Vector data
Raster data and Vector dataRaster data and Vector data
Raster data and Vector data
Reham Maher El-Safarini
 
Template Matching - Pattern Recognition
Template Matching - Pattern RecognitionTemplate Matching - Pattern Recognition
Template Matching - Pattern Recognition
Mustafa Salam
 
Raster data model
Raster data modelRaster data model
Raster data model
Pramoda Raj
 
Raster data model
Raster data modelRaster data model
Raster data model
Pramoda Raj
 
An Hypergraph Object Oriented Model For Image Segmentation And Annotation
An Hypergraph Object Oriented Model For Image Segmentation And AnnotationAn Hypergraph Object Oriented Model For Image Segmentation And Annotation
An Hypergraph Object Oriented Model For Image Segmentation And Annotation
Crystal Sanchez
 
Unit 54 Digital Graphics
Unit 54 Digital GraphicsUnit 54 Digital Graphics
Unit 54 Digital Graphics
Carla Appleby
 
maths mini project ( applictions of quadratic forms and SVD ).ppt
maths mini project ( applictions of quadratic forms and SVD ).pptmaths mini project ( applictions of quadratic forms and SVD ).ppt
maths mini project ( applictions of quadratic forms and SVD ).ppt
ManavPatane
 
Scattered gis handbook
Scattered gis handbookScattered gis handbook
Scattered gis handbook
Waleed Liaqat
 

Similar to Data structures (20)

Geoinformatics.pptx
Geoinformatics.pptxGeoinformatics.pptx
Geoinformatics.pptx
 
R-Tree Implementation of Image Databases
R-Tree Implementation of Image DatabasesR-Tree Implementation of Image Databases
R-Tree Implementation of Image Databases
 
Data models in geographical information system(GIS)
Data models in geographical information system(GIS)Data models in geographical information system(GIS)
Data models in geographical information system(GIS)
 
Data Structures unit I Introduction - data types
Data Structures unit I Introduction - data typesData Structures unit I Introduction - data types
Data Structures unit I Introduction - data types
 
Four data models in GIS
Four data models in GISFour data models in GIS
Four data models in GIS
 
Geographical Information System (GIS)
Geographical Information System (GIS)Geographical Information System (GIS)
Geographical Information System (GIS)
 
introduction to geographical information system
introduction to geographical information systemintroduction to geographical information system
introduction to geographical information system
 
Pca analysis
Pca analysisPca analysis
Pca analysis
 
regions
regionsregions
regions
 
International Journal of Engineering Research and Development
International Journal of Engineering Research and DevelopmentInternational Journal of Engineering Research and Development
International Journal of Engineering Research and Development
 
Different Image Segmentation Techniques for Dental Image Extraction
Different Image Segmentation Techniques for Dental Image ExtractionDifferent Image Segmentation Techniques for Dental Image Extraction
Different Image Segmentation Techniques for Dental Image Extraction
 
Introducing the Concept of Back-Inking as an Efficient Model for Document Ret...
Introducing the Concept of Back-Inking as an Efficient Model for Document Ret...Introducing the Concept of Back-Inking as an Efficient Model for Document Ret...
Introducing the Concept of Back-Inking as an Efficient Model for Document Ret...
 
Raster data and Vector data
Raster data and Vector dataRaster data and Vector data
Raster data and Vector data
 
Template Matching - Pattern Recognition
Template Matching - Pattern RecognitionTemplate Matching - Pattern Recognition
Template Matching - Pattern Recognition
 
Raster data model
Raster data modelRaster data model
Raster data model
 
Raster data model
Raster data modelRaster data model
Raster data model
 
An Hypergraph Object Oriented Model For Image Segmentation And Annotation
An Hypergraph Object Oriented Model For Image Segmentation And AnnotationAn Hypergraph Object Oriented Model For Image Segmentation And Annotation
An Hypergraph Object Oriented Model For Image Segmentation And Annotation
 
Unit 54 Digital Graphics
Unit 54 Digital GraphicsUnit 54 Digital Graphics
Unit 54 Digital Graphics
 
maths mini project ( applictions of quadratic forms and SVD ).ppt
maths mini project ( applictions of quadratic forms and SVD ).pptmaths mini project ( applictions of quadratic forms and SVD ).ppt
maths mini project ( applictions of quadratic forms and SVD ).ppt
 
Scattered gis handbook
Scattered gis handbookScattered gis handbook
Scattered gis handbook
 

More from Ashish Kumar

Introduction vision
Introduction visionIntroduction vision
Introduction visionAshish Kumar
 
Image pre processing
Image pre processingImage pre processing
Image pre processingAshish Kumar
 
Image pre processing - local processing
Image pre processing - local processingImage pre processing - local processing
Image pre processing - local processingAshish Kumar
 
Enhancement in spatial domain
Enhancement in spatial domainEnhancement in spatial domain
Enhancement in spatial domainAshish Kumar
 
Enhancement in frequency domain
Enhancement in frequency domainEnhancement in frequency domain
Enhancement in frequency domainAshish Kumar
 
resource management
  resource management  resource management
resource managementAshish Kumar
 
distributed shared memory
 distributed shared memory distributed shared memory
distributed shared memoryAshish Kumar
 
remote procedure calls
  remote procedure calls  remote procedure calls
remote procedure callsAshish Kumar
 
Introduction image processing
Introduction image processingIntroduction image processing
Introduction image processingAshish Kumar
 
video compression techique
video compression techiquevideo compression techique
video compression techiqueAshish Kumar
 
online game over cryptography
online game over cryptographyonline game over cryptography
online game over cryptography
Ashish Kumar
 
MHEG
MHEGMHEG

More from Ashish Kumar (17)

Introduction vision
Introduction visionIntroduction vision
Introduction vision
 
Image pre processing
Image pre processingImage pre processing
Image pre processing
 
Image pre processing - local processing
Image pre processing - local processingImage pre processing - local processing
Image pre processing - local processing
 
Enhancement in spatial domain
Enhancement in spatial domainEnhancement in spatial domain
Enhancement in spatial domain
 
Enhancement in frequency domain
Enhancement in frequency domainEnhancement in frequency domain
Enhancement in frequency domain
 
Lecture2 light
Lecture2 lightLecture2 light
Lecture2 light
 
resource management
  resource management  resource management
resource management
 
distributed shared memory
 distributed shared memory distributed shared memory
distributed shared memory
 
remote procedure calls
  remote procedure calls  remote procedure calls
remote procedure calls
 
color
colorcolor
color
 
Introduction image processing
Introduction image processingIntroduction image processing
Introduction image processing
 
system design
system designsystem design
system design
 
video compression techique
video compression techiquevideo compression techique
video compression techique
 
Compression
CompressionCompression
Compression
 
1.animation
1.animation1.animation
1.animation
 
online game over cryptography
online game over cryptographyonline game over cryptography
online game over cryptography
 
MHEG
MHEGMHEG
MHEG
 

Data structures

  • 1. Data Structures in Image Analysis Ashish Khare
  • 2. Computer program = data + algorithm  Data organization can considerably affect the simplicity of the selection and the implementation of an algorithm. The choice of data structures is fundamental when writing a program
  • 3. Levels of Image Data Representation  Iconic images - consists of images containing original data; integer matrices with data about pixel brightness.  E.g., outputs of pre-processing operations (e.g., filtration or edge sharpening) used for highlighting some aspects.  Segmented images - parts of the image are joined into groups that probably belong to the same objects.  It is useful to know something about the application domain while doing image segmentation.  Geometric representations - hold knowledge about 2D and 3D shapes.  The quantification of a shape is very difficult but very important.
  • 4. Relational models - give the ability to treat data more efficiently and at a higher level of abstraction.  A priori knowledge about the case being solved is usually used in processing of this kind.  Example - counting planes standing at an airport using satellite images  A priori knowledge  position of the airport (e.g., from a map)  relations to other objects in the image ( e.g., to roads, lakes, urban areas)  geometric models of planes for which we are searching  etc.
  • 5. Traditional Image Data Structures  matrices,  chains,  graphs,  lists of object properties,  relational databases,  etc.  used not only for the direct representation of image information, also a basis of more complex hierarchical methods of image representation.
  • 6. Matrices  Most common data structure for low level image representation Elements of the matrix are integer numbers.  Image data of this kind are usually the direct output of the image capturing device, e.g., a scanner.
  • 7. Chains  Chains are used for description of object borders  Symbols in a chain usually correspond to the neighborhood of primitives in the image.
  • 8. If local information is needed from the chain code, it is necessary to search through the whole chain systematically.  A sample pair of symbols in the chain must be found - simple.  If global information is needed, situation is much more difficult.  Questions about the shape of the border represented by chain codes are not trivial.
  • 9. Chains can be represented using static data structures (e.g., 1D arrays); their size is the longest length of the chain expected.  Dynamic data structures are more advantageous to save memory
  • 10. Run Length Coding  Often used to represent strings of symbols in an image matrix (e.g., FAX machines use it).  In binary images, run length coding records only areas that belong to the object in the image; the area is then represented as a list of lists.  Each row of the image is described by a sublist, the first element of which is the row number.  Subsequent terms are co-ordinate pairs; the first element of a pair is the beginning of a run and the second is the end.
  • 11. There can be several such sequences in the row.  Run length coding can be used for an image with multiple brightness levels as well - in the sublist, sequence brightness must also be recorded.
  • 12. Topological Data Structures  Image description as a set of elements and their relations.  Graphs  Evaluated graphs  Region adjacency graphs
  • 13. Relational Structures  Information is then concentrated in relations between semantically important parts of the image - objects - that are the result of segmentation  Appropriate for higher level image understanding
  • 14.
  • 15. Hierarchical Data Structures  Computer vision is by its nature very computationally expensive, if for no other reason than the amount of data to be processed.  One of the solutions is using parallel computers = brute force  Many computer vision problems are difficult to divide among processors, or decompose in any way.  Hierarchical data structures make it possible to use algorithms which decide a strategy for processing on the basis of relatively small quantities of data.
  • 16. They work at the finest resolution only with those parts of the image for which it is necessary, using knowledge instead of brute force to ease and speed up the processing.  Two typical structures –  pyramids  quadtrees.
  • 17. Pyramids  M-pyramid - Matrix pyramid ... is a sequence {ML, ML-1, ..., M0} of images  ML has the same dimensions and elements as the original image  Mi-1 is derived from the Mi by reducing the resolution by one half.  Square matrices with dimensions equal to powers of two required - M0 corresponds to one pixel only.  M-pyramids are used when it is necessary to work with an image at different resolutions simultaneously.
  • 18. An image having one degree smaller resolution in a pyramid contains four times less data, so that it is processed approximately four times as quickly.  Often it is advantageous to use several resolutions simultaneously rather than to choose just one image from the M-pyramid.  Such images can be represented using tree pyramids ... T-pyramids.
  • 19. T-pyramid is a tree, every node of the T-pyramid has 4 child nodes
  • 20. The number of image pixels used by an M-pyramid for storing all matrices is  The T-pyramid is represented in memory similarly.  Arcs of the tree need not be recorded because addresses of the both child and parent nodes are easy to compute due to the regularity of the structure. An algorithm for the effective creation
  • 21. Quadtrees  Quadtrees are modifications of T-pyramids.  Every node of the tree except the leaves has four children (NW: north-western, NE: north-eastern, SW: south-western, SE: south-eastern).  Similarly to T-pyramids, the image is divided into four quadrants at each hierarchical level, however it is not necessary to keep nodes at all levels.  If a parent node has four children of the same value (e.g., brightness), it is not necessary to record them.
  • 22.
  • 23. Problems associated with hierarchical image representation:  Dependence on the position, orientation and relative size of objects.  Two similar images with just very small differences can have very different pyramid or quadtree representations.  Even two images depicting the same, slightly shifted scene, can haveentirely different representations.