1
edit
Changes
→Analysis
=====Analysis=====
The profile shows that filter function occupies the most of processing time.<codepre>
% cumulative self self total
time seconds seconds calls ns/call ns/call name
0.00 1.56 0.00 1 0.00 0.00 _GLOBAL__sub_I__Z7get_ppmP8_IO_FILE
0.00 1.56 0.00 1 0.00 0.00 get_ppm(_IO_FILE*)
</codepre>
In the filter function, 3 x 3 mask walk through all RGB pixels and calculate convolution of them.<codepre>
image filter(image im, double *K, int Ks, double divisor, double offset)
{
return oi;
}
}
</codepre> {{Box-round|title=Title|Text goes here}}
====Taeyang's Findings====