Filter to mosaic images. More...
#include <spatmod/imagefiltermosaic.h>

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) |
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.
| 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.
| 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.
| 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] |
| 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.
| accuracy | Transformation accuracy in source cells. |
Set pixel for OVERLAPMETHOD_ClosestToSpecified.
If not specified, the center of the valid data range will be used by default.
| PixelTestClosest | Pixel value, must have same properties as image itself |
1.6.1