122
edits
Changes
→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 1~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.
The results of the flat profile:
Out of all the functions tested, reflectImage has the largest ms/call. Below is the code for reflectImage:
//void Image::reflectImage(bool flag, Image& oldImage)
{
int rows = oldImage.N;