Open main menu

CDOT Wiki β

Changes

Three-Star

794 bytes removed, 22:16, 7 April 2018
Image Profiling
[[File:Profileresults.png]]
Rotate image function is one of the longer running functions and looks like it has potential for parallelization.
  Flat profile[[FileEach sample counts as 0Rotateimage.01 seconds. % cumulative self self total time seconds seconds calls ms/call ms/call name 30.00 0.03 0.03 writeImage(char*, Image&) 30.00 0.06 0.03 Image::rotateImage(int, Image&) 10.00 0.07 0.01 2 5.00 5.00 Image::Image(int, int, int) 10.00 0.08 0.01 2 5.00 5.00 Image::operator=(Image const&) 10.00 0.09 0.01 Image::negateImage(Image&) 10.00 0.10 0.01 Image::Image(Image const&) 0.00 0.10 0.00 2 0.00 0.00 Image::~Image() 0.00 0.10 0.00 1 0.00 0.00 _GLOBAL__sub_I__ZN5ImageC2Ev   Out of all the functions tested, rotateImage takes up the largest amount of time. Below is the code for rotateImage:png]]
void Image::rotateImage(int theta, Image& oldImage)
{
122
edits