Write a program to simulate image processing an image file

Assignment Help Computer Engineering
Reference no: EM131889412

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.

Reference no: EM131889412

Questions Cloud

Define the paraphrasing in brief : Provide a short summary discussing each phrase or term (two to three paragraphs for each) and provide an example of each as they pertain to writing.
Set up the business plan : How should this be conducted and what are the steps needed to set up the business plan?
Sorts the vector containing the lottery numbers : Sorts the vector containing the lottery numbers. Determines whether the player guessed the lottery numbers correctly.
Settle disputes between businesses : How can the settlement of a particular private dispute make a contribution to the business community as a whole?
Write a program to simulate image processing an image file : Image Processing - Blur an Image- Write a program to simulate image processing An image file is simulated by a 2D array of ints.
Organization investment in land : If the beginning appraised land value was $1,000,000, what increase in specific prices over general price level would be reported, stated in year-end dollars?
Considering adding new software title to those published : You are considering adding a new software title to those published by your highly successful software company.
What are the strategic issues for company : They're critical weaknesses that need to be corrected, opportunities that the company wants to take advantage of with its strengths, distinctive competencies.
Are good negotiators born or made : How can you make yourself a better negotiator? What skill sets do you need to accomplish in order to achieve this task?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Define the way in which a person writes or sends e-mails

explain a scenario in which someone displayed bad netiquette. How did someone react to receiving the email? what could the sender have done differently to display good netiquette.

  Sketch the power density of given function

Two narrowband noise processes have power spectral densities as shown in Fig. Express each of these in quadrature form.

  Build a java program that manipulates at least two objects

Create a Java program that manipulates at least two objects instantiated from the Dog class. Your class must include at least five private attributes, three setter and three getter methods which are the public interface and two constructors. All the ..

  Explains the importance of training and support

Write a 3-pages paper that explains the importance of training and support after software is implemented. Format your paper according to APA guidelines.

  Write down the number of hits that you received

Write down the number of hits that you received for each of these phrases. Find at least three Web sites that provide interesting information on one of topics.

  Describe uses for each of intellectual property protection

Give two examples of how a social pressure or need led to the development of a new information technology. Give two examples of how the adoption of a new information technology changed society.

  How are ip addresses used for communication purpose

How are IP addresses used for communication purpose over the internet. what are some of the future challenges faced with using IPv6

  Study on distributed system architectures

We have learned a lot in 15 years. We now know that we need to revisit Deutch's list. We are savvier on what it takes to implement a distributed system. Distributed System Architecture.

  Write down a program that inputs a word

Write down a program that inputs a word from the keyboard and determines the length of the word. Print the word using twice the length as the field width.

  Describe a hierarchical directory structure

Describe a hierarchical directory structure. What are its advantages and disadvantages compared with a graph directory structure?

  Talk about the different reasons why lte is better than 3g

talk about the various reasons why lte is better than 3g and various improvements of lte -- what they are -- are they

  Give the type of clip art found at the sites

search on the Internet for at least 2 additional sites other than Microsoft's that offer clip art, either free or for a price. If you have real-life or professional experience with clip art sites.

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