This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > SpatialAnalyst > ESRI.ArcGIS.SpatialAnalyst > Interfaces > IG > IGeneralizeOp Interface > IGeneralizeOp.Nibble Method (ArcObjects .NET 10.4 SDK) |
Replaces areas in a raster corresponding to a mask, with the values of the nearest neighbors.
[Visual Basic .NET] Public Function Nibble ( _ ByVal Raster As IGeoDataset, _ ByVal maskRaster As IGeoDataset, _ ByVal useNoData As Boolean _ ) As IGeoDataset
[C#] public IGeoDataset Nibble ( IGeoDataset Raster, IGeoDataset maskRaster, bool useNoData );
[C++]
HRESULT Nibble(
IGeoDataset* Raster,
IGeoDataset* maskRaster,
VARIANT_BOOL useNoData,
IGeoDataset** Nibble
);
[C++]
Parameters Raster [in]
Raster is a parameter of type IGeoDataset maskRaster [in]
maskRaster is a parameter of type IGeoDataset useNoData [in] useNoData is a parameter of type VARIANT_BOOL Nibble [out, retval]
Nibble is a parameter of type IGeoDataset
raster |
an input Raster dataset |
maskRaster |
the name of a Raster to be used as the mask. Cells with NoData as their value will be nibbled in the first input raster |
useNoData |
Boolean defining if NoData values in the raster are allowed to nibble into the area defined by the maskRaster If True, then the nearest neighbor value will be used whether it is NoData or another data value in the first input raster. NoData values in the first input raster are free to nibble into areas defined in the maskRaster if they are the nearest neighbor. If False, then only data values are free to nibble into areas defined in the maskRaster. NoData values in the first input raster are not allowed to nibble into areas defined in the maskRaster even if they are the nearest neighbor. |