SatAndLight
2.2.2-hubble
Simulation toolkit for space telescopes
|
Cluster of camera pixels. More...
#include <Cluster.h>
Public Member Functions | |
void | AddCluster (PixCluster *aCluster) |
Adds the input cluster into this cluster. More... | |
void | AddPixel (const int aAmplitude, const int aPixIndexY, const int aPixIndexZ) |
Adds a pixel to the cluster. More... | |
int | GetSize (void) |
Returns the number of pixels in the cluster. More... | |
bool | TestCluster (PixCluster *aCluster) |
Tests whether a cluster is contiguous to this cluster. More... | |
bool | TestPixel (const int aPixIndexY, const int aPixIndexZ) |
Tests whether a pixel belongs to this cluster. More... | |
Constructors and destructors | |
PixCluster (void) | |
PixCluster class constuctor. More... | |
virtual | ~PixCluster (void) |
PixCluster class destructor. More... | |
Private Attributes | |
vector< int > | pix_amplitude |
List of pixel amplitudes. More... | |
vector< int > | pix_index_y |
List of pixel Y indices. More... | |
vector< int > | pix_index_z |
List of pixel Z indices. More... | |
Cluster of camera pixels.
This class describes a cluster of camera pixels. A cluster is a list of pixels.
PixCluster::PixCluster | ( | void | ) |
PixCluster class constuctor.
|
virtual |
PixCluster class destructor.
void PixCluster::AddCluster | ( | PixCluster * | aCluster | ) |
Adds the input cluster into this cluster.
The pixels of the input cluster are added to this cluster.
[in] | aCluster | Cluster to add. |
void PixCluster::AddPixel | ( | const int | aAmplitude, |
const int | aPixIndexY, | ||
const int | aPixIndexZ | ||
) |
Adds a pixel to the cluster.
[in] | aAmplitude | Pixel amplitude. |
[in] | aPixIndexY | Y pixel index. |
[in] | aPixIndexZ | Z pixel index. |
|
inline |
Returns the number of pixels in the cluster.
bool PixCluster::TestCluster | ( | PixCluster * | aCluster | ) |
Tests whether a cluster is contiguous to this cluster.
[in] | aCluster | Cluster to test. |
bool PixCluster::TestPixel | ( | const int | aPixIndexY, |
const int | aPixIndexZ | ||
) |
Tests whether a pixel belongs to this cluster.
@detail The input pixel, defined by its coordinates, is tested against all the pixels in the cluster. If the pixel position is contiguous (8 surrounding pixels) to one of the pixel in the cluster, this function returns true. It returns false otherwise.
[in] | aPixIndexY | Y pixel index. |
[in] | aPixIndexZ | Z pixel index. |
|
private |
List of pixel amplitudes.
|
private |
List of pixel Y indices.
|
private |
List of pixel Z indices.