| 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
TePDIWiSpeRFusion Class Reference
Image Fusion algorithms.

WiSpeR Fusion. More...

`#include <TePDIWiSpeRFusion.hpp>`

Inheritance diagram for TePDIWiSpeRFusion:

List of all members.

## Public Types

enum | TeSatellitesTypes { CBERS, CBERS2B, IKONOS, QUICKBIRD, SPOT4, SPOT5 }
enum | InterpMethod { Nothing = 0, NNMethod = 1, BilinearMethod = 2, BicubicMethod = 3 }

## Public Member Functions

| TePDIWiSpeRFusion ()
| Default Constructor.
| ~TePDIWiSpeRFusion ()
| 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 | fractions (TeMatrix &p_multi_pan, string satellite, int &pan_index)
| Load spectral function from file.
bool | resampleRasterByResLinsCols (const TePDITypes::TePDIRasterPtrType &input_raster, const TePDITypes::TePDIRasterPtrType &output_raster, double x_resolution_ratio, double y_resolution_ratio, int l, int c, TePDIInterpolator::InterpMethod interpol, bool enable_progress)
| Raster resampling to new resolution, forcing lines and columns.

## Detailed Description

WiSpeR Fusion.

Warning:
  This class is under development and may produce incorrect results or generate execution errors, please wait for the next version.

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

Note:
  The required parameters are:

Parameters:

  input_rasters | (TePDITypes::TePDIRasterVectorType) - Low resolution rasters.
  bands | (std::vector< int >) - The bands from each low resolution raster.
  output_rasters | (TePDITypes::TePDIRasterVectorType) - High resolution fused rasters.
  reference_raster | (TePDITypes::TePDIRasterPtrType) - High resolution raster.
  reference_raster_band | (int) - Reference raster band number.
  rasters_levels | (int) - input_rasters decomposition levels.
  filter_file | (string) - External wavelets filter parameters file.
  reference_levels | (int) - Decomposition levels for each reference raster.
  resampling_type | (TePDIWiSpeRFusion::InterpMethod) - Resampling type.
  fit_histogram | (bool) - Fit histogram before the substitutionion raster.
  satelliteName | (std::string) - File name where are the SRF functions.
  bands_order | (std::vector<int>) - The relation between the input images and their spectral response functions. For example: the CBERS-2B satellite have four CCD multispectral bands: blue, green, red, and nir. If the user selects the input images as red, green and blue, the bands ordering are 3, 2, and 1.

Examples:

  TePDIFusion_test.cpp.

## Member Enumeration Documentation

enum TePDIWiSpeRFusion::InterpMethod

Enumerator:

  Nothing | No interpolation method.
  NNMethod | Near neighborhood interpolation method.
  BilinearMethod | Bilinear interpolation method.
  BicubicMethod | Bicubic interpolation method.

enum TePDIWiSpeRFusion::TeSatellitesTypes

Satellites spectral functions available

Enumerator:

  CBERS |
  CBERS2B |
  IKONOS |
  QUICKBIRD |
  SPOT4 |
  SPOT5 |

## Constructor & Destructor Documentation

TePDIWiSpeRFusion::TePDIWiSpeRFusion | ( |  | ) |

Default Constructor.

TePDIWiSpeRFusion::~TePDIWiSpeRFusion | ( |  | ) |

Default Destructor.

## Member Function Documentation

bool TePDIWiSpeRFusion::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 TePDIWiSpeRFusion::fractions | ( | TeMatrix & | p_multi_pan,
|  | string | satellite,
|  | int & | pan_index
| ) |  | `[protected]`

Load spectral function from file.

Parameters:

  p_multi_pan | Intersection matrix between satellite bands
  satellitesType | Satellite type
  pan_index | Panchromatic index in the p_multi_pan matrix

bool TePDIWiSpeRFusion::resampleRasterByResLinsCols | ( | const TePDITypes::TePDIRasterPtrType & | input_raster,
|  | const TePDITypes::TePDIRasterPtrType & | output_raster,
|  | double | x_resolution_ratio,
|  | double | y_resolution_ratio,
|  | int | l,
|  | int | c,
|  | TePDIInterpolator::InterpMethod | interpol,
|  | bool | enable_progress
| ) |  | `[protected]`

Raster resampling to new resolution, forcing lines and columns.

Parameters:

  input_raster | Input raster.
  output_raster | Output raster.
  x_resolution_ratio | X resolution ratio.
  y_resolution_ratio | Y resolution ratio.
  l | Output raster Lines.
  c | Output raster Columns.
  interpol | Interpolation method.
  enable_progress | Enable/disable the progress interface.

Returns:
  true if OK, false on errors.

Note:
  ( resolution_ratio = output_resolution / input_resolution ).

void TePDIWiSpeRFusion::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 TePDIWiSpeRFusion::RunImplementation | ( |  | ) | `[protected, virtual]`

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

Returns:
  true if OK. false on error.

Implements TePDIAlgorithm.

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

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

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines