TerraLib 4.1
TePDIPCAWaveletFusion Class Reference

Image fusion using principal components. More...

#include <TePDIPCAWaveletFusion.hpp>

Inheritance diagram for TePDIPCAWaveletFusion:
TePDIAlgorithm

List of all members.

Public Types

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

Public Member Functions

 TePDIPCAWaveletFusion ()
 Default Constructor.
 ~TePDIPCAWaveletFusion ()
 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 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

Image fusion using principal components.

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.
pca1_levels(int) - Decomposition levels for the PCA1 component.
reference_levels(int) - Decomposition levels for each reference raster.
filter_file(std::string) - The filter file name.
resampling_type(TePDIPCAWaveletFusion::InterpMethod) - Resampling type.
fit_histogram(bool) - Fit histogram before the substitutionion raster.
Examples:

TePDIFusion_test.cpp.


Member Enumeration Documentation

Enumerator:
Nothing 

No interpolation method.

NNMethod 

Near neighborhood interpolation method.

BilinearMethod 

Bilinear interpolation method.

BicubicMethod 

Bicubic interpolation method.


Constructor & Destructor Documentation

TePDIPCAWaveletFusion::TePDIPCAWaveletFusion ( )

Default Constructor.

TePDIPCAWaveletFusion::~TePDIPCAWaveletFusion ( )

Default Destructor.


Member Function Documentation

bool TePDIPCAWaveletFusion::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:
parametersThe parameters to be checked.
Returns:
true if the parameters are OK. false if not.

Implements TePDIAlgorithm.

bool TePDIPCAWaveletFusion::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_rasterInput raster.
output_rasterOutput raster.
x_resolution_ratioX resolution ratio.
y_resolution_ratioY resolution ratio.
lOutput raster Lines.
cOutput raster Columns.
interpolInterpolation method.
enable_progressEnable/disable the progress interface.
Returns:
true if OK, false on errors.
Note:
( resolution_ratio = output_resolution / input_resolution ).
void TePDIPCAWaveletFusion::ResetState ( const TePDIParameters ) [protected, virtual]

Reset the internal state to the initial state.

Parameters:
paramsThe new parameters referente at initial state.

Implements TePDIAlgorithm.

bool TePDIPCAWaveletFusion::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:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines