Create original input image with quadrants of decomposition

Assignment Help Computer Engineering
Reference no: EM131285929

Digital Image Processing - CSCI 4301

Project 07. Image Representation using Q-trees

Complete the Quad tree representation project posted in the source code tab by providing the functionality for creating the original binary image based on its given quad tree representation from two text files (as shown below). By doing this, you will have both decomposition (which I provided: the tree representation as well as the object representation (two strings)) and the reconstruction, which you will create in this project.

As the example below shows, given a binary tree, quad tree representation decomposes the images into four quadrants as long as the quadrant is not uniform (the predicate tests the current quadrant for that condition). The output of the decomposition is the set of two codes shown below the tree.

1553_Figure1.jpg

As a test case, you can use the following outputs from my part of the code,
treeRepString2 = "01011011111101111"
objectRepString2 = "0000001111101"
and with a given size that you provide, you should be able to reproduce the binary image:

1449_Figure2.jpg

Notice that I appended a 0 at the beginning of the tree code to get the decomposition started. It is either a typo in the ppt slides, or that they are assuming non-trivial case (i.e., we will always decompose at least once). It would be more prudent to have it explicitly in the output, which is what I did and assumed for the two parts of the project.
Your code should provide the reconstruction: it should take the representations, the two strings, and produce an image out of them. The only additional parameter would be the image size (which you should assume to be square).

Typically the output strings would come from a file, instead of just being given as string objects. Make sure to add the following functionalities:

- Read the image representation information from two files: fname_tree.txt & fname_object.txt.

- Create the original input image with the quadrants of decomposition delineated. Here is an example of one of a sample real-life example. The two input text files are not shown, but the produced images are as below.

2250_Figure3.jpg

This project will be graded as run/no-run. So make sure it runs and produces the two desired images.

Attachment:- Project071.rar

Reference no: EM131285929

Questions Cloud

What is the marketing challenge ford fiesta is solving : What is the marketing challenge Ford Fiesta is solving with the campaign? What part of the customer journey has the Ford Fiesta campaign been designed to impact?
Explain the existence of an optimum receiver temperature : Calculate the optimum receiver temperature using Eq. (9.10) under reasonable assumptions.
How the social environment influences individuals : how the social environment influences individuals and their behavior.
Describe the principle of operation of solar ponds : Explain the concept of electric potential, chemical potential, and electrochemical potential and the differences among them.
Create original input image with quadrants of decomposition : Read the image representation information from two files: fname_tree.txt & fname_object.txt and create the original input image with the quadrants of decomposition delineated. Here is an example of one of a sample real-life example.
Define district energy systems and explain their benefit : List some technical characteristics of district energy systems.
Determine the efficiency of the overall system : Consider the general system from Fig. 10.3. Make reasonable assumptions regarding the efficiency of each unit and then determine the efficiency of the overall system.
What strategy would you use to reduce invoice errors : What is the nature of the effects of the factors studied in this experiment? What strategy would you use to reduce invoice errors, given the results of this experiment?
Describe a stressful period in your life : Describe a stressful period in your life. What factors contributed to the stress? Regarding the strategies for managing stress that you have studied in this module, which strategies would be most effective for you?

Reviews

len1285929

11/22/2016 6:05:43 AM

the assignment is attached and so is the source code in word documents. Complete the Quad tree representation project posted in the source code tab by providing the functionality for creating the original binary image based on its given quad tree representation from two text files (as shown below). By doing this, you will have both decomposition (which I provided: the tree representation as well as the object representation (two strings)) and the reconstruction, which you will create in this project.

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd