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

  Select one phase of the database life cycle and describe

per the text the database life cycle includes the database initial study database design implementation and loading

  How to measure performance in the unreal engine

Write a short report explaining how to measure performance in the Unreal Engine. After this, record and report the performance difference between 100 dynamic lights as opposed to 100 baked lights.

  Why the client receives both the web page

assume you click on a link within your Web browser to obtain a Web page. The IP address for the associated URL is not cached in your local host, so a DNS look-up is necessary to obtain the IP address.

  Briefly state what each method does at a high level

Briefly state what each method does at a high level. Assume that a reference to the head node containing data - recursive methods does on a chain of nodes.

  Why would an improvement of only ten percent occur

Why would an improvement of only 10% occur? Could it be that no improvement at all would occur? Explain.

  Compare and contrast phases steps techniques and deliverable

Compare and contrast phases, steps, techniques, and deliverables. What are the six general skills all project team members should have?

  Explain the itil framework minimize the impact of change

The ITIL framework evolved from the UK Government's efforts during the 1980s to document how successful organizations approached service management. In what ways can the ITIL® framework minimize the impact of change

  Drawbacks of supporting links to files that cross mount

explain the advantages and disadvantages of supporting links to files that cross mount points (that is, the file link refers to a file that is stored in a different volume).

  Locations characterize the under damped system

What pole locations characterize the under damped system, (2) the over damped system, and (3) the critically damped system?

  Write down a code segment using a while loop

Write a code segment using a as loop that outputs the numbers from -10 to 10.

  Program to generate professor rating class

Write down the program which generates a Professor Rating class containing of the professor ID and three ratings. The three ratings are utilized to evaluate the easiness, helpfulness, and clarity.

  Questionthink of a principle for creating a database and

questionthink of a principle for creating a database and illustrate the database. clarify why you would want to use a

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