公告:所有在
2025 年 4 月 15 日之前注册使用 Earth Engine 的非商业项目都必须
验证是否符合非商业性质的资格条件,才能继续使用 Earth Engine。
ee.Image.focalMin
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
使用命名或自定义内核对图片的每个波段应用形态学缩减器() 过滤条件。
用法 | 返回 |
---|
Image.focalMin(radius, kernelType, units, iterations, kernel) | 图片 |
参数 | 类型 | 详细信息 |
---|
此:image | 图片 | 要对其应用操作的图片。 |
radius | 浮点数,默认值:1.5 | 要使用的内核的半径。 |
kernelType | 字符串,默认值:“circle” | 要使用的内核类型。选项包括:'circle'、'square'、'cross'、'plus'、'octagon' 和 'diamond'。 |
units | 字符串,默认值:“pixels” | 如果未指定内核,此参数用于确定内核的单位是米还是像素。 |
iterations | 整数,默认值:1 | 应用给定内核的次数。 |
kernel | 内核,默认值:null | 自定义内核。如果使用,则忽略 kernelType 和 radius。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eApplies a morphological reducer, \u003ccode\u003efocalMin()\u003c/code\u003e, to each band of an image.\u003c/p\u003e\n"],["\u003cp\u003eUses a kernel specified by type ('circle', 'square', etc.), radius, and units (pixels or meters) to define the neighborhood for reduction.\u003c/p\u003e\n"],["\u003cp\u003eAllows custom kernels to override default kernel settings for more specialized operations.\u003c/p\u003e\n"],["\u003cp\u003eOptionally, performs the reduction multiple times using the \u003ccode\u003eiterations\u003c/code\u003e parameter.\u003c/p\u003e\n"],["\u003cp\u003eReturns a new image with the filter applied.\u003c/p\u003e\n"]]],["The `focalMin()` function applies a morphological reducer filter to each image band. It utilizes either a predefined kernel type (circle, square, etc.) or a user-defined kernel. Key actions include specifying the kernel's radius, type, units (pixels or meters), and iterations. The function can also utilize a custom kernel, in which case the kernel type and radius are disregarded. The output is an image with the filter applied.\n"],null,["# ee.Image.focalMin\n\nApplies a morphological reducer() filter to each band of an image using a named or custom kernel.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-----------------------------------------------------------------------------------------|---------|\n| Image.focalMin`(`*radius* `, `*kernelType* `, `*units* `, `*iterations* `, `*kernel*`)` | Image |\n\n| Argument | Type | Details |\n|---------------|---------------------------|------------------------------------------------------------------------------------------------------------|\n| this: `image` | Image | The image to which to apply the operations. |\n| `radius` | Float, default: 1.5 | The radius of the kernel to use. |\n| `kernelType` | String, default: \"circle\" | The type of kernel to use. Options include: 'circle', 'square', 'cross', 'plus', 'octagon', and 'diamond'. |\n| `units` | String, default: \"pixels\" | If a kernel is not specified, this determines whether the kernel is in meters or pixels. |\n| `iterations` | Integer, default: 1 | The number of times to apply the given kernel. |\n| `kernel` | Kernel, default: null | A custom kernel. If used, kernelType and radius are ignored. |"]]