CFEL - ASG Software Suite  2.5.0
CASS
Public Member Functions | Public Attributes | List of all members
cass::pixeldetector::isNeighbour Struct Reference

check if pixel is neighbour More...

Public Member Functions

 isNeighbour (const pair< uint16_t, uint16_t > &coordinate)
 constructor More...
 
bool operator() (const Pixel &pixel)
 the operator More...
 

Public Attributes

pair< uint16_t, uint16_t > _neighbourCoordinate
 the coordinate of the neighbour to check More...
 

Detailed Description

check if pixel is neighbour

predicate struct for find if. Will return true when a pixel is a neighbour. It will check whether the position of the pixel is identical to the coordinate that was given to this predicate in the constructor. The pixel also is not allowed to be used before as a neighbour of another pixel.

Author
Lutz Foucar

Definition at line 42 of file coalesce_simple.cpp.

Constructor & Destructor Documentation

cass::pixeldetector::isNeighbour::isNeighbour ( const pair< uint16_t, uint16_t > &  coordinate)
inline

constructor

Parameters
coordinatethe coordinate of the neighbour

Definition at line 51 of file coalesce_simple.cpp.

Member Function Documentation

bool cass::pixeldetector::isNeighbour::operator() ( const Pixel pixel)
inline

the operator

Returns
true when pixel has not been used and is neighbour
Parameters
pixelreference to the potential neighbour

Definition at line 60 of file coalesce_simple.cpp.

References cass::pixeldetector::Pixel::used, cass::pixeldetector::Pixel::x, and cass::pixeldetector::Pixel::y.

Member Data Documentation

pair<uint16_t,uint16_t> cass::pixeldetector::isNeighbour::_neighbourCoordinate

the coordinate of the neighbour to check

Definition at line 45 of file coalesce_simple.cpp.


The documentation for this struct was generated from the following file: