Synthèse
Performs filtering on the pixel values in an image, which can be used for sharpening an image, blurring an image, detecting edges within an image, or other kernel-based enhancements.
Discussion
For more information about how this function works, see the Convolution raster function.
The referenced raster dataset for the raster object is temporary. To make it permanent, you can call the raster object's save method.
Syntaxe
Convolution (raster, kernel)
Paramètre | Explication | Type de données |
raster | The input raster. | Raster |
kernel [kernel,...] | Specify the filtering method.
(La valeur par défaut est None) | String |
Type de données | Explication |
Raster | The output filtered image. |
Exemple de code
Create an image with edges enhanced with a Laplacian 3X3 filter.
import arcpy
Convolution_raster = arcpy.sa.Convolution(imagePath1, 15)
Rubriques connexes
Vous avez un commentaire à formuler concernant cette rubrique ?