FACT++  1.0
void RawDataViewer::calcBlurColor ( int  pixel,
int  vertex 
)
private

Definition at line 40 of file RawEventsViewer.cc.

References color(), first, i, and second.

41 {
42  GLfloat color[3];
43  int first, second;
44  first = vertex-1;
45  second = vertex;
46  if (first < 0)
47  first = 5;
48 
49  first = neighbors[pixel][first];
50  second = neighbors[pixel][second];
51 // cout << pixel << " " << vertex << " " << "first: " << first << " second: " << second << endl;
52  for (int i=0;i<3;i++)
53  color[i] = pixelsColor[pixel][i];
54  float divide = 1;
55  if (first != -1)
56  {
57  divide++;
58  for (int i=0;i<3;i++)
59  color[i] += pixelsColor[first][i];
60  }
61  if (second != -1)
62  {
63  divide++;
64  for (int i=0;i<3;i++)
65  color[i] += pixelsColor[second][i];
66  }
67  for (int i=0;i<3;i++)
68  color[i] /= divide;
69 
70 // cout << color[0] << " " << color[1] << " " << color[2] << endl;
71 
72  glColor3fv(color);
73 }
int i
Definition: db_dim_client.c:21
int64_t second
offset of this column in the tile, from the start of the heap area
Definition: zofits.h:27
static PixelsNeighbors neighbors[MAX_NUM_PIXELS]
int64_t first
Size of this column in the tile.
Definition: zofits.h:26
GLfloat pixelsColor[NPIX][3]
function color(col)
Definition: color.js:31

+ Here is the call graph for this function: