FACT++  1.0
void BasicGlCamera::assignPixelMap ( const PixelMap map)

Definition at line 257 of file BasicGlCamera.cc.

References buildPatchesIndices(), buildVerticesList(), calculatePixelsCoords(), fPixelMap, hardwareMapping, i, neighbors, NTMARK, pixelsPatch, softwareMapping, and updateNeighbors().

Referenced by RawDataViewer::assignPixelMapFile().

258  {
259  fPixelMap = map;
260 
261  for (auto it=fPixelMap.begin(); it!=fPixelMap.end(); it++)
262  {
263  hardwareMapping[it->index] = it->hw();
264  softwareMapping[it->hw()] = it->index;
265  }
266 
267  //now construct the correspondance between pixels and patches
268  for (int i=0;i<NTMARK;i++)
269  for (int j=0;j<9;j++)
270  pixelsPatch[softwareMapping[i*9+j]] = i;
271 
273 
274  for (int i=0;i<1440;i++)
275  {
276  for (int j=0;j<6;j++)
277  neighbors[i][j] = -1;
279  }
280 
282 
284 
285  }
int i
Definition: db_dim_client.c:21
static PixelsNeighbors neighbors[MAX_NUM_PIXELS]
virtual void buildPatchesIndices()
void calculatePixelsCoords()
void updateNeighbors(int currentPixel)
static int pixelsPatch[NPIX]
Definition: BasicGlCamera.h:61
#define NTMARK
Definition: BasicGlCamera.h:6
static PixelMap fPixelMap
Definition: BasicGlCamera.h:60
void buildVerticesList()
static int hardwareMapping[NPIX]
static int softwareMapping[NPIX]

+ Here is the call graph for this function:

+ Here is the caller graph for this function: