Menu

[Solved]Write Void Function Take Three Parameters Int Array Named Pic1 Two Ints Named Numrows Numc Q37275028

Write ONLY a void function to take three parameters: an int** array named PIC1 and two ints named numRows and numCols. AssumeWrite ONLY a void function to take three parameters: an int** array named PIC1 and two ints named numRows and numCols. Assume numRows and numCols are always numbers that are multiples of 4. DO THIS TASK IN TWO STEPS. First step, imagine that you cut the picture into 4 equal vertical strips; the function should copy the second (from the left) strip to the last (rightmost) strip’s space, but should also flip the strip from top to bottom. Second step: in the pic that results from the first step, imagine that the picture is cut into 4 equal horizontal strips; you need to make the strip that is second from the top, this strip needs to be made BRIGHTER by 60 (some pixels will turn black from this step, and that is how we want it to be). You are allowed to think in your head that the picture is 256×256, but you are NOT ALLOWED to assume this in your code. Also, you do not need to worry about displaying the pic, you only need to do the two steps. Carefully study the outpic before starting your code. void f(int*PIc1, int num Rows, numCols) it+ for (i-4/num Rows;i2/nuwn Rows; Original face picture -t Final Desired output picture Show transcribed image text Write ONLY a void function to take three parameters: an int** array named PIC1 and two ints named numRows and numCols. Assume numRows and numCols are always numbers that are multiples of 4. DO THIS TASK IN TWO STEPS. First step, imagine that you cut the picture into 4 equal vertical strips; the function should copy the second (from the left) strip to the last (rightmost) strip’s space, but should also flip the strip from top to bottom. Second step: in the pic that results from the first step, imagine that the picture is cut into 4 equal horizontal strips; you need to make the strip that is second from the top, this strip needs to be made BRIGHTER by 60 (some pixels will turn black from this step, and that is how we want it to be). You are allowed to think in your head that the picture is 256×256, but you are NOT ALLOWED to assume this in your code. Also, you do not need to worry about displaying the pic, you only need to do the two steps. Carefully study the outpic before starting your code. void f(int*PIc1, int num Rows, numCols) it+ for (i-4/num Rows;i2/nuwn Rows; Original face picture -t Final Desired output picture

Expert Answer


Answer to Write ONLY a void function to take three parameters: an int** array named PIC1 and two ints named numRows and numCols. A… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *