|
|
@ -100,7 +100,7 @@ void Enhance::cpuProcess(ScenGenOutput_t parameters) |
|
|
|
if(_run) |
|
|
|
{ |
|
|
|
auto filterSize = _kernelParameters.filterWidth * _kernelParameters.filterHeight; |
|
|
|
float filter[filterSize]; |
|
|
|
auto filter = new float[filterSize]; |
|
|
|
for(int i = 0; i < filterSize ; i++) |
|
|
|
{ |
|
|
|
filter[i] = backgroundRecovery[i] - hpf[i]; |
|
|
@ -116,6 +116,7 @@ void Enhance::cpuProcess(ScenGenOutput_t parameters) |
|
|
|
BIP::getInstance()->CLQueue.enqueueWriteBuffer(*_filter, CL_TRUE, |
|
|
|
0, filterSize * sizeof (float), |
|
|
|
filter); |
|
|
|
delete[] filter; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|