Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

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

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M92040618

Have any Question?


Related Questions in Computer Engineering

Could you please tell me how to solve the following stats

Could you please tell me how to solve the following stats questions? "Yearly return on common stocks are normally distributed with a mean of 12.4 percent and a standard deviation of 20.6 percent. You are allowed to use E ...

A bit-comparator is a combinational circuit with 2 inputs a

A Bit-Comparator is a combinational circuit with 2 inputs, A and B, and 3 outputs. L, E and G. Output L is 1 if A Output E is 1 if A = B, otherwise E is 0. Output G is 1 if A > B, otherwise G is 0. Show how the 2x4 decod ...

1 select one of the topics listed below and discuss

1. Select one of the topics listed below and discuss it. Describe an application that you have to solve by using at least 2 Excel functions. It can be Math, Statistics, Engineering, Financial, etc. Explain what Excel fun ...

Display the employee titles whose department is located in

Display the employee titles whose department is located in a secret cave.

Stacksthere are two main operations associated with stacks1

Stacks There are two main operations associated with stacks; 1) putting things on the stack which is referred to as push, 2) taking things from the stack which is referred to as pop. We can create a stack using linked li ...

The appendix to chapter one will be very useful in

The appendix to chapter one will be very useful in answering this question, if you need a refresher or introduction to regression analysis. The following equation is the regression results of a study on infant mortality ...

Determine whether or not the following claim is true for

Determine whether or not the following claim is true for all regular expressions r 1  and r 2 . The symbol ≡ stands for equivalence regular expressions in the sense that both expressions denote the same language. (a) (r ...

Problem belowwrite a program that uses a function that

Problem below: Write a program that uses a function that returns a number between 1 and 6. Use this function to simulate the roll of a die. Allow the user to specify the number of trials and then tabulate that number of ...

Question part 1 answer below question with atleast 350

Question: Part 1: answer below question with atleast 350 words in APA format no plagrism and also I need two professional refrences 1) What is the power of scenario planning Part 2: answer below question with atleast 350 ...

Question suppose that you are searching an unsorted array

Question : Suppose that you are searching an unsorted array of objects that might contain duplicates. Devise an algorithm that returns a list of the indices of all objects in the array that match a given object. If the d ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As