Fixed a bug in Noise Reduction Median type 3x3, no Issue

This commit is contained in:
Ingo
2015-03-06 14:39:26 +01:00
parent 0f28433878
commit b5a7896aca

View File

@@ -245,9 +245,9 @@ void ImProcFunctions::Median_Denoise( float **src, float **dst, const int width,
medianOut[i][j] = medianIn[i][j]; medianOut[i][j] = medianIn[i][j];
for (; j<width-border; j++) { for (; j<width-border; j++) {
med2(medianIn[i][j] ,medianIn[i-1][j], medianIn[i+1][j] ,medianIn[i][j+1],medianIn[i][j-1], medianOut[i][j]); med2(medianIn[i][j] ,medianIn[i-1][j], medianIn[i+1][j] ,medianIn[i][j+1],medianIn[i][j-1], medianOut[i][j]);
}
for(;j<width;j++) for(;j<width;j++)
medianOut[i][j] = medianIn[i][j]; medianOut[i][j] = medianIn[i][j];
}
} else if(medianType == MED_3X3STRONG) { } else if(medianType == MED_3X3STRONG) {
float pp[9],temp; float pp[9],temp;
int j; int j;