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

This is the class for wavelet+IHS fusion. More...

`#include <TePDIIHSWaveletFusion.hpp>`

Inheritance diagram for TePDIIHSWaveletFusion:

List of all members.

## Public Types

enum | InterpMethod { Nothing = 0, NNMethod = 1, BilinearMethod = 2, BicubicMethod = 3 }

## Public Member Functions

| TePDIIHSWaveletFusion ()
| Default Constructor.
| ~TePDIIHSWaveletFusion ()
| 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.
void | rgb2ihs (double *rgb, double *ihs)
void | ihs2rgb (double *ihs, double *rgb)
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

This is the class for wavelet+IHS 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.
  i_levels | (int) - Decomposition levels for the I component.
  reference_levels | (int) - Decomposition levels for each reference raster.
  filter_file | (std::string) - The wavelet filter file name.
  resampling_type | (TePDIIHSWaveletFusion::InterpMethod) - Resampling type.
  fit_histogram | (bool) - Fit histogram before the substitution.

Examples:

  TePDIFusion_test.cpp.

## Member Enumeration Documentation

enum TePDIIHSWaveletFusion::InterpMethod

Enumerator:

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

## Constructor & Destructor Documentation

TePDIIHSWaveletFusion::TePDIIHSWaveletFusion | ( |  | ) |

Default Constructor.

TePDIIHSWaveletFusion::~TePDIIHSWaveletFusion | ( |  | ) |

Default Destructor.

## Member Function Documentation

bool TePDIIHSWaveletFusion::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.

void TePDIIHSWaveletFusion::ihs2rgb | ( | double * | ihs,
|  | double * | rgb
| ) |  | `[protected]`

bool TePDIIHSWaveletFusion::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 TePDIIHSWaveletFusion::ResetState | ( | const TePDIParameters & |  | ) | `[protected, virtual]`

Reset the internal state to the initial state.

Parameters:

  params | The new parameters referente at initial state.

Implements TePDIAlgorithm.

void TePDIIHSWaveletFusion::rgb2ihs | ( | double * | rgb,
|  | double * | ihs
| ) |  | `[protected]`

bool TePDIIHSWaveletFusion::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/TePDIIHSWaveletFusion.hpp
- E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/image_processing/TePDIIHSWaveletFusion.cpp

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines