| TerraLib 4.1

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

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

Classes | Public Member Functions | Protected Types | Protected Member Functions
TePDIBatchGeoMosaic Class Reference
Mosaic algorithms.

Mosaic of many geo-referenced rasters. More...

`#include <TePDIBatchGeoMosaic.hpp>`

Inheritance diagram for TePDIBatchGeoMosaic:

List of all members.

## Classes

class | RastersListNodeT
| Rasters list node type definition. More...

## Public Member Functions

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

## Protected Types

typedef std::list < RastersListNodeT > | RastersListT
| Rasters list type definition.

## Protected Member Functions

void | ResetState (const TePDIParameters &params)
| Reset the internal state to the initial state.
bool | RunImplementation ()
| Runs the current algorithm implementation.
bool | getRUsedChannels (const unsigned int &inputRastersIdx, const std::vector< unsigned int > &bands, const TePDITypes::TePDIRasterVectorType &input_rasters, std::vector< unsigned int > &channels) const
| Find the channels for the raster with index inputRastersIdx.
bool | initRastersList (const std::vector< unsigned int > &bands, const TePDITypes::TePDIRasterVectorType &input_rasters, TeProjection *referenceProjPtr, RastersListT &rList) const
| Initiate the rasters list.
TeProjection * | getFreqProjection (const TePDITypes::TePDIRasterVectorType &rastersVec) const
| Return the most frequent projection among the given rasters.
bool | extractCloserRasterNode (RastersListT &rList, const RastersListNodeT &inputNode, RastersListNodeT &outputNode) const
| Extract the raster closer to given inputNode.
bool | extractClosestRastersNodes (RastersListT &rList, RastersListNodeT &outputNode1, RastersListNodeT &outputNode2) const
| Extract the raster closer to given inputNode.

## Detailed Description

Mosaic of many geo-referenced rasters.

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

Note:
  The required parameters are:

Parameters:

  input_rasters | ( TePDITypes::TePDIRasterVectorType ) - Input rasters vector (i.e if using two bands from each raster, the vector will follow the order [ raster0 raster0 raster1 raster1 ...... ] ).
  bands | ( std::vector< unsigned int > ) - The bands from each input_raster following the order [Raster0 Band 0 - Raster0 Band 1 - .... RasterN Band 0 - RasterN Band 1 - .... - RasterN Band N ].
  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 ).

Note:
  The output_raster pixel resolution will follow the best pixel resolution found.
  Please check each blending strategy for other specific required parameters.

Examples:

  TePDIMosaic_test.cpp.

## Member Typedef Documentation

typedef std::list< RastersListNodeT > TePDIBatchGeoMosaic::RastersListT`[protected]`

Rasters list type definition.

## Constructor & Destructor Documentation

TePDIBatchGeoMosaic::TePDIBatchGeoMosaic | ( |  | ) |

TePDIBatchGeoMosaic::~TePDIBatchGeoMosaic | ( |  | ) |

## Member Function Documentation

bool TePDIBatchGeoMosaic::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 TePDIBatchGeoMosaic::extractCloserRasterNode | ( | RastersListT & | rList,
|  | const RastersListNodeT & | inputNode,
|  | RastersListNodeT & | outputNode
| ) |  | const`[protected]`

Extract the raster closer to given inputNode.

Parameters:

  rList | The rasters list. The input rasters vector.
  inputNode | Input node with the input raster.
  outputNode | The extracted node.

Returns:
  true if ok, false on errors.

bool TePDIBatchGeoMosaic::extractClosestRastersNodes | ( | RastersListT & | rList,
|  | RastersListNodeT & | outputNode1,
|  | RastersListNodeT & | outputNode2
| ) |  | const`[protected]`

Extract the raster closer to given inputNode.

Parameters:

  rList | The rasters list. The input rasters vector.
  outputNode1 | The extracted node 1.
  outputNode2 | The extracted node 2.

Returns:
  true if ok, false on errors.

TeProjection * TePDIBatchGeoMosaic::getFreqProjection | ( | const TePDITypes::TePDIRasterVectorType & | rastersVec | ) | const`[protected]`

Return the most frequent projection among the given rasters.

Parameters:

  rastersVec | The input rasters vector.

Returns:
  A pointer to the choosed projection or NULL if not found.

Note:
  The returned projection should not be altered !!

bool TePDIBatchGeoMosaic::getRUsedChannels | ( | const unsigned int & | inputRastersIdx,
|  | const std::vector< unsigned int > & | bands,
|  | const TePDITypes::TePDIRasterVectorType & | input_rasters,
|  | std::vector< unsigned int > & | channels
| ) |  | const`[protected]`

Find the channels for the raster with index inputRastersIdx.

Parameters:

  inputRastersIdx | Raster index inside input_rasters;
  bands | The user suplied bands vector.
  input_rasters | The user suplied input rasters pointers vector.
  The | channels to use for the required raster.

Returns:
  true if OK, false on errors.

bool TePDIBatchGeoMosaic::initRastersList | ( | const std::vector< unsigned int > & | bands,
|  | const TePDITypes::TePDIRasterVectorType & | input_rasters,
|  | TeProjection * | referenceProjPtr,
|  | RastersListT & | rList
| ) |  | const`[protected]`

Initiate the rasters list.

Parameters:

  bands | The user suplied bands vector..
  input_rasters | The user suplied input rasters pointers vector.
  referenceProjPtr | Reference projection pointer.
  rList | The rasters list to initialize.

Returns:
  true if OK, false on errors.

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

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines