SPATMOD::IMAGE::FILTER_RESAMPLE Class Reference

Filter to resample/reproject image. More...

#include <spatmod/imagefilterresample.h>

Inheritance diagram for SPATMOD::IMAGE::FILTER_RESAMPLE:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 FILTER_RESAMPLE (STAGE *pPreviousStage, bool TakeOwnership, const DIMENSIONS &Dimensions, const TRANS2D_MAPGEN &TransToPrev, RESAMPLEMETHOD ResampleMethod)
 FILTER_RESAMPLE (STAGE *pPreviousStage, bool TakeOwnership, const BASE &RefImage, RESAMPLEMETHOD ResampleMethod)
 FILTER_RESAMPLE (STAGE *pPreviousStage, bool TakeOwnership, const DIMENSIONS &Dimensions, const GEOREFERENCE &Georeference, RESAMPLEMETHOD ResampleMethod)
virtual ~FILTER_RESAMPLE ()
const TRANS2D_MAPGENGetTransToPrev () const
void SetAccuracy (double accuracy)
void SetUsePrevStageZoom (bool UsePrevStageZoom)

Detailed Description

Filter to resample/reproject image.

The coordinate transformation between resulting image and input stage is computed using georeference as specified in constructor, or georeference from specified reference image, along with the georeference from the input stage. An optional transformation accuracy may be specified via SetAccuracy() to allow use of efficient affine transformation if appropriate. Note that source image will not be processed "sequentially", and the sections specified in PullBegin for the source will overlap. It is recommended that this filter be placed early in the pipeline or that a suitable caching filter be placed ahead of it if the input requires significant computation or sequential iteration.


Constructor & Destructor Documentation

SPATMOD::IMAGE::FILTER_RESAMPLE::FILTER_RESAMPLE ( STAGE pPreviousStage,
bool  TakeOwnership,
const DIMENSIONS Dimensions,
const GEOREFERENCE Georeference,
RESAMPLEMETHOD  ResampleMethod 
)

Construct using specified dimensions and georeference.

Parameters:
pPreviousStage Pointer to previous stage
TakeOwnership Filter takes ownership of previous stage and will delete when needed
Dimensions Resulting image dimensions
Georeference Georeference for resulting image
ResampleMethod Resampling method
SPATMOD::IMAGE::FILTER_RESAMPLE::FILTER_RESAMPLE ( STAGE pPreviousStage,
bool  TakeOwnership,
const BASE RefImage,
RESAMPLEMETHOD  ResampleMethod 
)

Construct to match specified reference image.

Parameters:
pPreviousStage Pointer to previous stage
TakeOwnership Filter takes ownership of previous stage and will delete when needed
RefImage Reference image to match
ResampleMethod Resampling method
SPATMOD::IMAGE::FILTER_RESAMPLE::FILTER_RESAMPLE ( STAGE pPreviousStage,
bool  TakeOwnership,
const DIMENSIONS Dimensions,
const TRANS2D_MAPGEN TransToPrev,
RESAMPLEMETHOD  ResampleMethod 
)

Construct using specified dimensions and general transformation.

Note, the forward direction of the specified transformation is from the resulting image to the previous image. Use of previous stage zoom support is not available with this constructor.

Parameters:
pPreviousStage Pointer to previous stage
TakeOwnership Filter takes ownership of previous stage and will delete when needed
Dimensions Resulting image dimensions
TransToPrev Transformation from resulting image to previous image
ResampleMethod Resampling method
virtual SPATMOD::IMAGE::FILTER_RESAMPLE::~FILTER_RESAMPLE (  )  [virtual]

Member Function Documentation

const TRANS2D_MAPGEN& SPATMOD::IMAGE::FILTER_RESAMPLE::GetTransToPrev (  )  const [inline]

Get transformation to previous stage.

Care must be taken if uses previous stage zoom support as that will not be included in transformation.

void SPATMOD::IMAGE::FILTER_RESAMPLE::SetAccuracy ( double  accuracy  )  [inline]

Set transformation accuracy in source cells.

If within the specified accuracy, a fast affine transformation will be used for computation. If used, must be done before Initialize(). Default accuracy is .5 cells.

Parameters:
accuracy Transformation accuracy in source cells.
void SPATMOD::IMAGE::FILTER_RESAMPLE::SetUsePrevStageZoom ( bool  UsePrevStageZoom  )  [inline]

Set whether to use previous stage zoom support if possible.

Default is to use unless general transformation constructor was used. If used, must be done before Initialize().


The documentation for this class was generated from the following file:

Generated on Sun Oct 7 21:39:57 2012 for TNTsdk 2012 by  doxygen 1.6.1