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

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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