private void reportResultsForFilter(int rown, FilterType type, bool tentative) { for (int i = 0; i < histox.Length; i++) histox[i] = 0; int s = 0, v; for (int i = 1; i <= ImgInfo.BytesPerRow; i++) { v = rowbfilter[i]; if (v < 0) s -= (int)v; else s += (int)v; histox[v & 0xFF]++; } filterStrat.fillResultsForFilter(rown, type, s, histox, tentative); }
public void reportResultsForFilter(int rown, FilterType type, bool tentative) { for (int i = 0; i < histox.Length; i++) { histox[i] = 0; } int num = 0; for (int j = 1; j <= ImgInfo.BytesPerRow; j++) { int num2 = rowbfilter[j]; num = ((num2 >= 0) ? (num + num2) : (num - num2)); histox[num2 & 0xFF]++; } filterStrat.fillResultsForFilter(rown, type, num, histox, tentative); }