From 60ec0866a25b978a5a08c5f3989d14aeea2d7529 Mon Sep 17 00:00:00 2001 From: janrinze Date: Fri, 4 Mar 2011 00:28:24 +0100 Subject: [PATCH] fix openmp issue with Hot/Dead pixels --- rtengine/rawimagesource.cc | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/rtengine/rawimagesource.cc b/rtengine/rawimagesource.cc index 339b16dae..2b3861127 100644 --- a/rtengine/rawimagesource.cc +++ b/rtengine/rawimagesource.cc @@ -420,19 +420,21 @@ int RawImageSource::cfaCleanFromMap( PixelsMap &bitmapBads ) */ int RawImageSource::findHotDeadPixel( PixelsMap &bpMap, float thresh) { - int counter=0; + volatile int counter=0; unsigned short (*cfablur); cfablur = (unsigned short (*)) calloc (H*W, sizeof *cfablur); - int iprev,inext,jprev,jnext; - unsigned short p[9],temp; - int top, bottom, left, right; + + + #pragma omp parallel { #pragma omp for for (int i=0; iH-3) {inext=i-2;} else {inext=i+2;} for (int j=0; j