Maximum a posteriori probability strategy.  
 More...
#include <ClassifierMAPStrategy.h>
Maximum a posteriori probability strategy. 
Definition at line 50 of file ClassifierMAPStrategy.h.
 
      
        
          | te::rp::ClassifierMAPStrategy::ClassifierMAPStrategy  | 
          ( | 
           | ) | 
           | 
        
      
 
 
      
        
          | te::rp::ClassifierMAPStrategy::~ClassifierMAPStrategy  | 
          ( | 
           | ) | 
           | 
        
      
 
 
  
  
      
        
          | bool te::rp::ClassifierMAPStrategy::execute  | 
          ( | 
          const te::rst::Raster &  | 
          inputRaster,  | 
         
        
           | 
           | 
          const std::vector< unsigned int > &  | 
          inputRasterBands,  | 
         
        
           | 
           | 
          const std::vector< te::gm::Polygon * > &  | 
          inputPolygons,  | 
         
        
           | 
           | 
          te::rst::Raster &  | 
          outputRaster,  | 
         
        
           | 
           | 
          const unsigned int  | 
          outputRasterBand,  | 
         
        
           | 
           | 
          const bool  | 
          enableProgressInterface  | 
         
        
           | 
          ) | 
           |  | 
         
        
          | throw  | ( | te::rp::Exception | 
         
        
           | ) |  |  | 
         
       
   | 
  
virtual   | 
  
 
Executes the classification strategy. 
- Parameters
 - 
  
    | inputRaster | Input raster.  | 
    | inputRasterBands | Input raster bands.  | 
    | inputPolygons | The polygons to be classified when using object-based image analysis (OBIA).  | 
    | outputRaster | Output raster.  | 
    | outputRasterBand | Output raster band.  | 
    | enableProgressInterface | Enable the internal strategy to update the progress interface. | 
  
   
- Returns
 - true if OK, false on errors. 
 
Implements te::rp::ClassifierStrategy.
 
 
  
  
      
        
          | std::vector< int > te::rp::ClassifierMAPStrategy::getOutputDataTypes  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
virtual   | 
  
 
Returns the output raster pixel data type for each output band. 
- Returns
 - Returns the output raster pixel data type for each output band. 
 
Implements te::rp::ClassifierStrategy.
 
 
      
        
          | unsigned int te::rp::ClassifierMAPStrategy::getOutputNumberBands  | 
          ( | 
          void  | 
           | ) | 
           | 
        
      
 
 
  
  
      
        
          | bool te::rp::ClassifierMAPStrategy::getPrioriProbabilities  | 
          ( | 
          const te::rst::Raster &  | 
          inputRaster,  | 
         
        
           | 
           | 
          const std::vector< unsigned int > &  | 
          inputRasterBands,  | 
         
        
           | 
           | 
          te::common::TaskProgress *const  | 
          progressPtr,  | 
         
        
           | 
           | 
          std::vector< double > &  | 
          prioriProbabilities  | 
         
        
           | 
          ) | 
           |  const | 
         
       
   | 
  
protected   | 
  
 
Calcule of priori probabilities following the current internal state. 
- Parameters
 - 
  
    | inputRaster | Input raster.  | 
    | inputRasterBands | Input raster bands.  | 
    | progressPtr | A pointer to a progress interface, or a null pointer if no progress must be updated.  | 
    | prioriProbabilities | The calculated probabilities.  | 
  
   
- Returns
 - true if ok, false on errors. 
 
 
 
Initialize the classification strategy. 
- Parameters
 - 
  
    | strategyParams | A pointer to the user given specific classification strategy parameters ou NULL if no parameters are present. | 
  
   
- Returns
 - true if OK, false on errors. 
 
Implements te::rp::ClassifierStrategy.
 
 
  
  
      
        
          | std::vector< boost::numeric::ublas::matrix< double > > te::rp::ClassifierMAPStrategy::m_classesCovarianceInvMatrixes | 
         
       
   | 
  
protected   | 
  
 
 
  
  
      
        
          | std::vector< boost::numeric::ublas::matrix< double > > te::rp::ClassifierMAPStrategy::m_classesCovarianceMatrixes | 
         
       
   | 
  
protected   | 
  
 
 
  
  
      
        
          | std::vector< std::vector< double > > te::rp::ClassifierMAPStrategy::m_classesMeans | 
         
       
   | 
  
protected   | 
  
 
 
  
  
      
        
          | std::vector< double > te::rp::ClassifierMAPStrategy::m_classesOptizedMAPDiscriminantTerm | 
         
       
   | 
  
protected   | 
  
 
 
  
  
      
        
          | bool te::rp::ClassifierMAPStrategy::m_isInitialized | 
         
       
   | 
  
protected   | 
  
 
 
The documentation for this class was generated from the following file: