Changes

Jump to: navigation, search

Three-Star

2,394 bytes removed, 08:28, 21 February 2018
Image Profiling
==== Image Profiling ====
Chosen to profile image profiling as shown here: http://www.dreamincode.net/forums/topic/76816-image-processing-tutorial/ , using the sample programs (main/image.h/image.cpp)
 
Slightly modified main.cpp to accomodate larger images.
 Had to expand a PGM image (to about 831~MB size) to return any meaningful result (Using a regular sized PGM image of 11KB yielded absolutely no meaningful results to the human eye - all 0's on the flat profile/call graph) Rotated and negated the image. >g++ -g -O2 -pg -omain main.cpp>main baboonsizetwo>gprof -p -b main>main.flt
The results of the flat profile:
% cumulative self self total
time seconds seconds calls ms/call ms/call name
5530.49 1.01 1.01 3 336.67 336.67 Image::Image(Image const&) 28.57 00 1.53 0.52 6 86.67 86.67 Image::Image(int, int, int) 9.34 1.70 03 0.17 1 170.00 290.00 readImage03 writeImage(char*, Image&) 6.59 1.82 0.12 16000000 0.00 0.00 Image::setPixelVal(int, int, int) 030.00 1.82 0.00 30 0.00 06 0.00 03 Image::getPixelValrotateImage(int, int) 0.00 1.82 0.00 9 0.00 0.00 Image::~Image(&) 0.00 1.82 0.00 8 0.00 0.00 std::operator|(std::_Ios_Openmode, std::_Ios_Openmode) 010.00 1.82 0.00 6 07 0.00 0.00 writeImage(char*, Image&) 0.00 1.82 0.00 01 6 2 05.00 05.00 Image::getImageInfoImage(int&,int&, int&) 0 10.00 10.82 08 0.00 01 6 2 05.00 05.00 Image::operator=(Image con 0.00 1.82 0.00 2 0.00 0.00 std::cos(float) 0.00 1.82 0.00 2 0.00 0.00 std::sin(float) 0.00 1.82 0.00 1 0.00 0.00 _GLOBAL__sub_I__ZN5ImageC2Ev 0.00 1.82 0.00 1 0.00 0.00 readImageHeader(char*, int&, int&, int&, boolconst&) 0.00 1.82 0.00 1 0.00 0.00 __static_initialization_and_destruction_0(int, int) 010.00 1.82 0.00 1 09 0.00 86.67 01 Image::getSubImagenegateImage(int, int, int, int, Image&) 0 10.00 1.82 0.00 1 10 0.00 86.67 01 Image::negateImageImage(Imageconst&) 0.00 10.82 10 0.00 1 0.00 86.67 Image::rotateImage(int, Image&) 0.00 1.82 2 0.00 1 0.00 86.67 Image::shrinkImage(int, Image&) 0.00 1.82 0.00 1 0.00 86.67 ~Image::enlargeImage(int, Image&) 0.00 1.82 0.00 1 0.00 336.67 Image::reflectImage(bool,Image&) 0.00 1.82 10 0.00 1 0.00 0.00 Image::inBounds(int, int)_GLOBAL__sub_I__ZN5ImageC2Ev 
void Image::reflectImage(bool flag, Image& oldImage)
/*Reflects the Image based on users input*/
{
int rows = oldImage.N;
}
oldImage = tempImage;}
==== LZW Data Compression Algorithm ====
122
edits

Navigation menu