Inheritance diagram for DefectSimulator:
Public Member Functions | |
DefectSimulator (const DefectixOptions::Options &options) | |
Standard constructor. | |
const errorCodes | exec () |
Main function. | |
virtual void | addDefectsOnExtension (int nb, int extend) |
Add defects on a extension. | |
virtual void | addDefectsOnMosaic (int nb) |
Add defects on the whole mosaic. | |
virtual void | addDefectsPerExtension (int nb) |
Add defects on the whole mosaic. | |
Protected Member Functions | |
const errorCodes | writeAllImageExtensions () |
Write extensions in a MEF file. | |
virtual void | createDefect (gsl_matrix *src, gsl_matrix *mask, int extend)=0 |
Create a defect. | |
Protected Attributes | |
FitsManager | _outputMgr |
FitsManager for output. | |
int | _nbDefects |
Number of defects to add. | |
int | _type |
Addition mode, 'extension' or 'mosaic'. | |
int | _intensity |
Intensity of the defects. |
The class defines functions to produce easily new simulators as subclasses
|
Standard constructor. The constructor calls Defectix::Defectix(options) and then initialises private members with 'options' values.
|
|
Add defects on a extension. The function adds a given number of defects on a given extension of the loaded MEF file.
|
|
Add defects on the whole mosaic. The function adds a given number of defects on the loaded MEF file with a random distribution on extensions.
|
|
Add defects on the whole mosaic. The function adds a given number of defects on each extension of the loaded MEF file.
|
|
Create a defect. The function adds a defect according to the simulator
Implemented in HaloSimulator, and TrailSimulator. |
|
Main function. The function starts the defect addition Implements Defectix. |
|
Write extensions in a MEF file. The function write every loaded extension in a MEF file |
|
Intensity of the defects. _intensity is defined as the average value compared to the maximum value of the image 'max'. The computation is 'max' / '_intensity'. |
|
Number of defects to add. The _nbDefects is the chosen number of defects to add. |
|
Addition mode, 'extension' or 'mosaic'. 'extension' calls DefectSimulator::addDefectsPerExtension(); 'mosaic' calls DefectSimulator::addDefectsOnMosaic(); |