Question: Write an MPI program that implements Sobel Edge detection. Please read the following instructions to help you understand better. a) Initialize an image with size

Write an MPI program that implements Sobel Edge detection. Please read the following instructions to help you understand better.

a) Initialize an image with size N * N

i) N should be divisible by rank

ii) Use row-wise decomposition to allocate the image into different ranks

iii) Initial value of each pixel should range from 0 to 255

iv) Initialization is finished locally; which means each rank initializes the pixels stored in itself

b) Sobel Edge Detection

Note that one rank will need both local data and some data from neighbor rank. Collect all the data you need before calculation. Note that value in edge matrix should range from 0 to 255 as well.

c) Printout your edge results

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!