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

  Baseline for the linux system

Describe briefly the purpose of the baseline. Explain the areas of system would you involve in the baseline for your Linux system?

  Write the same program using a for-loop

Write the same program using a for-loop - write the same program that will display only the even numbers and odd numbers from 1 to N.

  Create mini-python projects or programs and to run them in

create mini-python projects or programs and to run them in the python-idle environment. read chapters 15 from think

  Data planning and enterprise modelling

Describe the major differences between two approaches for data planning and enterprise modelling and examine the integration? Why do these two methodologies usually produce several results?

  Program program that converts eight (8) bit binary numbers

Write down a C++ program that converts eight (8) bit binary numbers to their decimal equivalents. The program should retrieve the binary numbers (one at a time) from a data file (use a long int for the variable that represents the binary number).

  Explaining the rsa

Using the RSA with p = 3, q = 11, e = 7: Explain the suitable value for d? Encode the message “cat” by encrypting each letter separately, i.e., by encrypting ASCII code of each letter.

  Design a sequential circuit whose state diagram is given

Design a sequential circuit whose state diagram is given in Fig. using a 3-bit register and a 16 x 4 ROM.

  Find significant inversions in the input sequence

offer an O(n*log(n)) algorithm to count the number of significant inversions in the input sequence.

  Rules of inference to show that the hypotheses

Use rules of inference to show that the hypotheses "If it does not rain or if it is not foggy, then the sailing race will be held and the lifesaving demonstration will go on,"

  What is complementing and why is it important

What is complementing and why is it important? How many bytes are in a kilobyte, megabyte, gigabyte, terabyte, and petabyte?

  Questionenlarge the size of the array to 25 driver will

questionenlarge the size of the array to 25. driver will start with 10 objects in it other than has provision for up to

  Question1 a multiprogramming operating system uses an

question1. a multiprogramming operating system uses an apportioning method and divides the 60 mb of existing memory

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