SPATMOD::IMAGE::FILTER_MOSAIC Class Reference

Filter to mosaic images. More...

#include <spatmod/imagefiltermosaic.h>

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

List of all members.

Public Types

enum  FEATHERMETHOD { FEATHERMETHOD_None, FEATHERMETHOD_Linear, FEATHERMETHOD_Nonlinear }
enum  OVERLAPMETHOD {
  OVERLAPMETHOD_First, OVERLAPMETHOD_Last, OVERLAPMETHOD_Minimum, OVERLAPMETHOD_Maximum,
  OVERLAPMETHOD_ClosestToSpecified
}

Public Member Functions

 FILTER_MOSAIC (STAGE_ARRAY &PreviousStages, bool TakeOwnership, const BASE &RefImage, RESAMPLEMETHOD ResampleMethod, OVERLAPMETHOD OverlapMethod)
 FILTER_MOSAIC (STAGE_ARRAY &PreviousStages, bool TakeOwnership, const DIMENSIONS &Dimensions, const GEOREFERENCE &Georeference, RESAMPLEMETHOD ResampleMethod, OVERLAPMETHOD OverlapMethod)
virtual ~FILTER_MOSAIC ()
void SetAccuracy (double accuracy)
ERRVALUE SetPixelTestClosest (const PIXEL &PixelTestClosest)

Detailed Description

Filter to mosaic images.

The coordinate transformation between resulting image and each 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 images will not be processed "sequentially", and the sections specified in PullBegin for the source will overlap. It is recommended that a suitable caching filter be placed ahead of this filter if the input requires significant computation or sequential iteration.


Member Enumeration Documentation

Enumerator:
FEATHERMETHOD_None 
FEATHERMETHOD_Linear 
FEATHERMETHOD_Nonlinear 
Enumerator:
OVERLAPMETHOD_First 

Use first valid pixel.

OVERLAPMETHOD_Last 

Use last valid pixel.

OVERLAPMETHOD_Minimum 

Use pixel with minimum total of sample values.

OVERLAPMETHOD_Maximum 

Use pixel with maximum total of sample values.

OVERLAPMETHOD_ClosestToSpecified 

Use pixel closest to specified value.


Constructor & Destructor Documentation

SPATMOD::IMAGE::FILTER_MOSAIC::FILTER_MOSAIC ( STAGE_ARRAY PreviousStages,
bool  TakeOwnership,
const DIMENSIONS Dimensions,
const GEOREFERENCE Georeference,
RESAMPLEMETHOD  ResampleMethod,
OVERLAPMETHOD  OverlapMethod 
)

Construct using specified dimensions and georeference.

Parameters:
PreviousStages Array of previous stages, all must have same pixel properties and be georeferenced
TakeOwnership Filter takes ownership of previous stages and will delete when needed
Dimensions Resulting image dimensions
Georeference Georeference for resulting image
ResampleMethod Resampling method
OverlapMethod Overlap control method
SPATMOD::IMAGE::FILTER_MOSAIC::FILTER_MOSAIC ( STAGE_ARRAY PreviousStages,
bool  TakeOwnership,
const BASE RefImage,
RESAMPLEMETHOD  ResampleMethod,
OVERLAPMETHOD  OverlapMethod 
)

Construct to match specified reference image.

Parameters:
PreviousStages Array of previous stages, all must have same pixel type and be georeferenced
TakeOwnership Filter takes ownership of previous stages and will delete when needed
RefImage Reference image to match
ResampleMethod Resampling method
OverlapMethod Overlap control method
virtual SPATMOD::IMAGE::FILTER_MOSAIC::~FILTER_MOSAIC (  )  [virtual]

Member Function Documentation

void SPATMOD::IMAGE::FILTER_MOSAIC::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.
ERRVALUE SPATMOD::IMAGE::FILTER_MOSAIC::SetPixelTestClosest ( const PIXEL PixelTestClosest  ) 

Set pixel for OVERLAPMETHOD_ClosestToSpecified.

If not specified, the center of the valid data range will be used by default.

Parameters:
PixelTestClosest Pixel value, must have same properties as image itself

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

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