Question: Programming in C BMP Composite Images Write a program that takes a color BMP file and produces a composite image, as shown below, containing the

Programming in C BMP Composite Images

Write a program that takes a color BMP file and produces a composite image, as shown below, containing the original image, a grayscale version of it, a monochrome version of it, and a BBC codeword image.

Programming in C BMP Composite Images Write a program that takes a

Each image should be 640 (width) x 480 (height). Each image should be surrounded by a 4-pixel thick brown border (RGB = 139, 69, 19). Each image should be separated by 16 pixels of white. The entire composite image should have a 4-pixel thick brown border at the very outside edge. There should be 20 pixels of white between the overall border and the outer border of each image. Starting with the original color image, your program should first produce a grayscale image. From the grayscale image your program should produce the monochrome image using the Floyd- Steinberg dithering algorithm: https://en.wikipedia.org/wiki/Floyd%E2%80%93Steinberg_dithering

The average intensity of the original color image should be adjusted so that the black density of the monochrome image is about 33% (anything between 30% and 35% is acceptable).

Your program should then produce the BBC codeword image that approximates the monochrome image. The density of the codeword image should be approximately the same as that of the monochrome image.

The message that is used to generate the codeword should be written to a text file using Base-64 encoding.

Finally, your program should panelize the four images into a single image, add the borders, and save the result to the file. For simplicity, hardcode the file names in your program as follows: Original color image: color.bmp Composite image: composite.bmp Base-64 encoded codeword: codeword.txt

Deliverables In addition to your source code files, you need to include the three files mentioned above (the original color image, the composite image, and the codeword file). The resulting ZIP file may be fairly large since the two image files will total to approximately 5 MB. The codeword file will probably be on the order of 20 kB. However, you are likely to get significant compression, perhaps in the 75% to 90% range.

ORIGINAL COLOR IMAGE MONOCHROME IMAGE GRAY SCALE IMAGE BBC CODE WORD ORIGINAL COLOR IMAGE MONOCHROME IMAGE GRAY SCALE IMAGE BBC CODE WORD

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!