Starting from:

$30

CPE212-Project 1 Solved

Project01 Description
For this project, you will complete the provided partial C++ program by implementing 4 functions to perform simple image processing operations on images stored as 15x15, two dimensional arrays of integers.  The image processing operations are:

 

1)     Load Image

2)     Flip Image 3) Transpose

4) Rotate Image

 

The rotate image functions will be given a direction of clockwise or counter clockwise, while the flip image will be given a direction of vertical or horizontal.  You will implement these functions in the project01.cpp file.  Prototypes for these functions have already been provide in the project01.hpp file. 

 

The main() function has already been implemented for you so that you have a common way to test your code.  The main() function will scan your input file and execute it appropriately.  All program output is performed by the code in main.cpp.  
 

Hint: Make your output match the provided solution.

Running the Sample Solution on blackhawk

The best description of what your code should do is the Sample Solution for the project.  

Run the sample solution by typing the following at blackhawk terminal window command prompt

/home/facstaff/taf0004/CPE212SP20/Project01/project01   imagefilename where imagefilename is the name of one of the provided input files (for example, p01input1.txt).  Your current working directory must contain the input files for this to work.

Unzipping Sample Input Files on blackhawk

Use the Firefox browser to access Angel and download main.cpp and the sample input files into your Project01 directory.  At terminal window prompt, use the unzip utility to uncompress the files.  

 

For example:  unzip  NameOfZipFileHere to unzip the files into your current directory.

Since this project is worth ten points, you have been given five input files (which utilize the three image files) to test your program.   

Running the Preview Script on blackhawk

Run the preview script by typing the following in a blackhawk terminal window command prompt

/home/facstaff/taf0004/CPE212SP20/Project01/preview01.bash
This script will run both the Sample Solution AND your project01 executable program on the complete set of input files, and it compares the outputs of the two programs line by line to identify errors in your program's outputs.  Make sure that the output of your program exactly matches the output of the Sample Solution.

 

             

Project01 Compilation Instructions
This project consists of two C++ files and one header: main.cpp, project01.cpp and project01.hpp.  All three have been provided, along with a makefile to help you compile your program.  A makefile contains the sequence of commands required to compile and assemble (link) your executable program.  The provided file works on Blackhawk.  For this assignment, you will need to use the following command line command to build your program

 

make

 

which will create an executable named project01 from the provided files.  If your program compiles successfully, you can then type: 

./project01 NameOfInput.txt

To execute the program assuming that the input file is located in the same directory.  Example:

 

./project01 p01input1.txt

  

Project 01 Specifications
 

 

 

 

Project01 Sample (15x15) image file
 

 

 

More products