Mosaic of two rasters linked by a tie-points set. strategy.
More...
#include <TePDITPMosaic.hpp>
List of all members.
Public Member Functions |
| | TePDITPMosaic () |
| | ~TePDITPMosaic () |
| bool | CheckParameters (const TePDIParameters ¶meters) const |
| | Checks if the supplied parameters fits the requirements of each PDI algorithm implementation.
|
Protected Member Functions |
| void | ResetState (const TePDIParameters ¶ms) |
| | 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 &interPolR1Ref, const TePDITypes::TePDIRasterPtrType &raster2, const std::vector< unsigned int > &channels2, TePolygon &interPolR2Ref, 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, TePolygon &interPol, 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 rasters linked by a tie-points set. strategy.
- Author:
- Emiliano F. Castejon <castejon@dpi.inpe.br>
- Note:
- The required parameters are:
- Parameters:
-
- Note:
- The optional parameters are:
- Parameters:
-
- Note:
- The output_raster parameters will take the reference raster parameters.
-
The output raster data type will be automatically to fit the range of both input rasters.
-
Transformation tie-points: TeCoordPair::pt1 are raster 1 indexed (line, column) coordinates and TeCoordPair::pt2 are raster 2 indexed (line, column) coordinates.
- Examples:
-
TePDIMosaic_test.cpp.
Constructor & Destructor Documentation
| TePDITPMosaic::TePDITPMosaic |
( |
| ) |
|
| TePDITPMosaic::~TePDITPMosaic |
( |
| ) |
|
Member Function Documentation
| bool TePDITPMosaic::calcEqParams |
( |
const TePDITypes::TePDIRasterPtrType & |
raster1, |
|
|
const std::vector< unsigned int > & |
channels1, |
|
|
TePolygon & |
interPolR1Ref, |
|
|
const TePDITypes::TePDIRasterPtrType & |
raster2, |
|
|
const std::vector< unsigned int > & |
channels2, |
|
|
TePolygon & |
interPolR2Ref, |
|
|
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. |
| interPolR1Ref | Intersection polygon - Raster 1 projected reference coords. |
| raster1 | Raster 2 pointer. |
| channels1 | Raster 2 channels. |
| interPolR2Ref | Intersection polygon - Raster 2 projected reference coords. |
| dummyValue | Dummy value. |
| pixelOffsets2 | The generated offsets values for raster 1. |
| pixelScales2 | 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.
| bool TePDITPMosaic::calcStats |
( |
const TePDITypes::TePDIRasterPtrType & |
raster, |
|
|
const std::vector< unsigned int > & |
channels, |
|
|
TePolygon & |
interPol, |
|
|
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. |
| interPol | The restriction polygon over input raster (projected coords). |
| dummyValue | Dummy value. |
| means | The generated mean values. |
| means | The generated variance values. |
- Returns:
- true if OK, false on errors.
| bool TePDITPMosaic::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 TePDITPMosaic::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 TePDITPMosaic::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/TePDITPMosaic.hpp
- E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/image_processing/TePDITPMosaic.cpp