#include #include #include #include "ImageIO.h" using namespace std; #define ITERATION_COUNT 100 // ugyanaz a számítás csak a CPU-n. void smoothOnCPU(float* dst, float* src, int w, int h); //------------------------------------------------------------------------------ // main int main() { int i, j; unsigned int time; unsigned char* image; int h, w; readRGBImageFromFile("Lena.png", image, w, h); time = clock(); float* temp_src = new float[w * h * 4 * sizeof(float)]; float* temp_dst = new float[w * h * 4 * sizeof(float)]; printf("Kep beolvasva: %d s\n", clock()-time); for(i=0; i=0 && y+i=0 && x+j