Race condition in raw auto ca correction, no Issue

This commit is contained in:
Ingo 2014-10-30 17:30:41 +01:00
parent caf822dd8f
commit d7df1e7f30

View File

@ -615,9 +615,8 @@ void RawImageSource::CA_correct_RT(double cared, double cablue) {
//now prepare for CA correction pass
//first, fill border blocks of blockshift array
if(processpasstwo) {
#pragma omp sections
#pragma omp single
{
#pragma omp section
for (vblock=1; vblock<vblsz-1; vblock++) {//left and right sides
for (c=0; c<3; c+=2) {
for (i=0; i<2; i++) {
@ -626,7 +625,6 @@ void RawImageSource::CA_correct_RT(double cared, double cablue) {
}
}
}
#pragma omp section
for (hblock=0; hblock<hblsz; hblock++) {//top and bottom sides
for (c=0; c<3; c+=2) {
for (i=0; i<2; i++) {
@ -736,6 +734,7 @@ void RawImageSource::CA_correct_RT(double cared, double cablue) {
processpasstwo = false;
}
}
}
//fitparams[polyord*i+j] gives the coefficients of (vblock^i hblock^j) in a polynomial fit for i,j<=4
}