Main Page | Namespace List | Class Hierarchy | Class List | Namespace Members | Class Members

DefectComputer Class Reference

Class dedicated to mask creation. More...

Inheritance diagram for DefectComputer:

Defectix DefectixError::ErrorMgr List of all members.

Public Member Functions

 DefectComputer (const DefectixOptions::Options &options)
 Standard constructor.

const errorCodes exec ()
 Main function.

const errorCodes loadNetworks ()
 Load neural networks.


Private Member Functions

const errorCodes createOutputImage (std::map< int, gsl_matrix * > &src, std::map< int, gsl_matrix * > &dest, FitsManager &mgr, gsl_matrix *evec)
 Create masks with loaded neural network and KL-Base.

gsl_matrix * loadKLBase ()
 Load a KL-Base.


Private Attributes

t_network * _l0
 First neural network.

t_network * _l1
 Second neural network.

int _nbPC
 Number of principal components.

std::string _evecFile
 Name of the file containing the KL-Base.


Detailed Description

Class dedicated to mask creation.

The class is the computing part of the project


Constructor & Destructor Documentation

DefectComputer::DefectComputer const DefectixOptions::Options options  ) 
 

Standard constructor.

The constructor calls Defectix constructor and then initialises private members with 'options' values.

Parameters:
options Class containing every parameters set by the user (or default)


Member Function Documentation

const errorCodes DefectComputer::createOutputImage std::map< int, gsl_matrix * > &  src,
std::map< int, gsl_matrix * > &  dest,
FitsManager mgr,
gsl_matrix *  evec
[private]
 

Create masks with loaded neural network and KL-Base.

The function uses the loaded KL-Base and neural network to compute the mask of the loaded MEF.

Parameters:
src list of images
dest list of masks
mgr FitsManager of the image
evec KL-Base

const errorCodes DefectComputer::exec  )  [virtual]
 

Main function.

The function starts the mask creation

Implements Defectix.

gsl_matrix * DefectComputer::loadKLBase  )  [private]
 

Load a KL-Base.

The function loads a KL-Base to compute masks.

const errorCodes DefectComputer::loadNetworks  ) 
 

Load neural networks.

The function load neural networks to compute masks.


Member Data Documentation

std::string DefectComputer::_evecFile [private]
 

Name of the file containing the KL-Base.

_evecFile is the name of the KL-Base stored as a gsl_matrix.

t_network * DefectComputer::_l0 [private]
 

First neural network.

_l0 is the neural network of the first layer.

t_network * DefectComputer::_l1 [private]
 

Second neural network.

_l1 is the neural network of the second layer. For now, it is useless.

int DefectComputer::_nbPC [private]
 

Number of principal components.

_nbPC is the number of principal components to use once the KL-Base is computed.


The documentation for this class was generated from the following file:
Generated on Fri Jul 2 13:08:03 2004 for defectix by doxygen 1.3.5