Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
In Earth Engine werden morphologische Vorgänge als Fokusvorgänge implementiert, insbesondere die Instanzmethoden focalMax(), focalMin(), focalMedian() und focalMode() der Klasse Image. (Dies sind Verknüpfungen für die allgemeinere Funktion reduceNeighborhood(), mit der die Pixel in einem Kernel in jeden Reducer mit numerischer Ausgabe eingegeben werden können. Weitere Informationen zum Verringern von Nachbarschaften finden Sie auf dieser Seite. Die morphologischen Operatoren sind nützlich für Operationen wie Erosion, Dilatation, Öffnung und Schließung. Wenn Sie beispielsweise einen Öffnungsvorgang ausführen möchten, verwenden Sie focalMin() gefolgt von focalMax():
Beachten Sie, dass im vorherigen Beispiel dem morphologischen Operator ein Kernel-Argument übergeben wird. Die Pixel, die von nicht nullwertigen Elementen des Kernels abgedeckt sind, werden bei der Berechnung verwendet. Mit dem Argument „iterations“ wird angegeben, wie oft der Operator angewendet werden soll.
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Benötigte Informationen nicht gefunden","missingTheInformationINeed","thumb-down"],["Zu umständlich/zu viele Schritte","tooComplicatedTooManySteps","thumb-down"],["Nicht mehr aktuell","outOfDate","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Problem mit Beispielen/Code","samplesCodeIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-02-18 (UTC)."],[[["Earth Engine uses focal operations like `focalMax()`, `focalMin()`, `focalMedian()`, and `focalMode()` to implement morphological operations for image processing."],["Morphological operations, such as erosion, dilation, opening, and closing, can be performed using these focal operations to modify image structures."],["Users can define kernels to specify the shape and size of the neighborhood used in the operations and control the number of times the operation is applied with the iterations argument."],["An opening operation, for example, can be achieved by applying `focalMin()` followed by `focalMax()` with a defined kernel."]]],["Earth Engine's `Image` class provides `focalMax()`, `focalMin()`, `focalMedian()`, and `focalMode()` for morphological operations like erosion, dilation, opening, and closing. These operations use a kernel to define the neighborhood of pixels. For example, the opening operation is achieved by applying `focalMin()` then `focalMax()`. A kernel argument defines the area for computation, and the iterations argument specifies the number of operator applications. The provided code demonstrates the opening operation on a Landsat 8 image using a circular kernel.\n"]]