Question: Please write in C programming (a) Original Image (b) Shuffled Image Figure 5: An image and its shuffled counterpart. Shuffling works this way: Divide the

 Please write in C programming (a) Original Image (b) Shuffled Image

Please write in C programming

(a) Original Image (b) Shuffled Image Figure 5: An image and its shuffled counterpart. Shuffling works this way: Divide the image into 16 equally sized image blocks. Then randomly choose a pair of image blocks and swap it's R, G and B values. Repeat choosing and swapping process until all image blocks are swapped. Note that on each run, shuffle should produce a different image. You need to define and implement the following function to do this DIP. /* Shuffle an image */ void Shuffle (unsigned char R[WIDTH] [HEIGHT], unsigned char G[WIDTH) (HEIGHT), unsigned char B[WIDTH] [HEIGHT]); Specs of input image: HEIGHT == 400, WIDTH == 600

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!