| TerraLib 4.1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files
- Examples

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Types | Public Member Functions | Protected Member Functions
TePDIFusionIndexes Class Reference
Image Processing Algorithms.

This is the class for principal components generation. More...

`#include <TePDIFusionIndexes.hpp>`

Inheritance diagram for TePDIFusionIndexes:

List of all members.

## Public Types

enum | TeFusionIndexes { CC, BIAS, VARDIF, SDD, UIQI, RMSE, ERGAS, SIMM, SERGAS, SCC }
typedef TeSharedPtr < TePDIFusionIndexes > | pointer
typedef const TeSharedPtr < TePDIFusionIndexes > | const_pointer

## Public Member Functions

| TePDIFusionIndexes ()
| Default Constructor.
| ~TePDIFusionIndexes ()
| Default Destructor.
bool | CheckParameters (const TePDIParameters &parameters) const
| Checks if the supplied parameters fits the requirements of each PDI algorithm implementation.

## Protected Member Functions

bool | RunImplementation ()
| Decide the direction of the analysis based on the analysis_type parameter.
void | ResetState (const TePDIParameters &)
| Reset the internal state to the initial state.
bool | raster_mean (TePDITypes::TePDIRasterPtrType raster, int band, double &mean)
| Compute the raster meam.
bool | rasters_difference (TePDITypes::TePDIRasterPtrType raster1, int band1, TePDITypes::TePDIRasterPtrType raster2, int band2, TePDITypes::TePDIRasterPtrType raster_diff, int band_diff)
| Compute the difference between two rasters.
bool | correlation_coefficient_index (TePDITypes::TePDIRasterPtrType original_raster, int original_band, TePDITypes::TePDIRasterPtrType fused_raster, int fused_band, TeSharedPtr< double > bias)
| Compute the CORRELATION COEFFICIENT INDEX between two rasters.
bool | bias_index (TePDITypes::TePDIRasterPtrType original_raster, int original_band, TePDITypes::TePDIRasterPtrType fused_raster, int fused_band, TeSharedPtr< double > bias)
| Compute the BIAS index between two rasters.
bool | variance_difference_index (TePDITypes::TePDIRasterPtrType original_raster, int original_band, TePDITypes::TePDIRasterPtrType fused_raster, int fused_band, TeSharedPtr< double > vardif)
| Compute the VARIANCE DIFFERENCE INDEX between two rasters.
bool | standard_deviation_diff_index (TePDITypes::TePDIRasterPtrType original_raster, int original_band, TePDITypes::TePDIRasterPtrType fused_raster, int fused_band, TeSharedPtr< double > bias)
| Compute the STANDARD DEVIATION INDEX of the raster produce by the difference between two rasters.
bool | uiqi_index (TePDITypes::TePDIRasterPtrType original_raster, int original_band, TePDITypes::TePDIRasterPtrType fused_raster, int fused_band, TeSharedPtr< double > uiqi)
| Compute the UIQI between two rasters.
bool | rmse_index (TePDITypes::TePDIRasterPtrType original_raster, int original_band, TePDITypes::TePDIRasterPtrType fused_raster, int fused_band, TeSharedPtr< double > rmse)
| Compute the RMSE index between two rasters.
bool | ergas_index (TePDITypes::TePDIRasterVectorType original_rasters, std::vector< int > original_bands, TePDITypes::TePDIRasterVectorType fused_rasters, std::vector< int > fused_bands, double low_resolution, double high_resolution, TeSharedPtr< double > ergas)
| Compute the ERGAS index between two raster set.
bool | structural_similarity_index (TePDITypes::TePDIRasterPtrType original_raster, int original_band, TePDITypes::TePDIRasterPtrType fused_raster, int fused_band, TeSharedPtr< double > simm)
| Compute the STRUCTURAL SIMILARITY index between two rasters.
bool | fit_histogram (TePDITypes::TePDIRasterPtrType original_raster, int original_band, TePDITypes::TePDIRasterPtrType pan_raster, int pan_band, TePDITypes::TePDIRasterPtrType temp_raster)
| Fit histogram between two rasters.
bool | sergas_index (TePDITypes::TePDIRasterVectorType original_rasters, std::vector< int > original_bands, TePDITypes::TePDIRasterPtrType pan_raster, int pan_band, TePDITypes::TePDIRasterVectorType fused_rasters, std::vector< int > fused_bands, double low_resolution, double high_resolution, TeSharedPtr< double > ergas)
| Compute the Spatial ERGAS index between two raster set.
bool | spatial_correlation_coefficient_index (TePDITypes::TePDIRasterPtrType fused_raster, int fused_band, TePDITypes::TePDIRasterPtrType pan_raster, int pan_band, TeSharedPtr< double > scc)
| Compute the Spacial Correlation Coefficient index between two rasters.

## Detailed Description

This is the class for principal components generation.

Author:
  Felipe Castro da Silva <felipe@dpi.inpe.br>

Note:
  The required parameters for band to band indexes are:

Parameters:

  index_type | (TePDIFusionIndexes::TeFusionIndexes) - CC, SDD, BIAS, RMSE
  original_raster | (TePDITypes::TePDIRasterPtrType) - Original raster.
  original_band | (int) - Band of the Original raster.
  fused_raster | (TePDITypes::TePDIRasterPtrType) - Fused raster.
  fused_band | (int) - Band of the Fused raster.
  index_value | (TeSharedPtr<double>) - Index value.

Note:
  The required parameters for all bands indexes are:

Parameters:

  index_type | (TePDIFusionIndexes::TeFusionIndexes) - ERGAS
  original_rasters | (TePDITypes::TePDIRasterVectorType) - Original rasters.
  original_bands | (std::vector<int>) - Bands of the Original rasters.
  fused_rasters | (TePDITypes::TePDIRasterVectorType) - Fused rasters.
  fused_bands | (std::vector<int>) - Band of the Fused rasters.
  index_value | (TeSharedPtr<double>) - Index value.

## Member Typedef Documentation

typedef const TeSharedPtr< TePDIFusionIndexes > TePDIFusionIndexes::const_pointer

Type definition for a const algorithm instance pointer.

Reimplemented from TePDIAlgorithm.

typedef TeSharedPtr< TePDIFusionIndexes > TePDIFusionIndexes::pointer

Type definition for an algorithm instance pointer.

Reimplemented from TePDIAlgorithm.

## Member Enumeration Documentation

enum TePDIFusionIndexes::TeFusionIndexes

Fusion indexes available

Enumerator:

  CC |
  BIAS |
  VARDIF |
  SDD |
  UIQI |
  RMSE |
  ERGAS |
  SIMM |
  SERGAS |
  SCC |

## Constructor & Destructor Documentation

TePDIFusionIndexes::TePDIFusionIndexes | ( |  | ) |

Default Constructor.

TePDIFusionIndexes::~TePDIFusionIndexes | ( |  | ) |

Default Destructor.

## Member Function Documentation

bool TePDIFusionIndexes::bias_index | ( | TePDITypes::TePDIRasterPtrType | original_raster,
|  | int | original_band,
|  | TePDITypes::TePDIRasterPtrType | fused_raster,
|  | int | fused_band,
|  | TeSharedPtr< double > | bias
| ) |  | `[protected]`

Compute the BIAS index between two rasters.

Returns:
  true if OK. false on error.

bool TePDIFusionIndexes::CheckParameters | ( | const TePDIParameters & | parameters | ) | const`[virtual]`

Checks if the supplied parameters fits the requirements of each PDI algorithm implementation.

Note:
  Error log messages must be generated. No exceptions generated.

Parameters:

  parameters | The parameters to be checked.

Returns:
  true if the parameters are OK. false if not.

Implements TePDIAlgorithm.

bool TePDIFusionIndexes::correlation_coefficient_index | ( | TePDITypes::TePDIRasterPtrType | original_raster,
|  | int | original_band,
|  | TePDITypes::TePDIRasterPtrType | fused_raster,
|  | int | fused_band,
|  | TeSharedPtr< double > | bias
| ) |  | `[protected]`

Compute the CORRELATION COEFFICIENT INDEX between two rasters.

Returns:
  true if OK. false on error.

bool TePDIFusionIndexes::ergas_index | ( | TePDITypes::TePDIRasterVectorType | original_rasters,
|  | std::vector< int > | original_bands,
|  | TePDITypes::TePDIRasterVectorType | fused_rasters,
|  | std::vector< int > | fused_bands,
|  | double | low_resolution,
|  | double | high_resolution,
|  | TeSharedPtr< double > | ergas
| ) |  | `[protected]`

Compute the ERGAS index between two raster set.

Returns:
  true if OK. false on error.

bool TePDIFusionIndexes::fit_histogram | ( | TePDITypes::TePDIRasterPtrType | original_raster,
|  | int | original_band,
|  | TePDITypes::TePDIRasterPtrType | pan_raster,
|  | int | pan_band,
|  | TePDITypes::TePDIRasterPtrType | temp_raster
| ) |  | `[protected]`

Fit histogram between two rasters.

Returns:
  true if OK. false on error.

bool TePDIFusionIndexes::raster_mean | ( | TePDITypes::TePDIRasterPtrType | raster,
|  | int | band,
|  | double & | mean
| ) |  | `[protected]`

Compute the raster meam.

Returns:
  true if OK. false on error.

bool TePDIFusionIndexes::rasters_difference | ( | TePDITypes::TePDIRasterPtrType | raster1,
|  | int | band1,
|  | TePDITypes::TePDIRasterPtrType | raster2,
|  | int | band2,
|  | TePDITypes::TePDIRasterPtrType | raster_diff,
|  | int | band_diff
| ) |  | `[protected]`

Compute the difference between two rasters.

Returns:
  true if OK. false on error.

void TePDIFusionIndexes::ResetState | ( | const TePDIParameters & |  | ) | `[protected, virtual]`

Reset the internal state to the initial state.

Parameters:

  params | The new parameters referente at initial state.

Implements TePDIAlgorithm.

bool TePDIFusionIndexes::rmse_index | ( | TePDITypes::TePDIRasterPtrType | original_raster,
|  | int | original_band,
|  | TePDITypes::TePDIRasterPtrType | fused_raster,
|  | int | fused_band,
|  | TeSharedPtr< double > | rmse
| ) |  | `[protected]`

Compute the RMSE index between two rasters.

Returns:
  true if OK. false on error.

bool TePDIFusionIndexes::RunImplementation | ( |  | ) | `[protected, virtual]`

Decide the direction of the analysis based on the analysis_type parameter.

Returns:
  true if OK. false on error.

Implements TePDIAlgorithm.

bool TePDIFusionIndexes::sergas_index | ( | TePDITypes::TePDIRasterVectorType | original_rasters,
|  | std::vector< int > | original_bands,
|  | TePDITypes::TePDIRasterPtrType | pan_raster,
|  | int | pan_band,
|  | TePDITypes::TePDIRasterVectorType | fused_rasters,
|  | std::vector< int > | fused_bands,
|  | double | low_resolution,
|  | double | high_resolution,
|  | TeSharedPtr< double > | ergas
| ) |  | `[protected]`

Compute the Spatial ERGAS index between two raster set.

Returns:
  true if OK. false on error.

bool TePDIFusionIndexes::spatial_correlation_coefficient_index | ( | TePDITypes::TePDIRasterPtrType | fused_raster,
|  | int | fused_band,
|  | TePDITypes::TePDIRasterPtrType | pan_raster,
|  | int | pan_band,
|  | TeSharedPtr< double > | scc
| ) |  | `[protected]`

Compute the Spacial Correlation Coefficient index between two rasters.

Returns:
  true if OK. false on error.

bool TePDIFusionIndexes::standard_deviation_diff_index | ( | TePDITypes::TePDIRasterPtrType | original_raster,
|  | int | original_band,
|  | TePDITypes::TePDIRasterPtrType | fused_raster,
|  | int | fused_band,
|  | TeSharedPtr< double > | bias
| ) |  | `[protected]`

Compute the STANDARD DEVIATION INDEX of the raster produce by the difference between two rasters.

Returns:
  true if OK. false on error.

bool TePDIFusionIndexes::structural_similarity_index | ( | TePDITypes::TePDIRasterPtrType | original_raster,
|  | int | original_band,
|  | TePDITypes::TePDIRasterPtrType | fused_raster,
|  | int | fused_band,
|  | TeSharedPtr< double > | simm
| ) |  | `[protected]`

Compute the STRUCTURAL SIMILARITY index between two rasters.

Returns:
  true if OK. false on error.

bool TePDIFusionIndexes::uiqi_index | ( | TePDITypes::TePDIRasterPtrType | original_raster,
|  | int | original_band,
|  | TePDITypes::TePDIRasterPtrType | fused_raster,
|  | int | fused_band,
|  | TeSharedPtr< double > | uiqi
| ) |  | `[protected]`

Compute the UIQI between two rasters.

Returns:
  true if OK. false on error.

bool TePDIFusionIndexes::variance_difference_index | ( | TePDITypes::TePDIRasterPtrType | original_raster,
|  | int | original_band,
|  | TePDITypes::TePDIRasterPtrType | fused_raster,
|  | int | fused_band,
|  | TeSharedPtr< double > | vardif
| ) |  | `[protected]`

Compute the VARIANCE DIFFERENCE INDEX between two rasters.

Returns:
  true if OK. false on error.

The documentation for this class was generated from the following files:

- E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/image_processing/TePDIFusionIndexes.hpp
- E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/image_processing/TePDIFusionIndexes.cpp

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines