Lines Matching refs:histo
67 void BuildHistogram(FILE* fin, int** histo) { in BuildHistogram() argument
77 histo[i][j] = 0; in BuildHistogram()
113 histo[x][y] += copy; in BuildHistogram()
116 histo[x][y] += pos2 - pos; in BuildHistogram()
118 histo[x][i] += max_pos / width; // Sometimes 1 more, but who cares. in BuildHistogram()
123 histo[x][right] += pos + copy - 1 - pos2 + 1; in BuildHistogram()
127 histo[x][y]++; in BuildHistogram()
133 void ConvertToPixels(int** histo, uint8_t** pixel) { in ConvertToPixels() argument
140 if (maxs < histo[i][j]) maxs = histo[i][j]; in ConvertToPixels()
149 pixel[i][j] = histo[i][j] > 0 ? 0 : 255; in ConvertToPixels()
152 255 - DensityTransform(histo[i][j] / max_histo * 255)); in ConvertToPixels()
183 int** histo = new int*[height]; in main() local
186 histo[i] = new int[width]; in main()
189 BuildHistogram(fin, histo); in main()
191 ConvertToPixels(histo, pixel); in main()