20#ifndef __TERRALIB_RP_INTERNAL_ASSISTEDHARMONIZATION_H
21#define __TERRALIB_RP_INTERNAL_ASSISTEDHARMONIZATION_H
28#include <boost/ptr_container/ptr_vector.hpp>
62 typedef std::map< TargetAreasClassIDT, TargetAreasGeomContT >
108 std::string, std::string > >& info )
const;
170 const std::vector< double >& gains,
171 const std::vector< double >& inputOffsets,
172 const std::vector< double >& outputOffsets,
191 const std::vector< unsigned int >& inputRasterBandsIndexes,
193 std::map< InputParameters::TargetAreasClassIDT, unsigned int>& samplesNumber,
194 std::map<
unsigned int, std::vector< double > >& means,
195 std::map<
unsigned int, std::vector< double > >& stdDevs )
const;
200 boost::ptr_vector< InputParameters::TargetAreasGeomT >& outGeomHandler,
201 const int targetSRID );
211 const std::map< InputParameters::TargetAreasClassIDT, unsigned int>&
212 referenceSamplesNumber,
224 const std::vector< double >& gains,
225 const std::vector< double >& inputOffsets,
226 const std::vector< double >& outputOffsets,
233 double&a,
double& b );
A RAM cache adaptor to an external existent raster that must always be avaliable.
Polygon is a subclass of CurvePolygon whose rings are defined by linear rings.
AbstractParameters()
Constructor.
Polygon is a subclass of CurvePolygon whose rings are defined by linear rings.
A RAM cache adaptor to an external existent raster that must always be avaliable.
Raster Processing algorithm output parameters base interface.
AlgorithmOutputParameters()
AssistedHarmonization output parameters.
OutputParameters(const OutputParameters &)
const OutputParameters & operator=(const OutputParameters ¶ms)
void reset()
Clear all internal allocated resources and reset the parameters instance to its initial state.
std::vector< double > m_outOffsets
The bands output offsets used to generate the output raster (output = ( ( input - input_offset ) * ga...
std::string m_rType
Output raster data source type (as described in te::raster::RasterFactory ).
AbstractParameters * clone() const
Create a clone copy of this instance.
std::vector< double > m_gains
The bands gains used to generate the output raster (output = ( ( input - input_offset ) * gain ) + ou...
std::unique_ptr< te::rst::Raster > m_outputRasterPtr
The generated output registered raster.
std::map< std::string, std::string > m_rInfo
The necessary information to create the output rasters (as described in te::raster::RasterFactory).
std::vector< double > m_inOffsets
The bands input offsets used to generate the output raster (output = ( ( input - input_offset ) * gai...
AssistedHarmonization::InputParameters m_inputParameters
Input execution parameters.
void reset()
Clear all internal allocated objects and reset the algorithm to its initial state.
bool m_isInitialized
Tells if this instance is initialized.
bool execute(AlgorithmOutputParameters &outputParams)
Executes the algorithm using the supplied parameters.
void reprojectGeometries(const AssistedHarmonization::InputParameters::TargetAreasContT &inGeoms, AssistedHarmonization::InputParameters::TargetAreasContT &outGeoms, boost::ptr_vector< InputParameters::TargetAreasGeomT > &outGeomHandler, const int targetSRID)
bool calcClassGainsOffsets(const std::map< InputParameters::TargetAreasClassIDT, std::vector< double > > &referenceMeans, const std::map< InputParameters::TargetAreasClassIDT, std::vector< double > > &referenceStdDevs, const std::map< InputParameters::TargetAreasClassIDT, unsigned int > &referenceSamplesNumber, const std::map< InputParameters::TargetAreasClassIDT, std::vector< double > > &adjustMeans, const std::map< InputParameters::TargetAreasClassIDT, std::vector< double > > &adjustStdDevs, std::map< InputParameters::TargetAreasClassIDT, std::vector< double > > &classesGains, std::map< InputParameters::TargetAreasClassIDT, std::vector< double > > &classesOffsets)
bool initialize(const AlgorithmInputParameters &inputParams)
Initialize the algorithm instance making it ready for execution.
bool copyRasterData(const te::rst::Raster &inRaster, const std::vector< double > &gains, const std::vector< double > &inputOffsets, const std::vector< double > &outputOffsets, te::rst::Raster &outRaster)
bool isInitialized() const
Returns true if the algorithm instance is initialized and ready for execution.
bool MSEHMethodImp(const te::mem::CachedRaster &refInputCRaster, const te::mem::CachedRaster &adjInputCRaster, const InputParameters::TargetAreasContT &referenceTargetAreasReproj, const InputParameters::TargetAreasContT &adjustTargetAreasReproj, AssistedHarmonization::OutputParameters *outParamsPtr)
bool MeanStdHMethodImp(const te::mem::CachedRaster &refInputCRaster, const te::mem::CachedRaster &adjInputCRaster, const InputParameters::TargetAreasContT &referenceTargetAreasReproj, const InputParameters::TargetAreasContT &adjustTargetAreasReproj, AssistedHarmonization::OutputParameters *outParamsPtr)
bool getRasterStatistics(const te::rst::Raster &inputRaster, const std::vector< unsigned int > &inputRasterBandsIndexes, const InputParameters::TargetAreasContT &targetAreas, std::map< InputParameters::TargetAreasClassIDT, unsigned int > &samplesNumber, std::map< unsigned int, std::vector< double > > &means, std::map< unsigned int, std::vector< double > > &stdDevs) const
bool CreateOutRaster(const te::mem::CachedRaster &adjInputCRaster, const std::vector< double > &gains, const std::vector< double > &inputOffsets, const std::vector< double > &outputOffsets, AssistedHarmonization::OutputParameters *outParamsPtr)
bool linearRegression(std::vector< std::pair< double, double > > &coords, double &a, double &b)
An abstract class for raster data strucutures.
Namespace for Raster Processing module of TerraLib.
An abstract class for raster data strucutures.
Raster Processing algorithm base interface class.
#define TERPEXPORT
You can use this macro in order to export/import classes and functions from this module.