[Solved]1 System Must Able Read Pgm Image File Processing Including Pixel User Prompted Input Fil Q37186025
write the program in C++
1. The system must be able to read in a PGM image file for processing (including the pixel a. The user should be prompted for an input filename of no greater than 31 characters. a. The user should be prompted for an output filename of no greater than 31 data in a dynamically-allocated two-dimensional array 2. The system must be able to write out a PGM image file for viewing characters. The original (input) file should remain unchanged. b. The output file should contain the current state of the manipulated image upon writing (i.e. include any rotations, flips, and/or changes in dimensions) You are to implement a program for performing simple image manipulations on an image file. For this project, you will need to utilize the concepts of arrays and object creation that have been discussed in class. The list of requirements and constraints for the system are as follows: 1. The system must be able to read in a PGM image file for processing (including the pixel data in a dynamically-allocated two-dimensional array The user should be prompted for an input filename of no greater than 31 characters. a. The user should be prompted for an output filename of no greater than 31 b. The output file should contain the current state of the manipulated image upon a. 2. The system must be able to write out a PGM image file for viewing characters. The original (input) file should remain unchanged. writing i.e. include any rotations, flips, and/or changes in dimensions) 4. The system must be able to flip an image vertically (ie. about its x-axis). This is the same 5. The system must be able to flip an image horizontally (i.e. about its y-axis). This is the 3. The system must be able to rotate an image 90°, 180°, and 270 clockwise axis that would change an M to something similar to a ‘W same axis that would change an ‘E’ to something similar to a 3′ supplied threshold value 6. The system must be able to convert the grayscale image to b ack and white, using a user a. This algorithm should change values less than or equal to the threshold to 0, while changing values greater than the threshold to the max grayscale value encoded in the file 7. The system must contain a text-based UI to allow a user to load an image, rotate an image, flip an image horizontally, flip an image vertically, convert an image to black and white, save the image to an output file, and to quit the application a. On startup, it’s okay to only ask for the name of an image file since none of the operations should be available until an image is loaded Show transcribed image text 1. The system must be able to read in a PGM image file for processing (including the pixel a. The user should be prompted for an input filename of no greater than 31 characters. a. The user should be prompted for an output filename of no greater than 31 data in a dynamically-allocated two-dimensional array 2. The system must be able to write out a PGM image file for viewing characters. The original (input) file should remain unchanged. b. The output file should contain the current state of the manipulated image upon writing (i.e. include any rotations, flips, and/or changes in dimensions)
You are to implement a program for performing simple image manipulations on an image file. For this project, you will need to utilize the concepts of arrays and object creation that have been discussed in class. The list of requirements and constraints for the system are as follows: 1. The system must be able to read in a PGM image file for processing (including the pixel data in a dynamically-allocated two-dimensional array The user should be prompted for an input filename of no greater than 31 characters. a. The user should be prompted for an output filename of no greater than 31 b. The output file should contain the current state of the manipulated image upon a. 2. The system must be able to write out a PGM image file for viewing characters. The original (input) file should remain unchanged. writing i.e. include any rotations, flips, and/or changes in dimensions) 4. The system must be able to flip an image vertically (ie. about its x-axis). This is the same 5. The system must be able to flip an image horizontally (i.e. about its y-axis). This is the 3. The system must be able to rotate an image 90°, 180°, and 270 clockwise axis that would change an M to something similar to a ‘W same axis that would change an ‘E’ to something similar to a 3′ supplied threshold value 6. The system must be able to convert the grayscale image to b ack and white, using a user a. This algorithm should change values less than or equal to the threshold to 0, while changing values greater than the threshold to the max grayscale value encoded in the file 7. The system must contain a text-based UI to allow a user to load an image, rotate an image, flip an image horizontally, flip an image vertically, convert an image to black and white, save the image to an output file, and to quit the application a. On startup, it’s okay to only ask for the name of an image file since none of the operations should be available until an image is loaded
Expert Answer
Answer to 1. The system must be able to read in a PGM image file for processing (including the pixel a. The user should be prompte… . . .
OR

