100 likes | 252 Vues
Parallel Algorithms: Morph. Robert Vitolo CS474. WHAT IT DOES. The Morph program is designed to take two singular images and blend them together in a manner where both images appear increasingly translucent.
E N D
Parallel Algorithms:Morph Robert Vitolo CS474
WHAT IT DOES The Morph program is designed to take two singular images and blend them together in a manner where both images appear increasingly translucent. These images are layered on top of one another, allowing each to be displayed simultaneously.
HOW IT WORKS Manipulates the RGB values of corresponding pairs of pixels (those that occupy the same general position) in the two images, gradually changing the RGB values of one to match that of the other image and refreshing the image with each pass.
SEQUENTIAL versus PARALLEL • Sequential: • Performs the algorithm in a linear fashion, transforming each pair of points in the image, one after the next • Parallel: • Uses the same basic code, but utilizes a Parallel.For loop, enabling the processing of multiple pairs of points at a time
SPEED-UP • Sequential Processing Time: 11,000 ms • Parallel (2 Cores): 10,000 ms • Speedup factor: 1.1x • Parallel (4 Cores): 6,100 ms • Speedup Factor: 1.8x • Parallel (8 Cores): 4,900 ms • Speedup Factor: 2.24x
SPEED-UP • Suboptimal speedup, possible reasons? • Only a small part of the algorithm is parallelized • File I/O takes up a significant amount of time • Implications • Major potential for improvements in CPU and time intensive tasks, such as video encoding speed and filter processing through utilization of multiple cores.