Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using C++ Write multiple programs that read a PGM image from file inImage.pgm and outputs a modified image to outImage.pgm a. Write a prorgram that

Using C++

Write multiple programs that read a PGM image from file "inImage.pgm" and outputs a modified image to "outImage.pgm"

a. Write a prorgram that inverts all colors, so white becomes black and black becomes white

b. write a program that inverts the colors only in the right half of the picture

c. write a program that draws a white box exactly in the middle of the picture. the dimensions of the box should be 50% by 50% of the original pictures width and height

d. same as C, but it should be a frame exactly one pixel thick

e. Scale the original picture to 200% of its size, Can be done by increasing the size of the picture by the factor of 2, and copying each pixel of the input as a small 2x2 square in the output

f. pixealte the input image, so make every 2x2 non-overlapping window contain the same value (averaged over all the pixels in that window of the input)

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

MySQL/PHP Database Applications

Authors: Jay Greenspan, Brad Bulger

1st Edition

978-0764535376

More Books

Students also viewed these Databases questions

Question

1.who the father of Ayurveda? 2. Who the father of taxonomy?

Answered: 1 week ago

Question

Commen Name with scientific name Tiger - Wolf- Lion- Cat- Dog-

Answered: 1 week ago