Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Composite Bitmap: This is a sode homework Repeatedly asks the user for a file name, until either the user input is just DONE or they

image text in transcribed

Composite Bitmap: This is a sode homework Repeatedly asks the user for a file name, until either the user input is just "DONE" or they have entered the maximum number of files allowed: 10 Print an error for any file name that has problems, including (1) the file doesn't exist or isnt a valid bitmap, or (2) isnt the same dimensions (width and height) as the first image loaded. Either error should disregard that file but continue with the other files. After evaluating all the file names provided, if the user did not provide file names of at least 2 images with the same dimensions, give the user an error message that a composite image cannot be created and do not do anything else in the program. .The program should work with any valid BMP images that are 24bit color depth and uncompressed, regardless of its size. Combine the valid images together to make a composite image. The composite image should take the average values of RGB components for each pixel. For example, if half the images have a black pixel at (row 0, column 0) and half the images have a white pixel at that same location, the composite image should have a medium-grey pixel at that same location. As it processes the images, your algorithm should print occasional progress updates, such as "Image When it is done, it should save the file as "composite-username bmp" but replace username with your own school username. 10 of 25 done." Technical requirements: Your program needs to be able to compile and run on Jaguar using the Bitmap header files without you making any changes to either bitmap.h or bitmap.cpp The program should never crash, even if a faulty or non-existent file name is provided. The original file should NOT be overwritten, unless its name was already composite The bitmaRh and bitmap.cpp are not required to create the above cod above instructions are clearlenough to create the code. the Composite Bitmap: This is a sode homework Repeatedly asks the user for a file name, until either the user input is just "DONE" or they have entered the maximum number of files allowed: 10 Print an error for any file name that has problems, including (1) the file doesn't exist or isnt a valid bitmap, or (2) isnt the same dimensions (width and height) as the first image loaded. Either error should disregard that file but continue with the other files. After evaluating all the file names provided, if the user did not provide file names of at least 2 images with the same dimensions, give the user an error message that a composite image cannot be created and do not do anything else in the program. .The program should work with any valid BMP images that are 24bit color depth and uncompressed, regardless of its size. Combine the valid images together to make a composite image. The composite image should take the average values of RGB components for each pixel. For example, if half the images have a black pixel at (row 0, column 0) and half the images have a white pixel at that same location, the composite image should have a medium-grey pixel at that same location. As it processes the images, your algorithm should print occasional progress updates, such as "Image When it is done, it should save the file as "composite-username bmp" but replace username with your own school username. 10 of 25 done." Technical requirements: Your program needs to be able to compile and run on Jaguar using the Bitmap header files without you making any changes to either bitmap.h or bitmap.cpp The program should never crash, even if a faulty or non-existent file name is provided. The original file should NOT be overwritten, unless its name was already composite The bitmaRh and bitmap.cpp are not required to create the above cod above instructions are clearlenough to create the code. the

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Transaction Processing

Authors: Philip M. Lewis, Arthur Bernstein, Michael Kifer

1st Edition

0201708728, 978-0201708721

More Books

Students also viewed these Databases questions

Question

What is the purpose of preemption in an operating system?

Answered: 1 week ago

Question

What is meant by Career Planning and development ?

Answered: 1 week ago

Question

What are Fringe Benefits ? List out some.

Answered: 1 week ago

Question

Understand how customers respond to effective service recovery.

Answered: 1 week ago