Question: Implement a Sobel filter edge detection using C++ threads. The algorithm takes a grayscale image as input and outputs an image with edge outlines. The

Implement a Sobel filter edge detection using C++ threads. The algorithm takes a grayscale image as input and outputs an image with edge outlines.

The solution must work as follows:

1. Read command line argument to fetch names of the input and output image (.pgm images).

2. Read the image file into a 2-D array.

3. Generate the two 3x3 Sobel masks, one for each dimension.

4. Implement the Sobel filter algorithm that process the entire image (You must be able to expose parallelism here!).

a.Use dynamic scheduling by distributing parts of the image to different threads [More about this in discussion]

5. Generate the output image.

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!