This document is archived and information here might be outdated.  Recommended version.


IMosaicOperator Interface (ArcObjects .NET 10.6 SDK)
ArcObjects Help for .NET developers > ArcObjects namespaces > DataSourcesRaster > ESRI.ArcGIS.DataSourcesRaster > Interfaces > IM > IMosaicOperator Interface (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (DataSourcesRaster)  

IMosaicOperator Interface

Provides access to members that control custom mosaic operators.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

A mosaic operator is used to resolve overlapping pixels when multiple rasters are mosaicked together using MosaicRaster. A custom mosaic operator implements IMosaicOperator, and two other optional interfaces, IMosiacOperator2, and IMosaicOperator3. IMosaicOperator allows a custom mosaic operator to have any number of properties specific to the operator. At runtime, MosaicRaster will use IMosaicOperator to initialize a custom mosaic operator with the current pixel block dimension before a pixel block is processed, and the current band number before a band (or plane) within the pixel block is processed.
A custom mosaic operator will be asked to operate on a pair of overlapping pixels at a time. The first pixel value comes from the mosaicked raster, and the second comes from the raster that is mosaicking into the mosaicked raster. A custom mosaic operator will use the two values, plus other information obtained during initialization, to generate a new pixel value.
MosaicRaster will use IMosaicOperator2, and call its floating-point version of Operate() if the input raster pixel type can not be represented as a 32-bit integer, including PT_ULONG, PT_FLOAT, and PT_DOUBLE.
For more initialization information, a custom mosaic operator can implement IMosaicOperator3.
ArcGIS provides a set of mosaic operators for common cases, such as first, last, mean, blend, and etc.

Members

Name Description
Write-only property CurrentBand The current band index.
Method Init Initializes a mosaic operator.
Method Operate Operates on two integer values and returns a new one.
Read/write property Properties Mosaic operator properties.

CoClasses that implement IMosaicOperator

CoClasses and Classes Description
BlendMosaicker A custom raster mosaic operator for performing blend value mosaic.
MeanMosaicker A custom raster mosaic operator for performing mean value mosaic.

See Also

IMosaicRaster Interface | IRasterLoader Interface