Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

PROJECT ASSIGNMENT: Image Processing - Blur an Image

Write a program to simulate image processing An image file is simulated by a 2D array of ints. Shell code is provided in HW5_image_shell.cpp. The program includes the following functions:

• Open an image file (input a 2D array of ints from a text file). The first two numbers from the file are the dimension of the image (2D array), the first number is height (# of rows) and the second number is width (# of columns). Next comes the 2D array stored in row order (row 0, row1, ...). There should be (# of rows) × (# of columns) integers. Sometimes an image file has been corrupted (not invalid dimension or not enough numbers in the file). You need to test and report such a file.

• Process an image file (blur the image).

• Print out blurred image on screen.

You need to add code to ADD #1-3:

• ADD #1: declaration of function blur
• ADD #2: implementation of function openOneImage. Your function should work as specified in the given declaration (pre, post conditions).
• ADD #3: implementation of function blur

Your .cpp file should also contain:

• Algorithms (pseudo code) for functions openOneImage and blur. Add them as block comments at the beginning of the source code file. If you choose to draw flowchart, include it in your HW document instead.

• Pre- and Post- condition comments for each function.

• /*IN*/, /*OUT*/, /*INOUT*/ comments to function parameters

You're not supposed to modify the given code in other unspecified manners.

Test your program with the four testing cases (four image?.txt files in HW5.zip) and provide screenshots of your running program. Explain how each testing case is different.

Save a copy of your regular project work before attempting the extra credit work. When completed, you need to submit two separate programs, one for the regular project and the other with the extra credit work.

Input image file:

Approach 2: pixels without certain neighbors are processed based on available neighbors

Blurred result:

Test your program with the four testing cases again and provide screenshots of your running program.

Write a paragraph or two explaining the changes you made to your project to implement approach 2.

Computer Engineering, Engineering

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

Have any Question?


Related Questions in Computer Engineering

Command to mail only the process id of running java program

Command to mail only the process ID of running Java program test to the email address (single line Unix)

Below is a simple data gird with a header

Below is a simple data gird with a header row. kim|taylor|clara|654 763 1345|75|2016-01-17|null|N|90.76|A jack|jenkins|joseph|630 654 0265|92|2016-11-30|null|Y|131.00|B Identify what rules would you apply for ensuring th ...

Understanding the digital revolution assignment - parchment

Understanding the Digital Revolution Assignment - Parchment Purgatory Overview - For this assignment, you will use skills acquired through practical laboratory exercises to automate a business process, and to visualize t ...

A bar wants to move into a new area they want to find out

A bar wants to move into a new area. They want to find out the average income of people in the area to set a price point. To estimate the income of the locals with an error of at most $5,000 at a 80% confidence level, wh ...

Question multiple users access a specific computer on the

Question: Multiple users access a specific computer on the network in ABC Inc. The users use the computer to access a remote FTP server. The computer runs the Windows Server OS. The network administrator wants user-speci ...

Q2 what layer uses encryptiondecryptiona what is

Q2. What layer uses encryption/decryption? a. What is encryption? Q3. What addressing system is used at Data Link layer? a. How long is the address? Is it Physical or logical? b. Is it unique or not unique?

Suppose i am designing a personnel database for a

Suppose I am designing a personnel database for a university. The university has three types of personnel: students, staff, and faculty. Here are the characteristics of the three groups: -All three groups have a name and ...

Suppose a record has the following fields in this order a

Suppose a record has the following fields in this order: A character string of length 15, an integer of 2 bytes, a SQL date, and a SQL time (no decimal point). How many bytes does the record take if: Fields can start at ...

Question suppose you want to achieve a speedup of 90 times

Question : Suppose you want to achieve a speedup of 90 times faster with 100 processors. What percentage of the original computation can be sequential? Assume one byte data value is 1101, 1000(binary). When we decode the ...

Discuss the concept of intrinsic value and how it is

Discuss the concept of intrinsic value and how it is determined. Include a real-world example.

  • 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