Changes

Jump to: navigation, search

GPU610/Turing

578 bytes added, 21:17, 13 October 2015
James's Research
This program takes in an image and processes in various ways. I chose to look at the reflection function (flipping) by editing the code to omit the other sections. Below are the results from profiling where n is the size of the image in files.
n
writeImage(char*, Image&)
readImage(char*, Image&)
Image::reflectImage(bool, Image&)
Image::Image(int, int, int)
Image::operator=(Image const&)
Image::Image(Image const&)
Elapsed Time
10077713
0.01
0.01
0.02
0.01
0.01
0.07
0.11
 
25435697
0.02
0.02
0.03
0.05
0.05
0.09
0.26
 
117430458
0.13
0.1
0.15
0.18
0.2
0.6
1.36
{| cellspacing="0" border="0"
| align="right" | n
| align="center" | writeImage(char*, Image&)
| align="center" | readImage(char*, Image&)
| align="center" | Image::reflectImage(bool, Image&)
| Image::Image(int, int, int)
| align="center" | Image::operator=(Image const&)
| align="center" | Image::Image(Image const&)
| Elapsed Time
|-
| align="right" | 10077713
| align="right" | 0.01
| align="right" | 0.01
| align="right" | 0.02
| align="right" | 0.01
| align="right" | 0.01
| align="right" | 0.07
| align="right" | 0.11
|-
| align="right" | 25435697
| align="right" | 0.02
| align="right" | 0.02
| align="right" | 0.03
| align="right" | 0.05
| align="right" | 0.05
| align="right" | 0.09
| align="right" | 0.26
|-
| align="right" | 117430458
| align="right" | 0.13
| align="right" | 0.1
| align="right" | 0.15
| align="right" | 0.18
| align="right" | 0.2
| align="right" | 0.6
| align="right" | 1.36
|}
What takes the longest running function is the function that copies the old image into the new output image. Below is the code for the function.
}
}
 
=== Assignment 2 ===
=== Assignment 3 ===
1
edit

Navigation menu