| TerraLib 4.1

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

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

Public Member Functions | Protected Member Functions
TePDIGeoMosaic Class Reference
Mosaic algorithms.

Mosaic of two geo-referenced rasters. strategy. More...

`#include <TePDIGeoMosaic.hpp>`

Inheritance diagram for TePDIGeoMosaic:

List of all members.

## Public Member Functions

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

## Protected Member Functions

void | ResetState (const TePDIParameters &params)
| Reset the internal state to the initial state.
bool | RunImplementation ()
| Runs the current algorithm implementation.
bool | calcEqParams (const TePDITypes::TePDIRasterPtrType &raster1, const std::vector< unsigned int > &channels1, TePolygon &r1Pol, const TePDITypes::TePDIRasterPtrType &raster2, const std::vector< unsigned int > &channels2, TePolygon &r2Pol, const double &dummyValue, std::vector< double > &pixelOffsets1, std::vector< double > &pixelScales1, std::vector< double > &pixelOffsets2, std::vector< double > &pixelScales2) const
| Calc equalization parameters.
bool | calcStats (const TePDITypes::TePDIRasterPtrType &raster, const std::vector< unsigned int > &channels, TePolygonSet &polSet, const double &dummyValue, std::vector< double > &means, std::vector< double > &variances) const
| Calc mean and variances for each raster channel.

## Detailed Description

Mosaic of two geo-referenced rasters. strategy.

Author:
  Emiliano F. Castejon <castejon@dpi.inpe.br>

Note:
  The required parameters are:

Parameters:

  input_raster1 | ( TePDITypes::TePDIRasterPtrType ) - Input raster 1.
  input_raster2 | ( TePDITypes::TePDIRasterPtrType ) - Input raster 2.
  channels1 | ( std::vector< unsigned int > ) - The channels to process from input_raster1.
  channels2 | ( std::vector< unsigned int > ) - The channels to process from input_raster2.
  output_raster | ( TePDITypes::TePDIRasterPtrType ) - Output raster.

Note:
  The optional parameters are:

Parameters:

  blend_method | ( TePDIBlender::BlendMethod ) - Blending method (default: TePDIBlender::NoBlendMethod).
  interp_method | ( TePDIInterpolator::InterpMethod ) - Interpolation method (default TePDIInterpolator::NNMethod) .
  dummy_value | (double) - A dummy pixel value for use in pixels where no data is available.
  auto_equalize | ( int ) - If present ( any value ) auto-equalizing will be made ( using overlap area reference ).
  raster1_pol | (TePolygon) - A polygon (raster 1 projected coords) delimiting the raster region with valid data (if no polygon is given the entire raster will be considered).
  raster2_pol | (TePolygon) - A polygon (raster 2 projected coords) delimiting the raster region with valid data (if no polygon is given the entire raster will be considered).

Note:
  If the projections are different input_raster2 will be reprojected.
  The reference raster will be that one with better resolution.
  The output_raster parameters will take the choosed reference raster parameters.
  The output raster data type will be automatically to fit the range of both input rasters.

Examples:

  TePDIMosaic_test.cpp.

## Constructor & Destructor Documentation

TePDIGeoMosaic::TePDIGeoMosaic | ( |  | ) |

TePDIGeoMosaic::~TePDIGeoMosaic | ( |  | ) |

## Member Function Documentation

bool TePDIGeoMosaic::calcEqParams | ( | const TePDITypes::TePDIRasterPtrType & | raster1,
|  | const std::vector< unsigned int > & | channels1,
|  | TePolygon & | r1Pol,
|  | const TePDITypes::TePDIRasterPtrType & | raster2,
|  | const std::vector< unsigned int > & | channels2,
|  | TePolygon & | r2Pol,
|  | const double & | dummyValue,
|  | std::vector< double > & | pixelOffsets1,
|  | std::vector< double > & | pixelScales1,
|  | std::vector< double > & | pixelOffsets2,
|  | std::vector< double > & | pixelScales2
| ) |  | const`[protected]`

Calc equalization parameters.

Parameters:

  raster1 | Raster 1 pointer.
  channels1 | Raster 1 channels.
  r1Pol | A polygon (raster 1 projected coords) delimiting the area over raster 1 to be considered.
  raster2 | Raster 2 pointer.
  channels2 | Raster 2 channels.
  r2Pol | A polygon (raster 1 projected coords) delimiting the area over raster 1 to be considered.
  dummyValue | Dummy value.
  pixelOffsets1 | The generated offsets values for raster 1.
  pixelScales1 | The generated scales values for raster 1.
  pixelOffsets2 | The generated offsets values for raster 2.
  pixelScales2 | The generated scales values for raster 2.

Returns:
  true if OK, false on errors.

Note:
  Both rasters must have the same projection.

bool TePDIGeoMosaic::calcStats | ( | const TePDITypes::TePDIRasterPtrType & | raster,
|  | const std::vector< unsigned int > & | channels,
|  | TePolygonSet & | polSet,
|  | const double & | dummyValue,
|  | std::vector< double > & | means,
|  | std::vector< double > & | variances
| ) |  | const`[protected]`

Calc mean and variances for each raster channel.

Parameters:

  raster | Raster pointer.
  channels | Raster channels.
  polSet | The restriction polygon set over input raster.
  dummyValue | Dummy value.
  means | The generated mean values.
  means | The generated variance values.

Returns:
  true if OK, false on errors.

Note:
  Both rasters must have the same projection.

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

Reset the internal state to the initial state.

Parameters:

  params | The new parameters referente at initial state.

Implements TePDIAlgorithm.

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

Runs the current algorithm implementation.

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

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines