Earth Engine has introduced noncommercial quota tiers to safeguard shared compute resources and ensure reliable performance for everyone. Noncommercial projects use the Community Tier by default, though you can change a project's tier at any time.
ee.Kernel.fixed
Stay organized with collections
Save and categorize content based on your preferences.
Page Summary
The ee.Kernel.fixed() method creates a Kernel object.
This method takes optional arguments for width, height, x and y focus locations, and a boolean to normalize the weights, but requires a 2-D list of weights.
The weights argument should be a 2-D list with dimensions matching the height and width of the kernel.
Examples in JavaScript and Python demonstrate how to create a fixed kernel using a list of weights.
Creates a Kernel.
Usage
Returns
ee.Kernel.fixed(width, height, weights, x, y, normalize)
Kernel
Argument
Type
Details
width
Integer, default: -1
The width of the kernel in pixels.
height
Integer, default: -1
The height of the kernel in pixels.
weights
List
A 2-D list of [height] x [width] values to use as the weights of the kernel.
x
Integer, default: -1
The location of the focus, as an offset from the left.
y
Integer, default: -1
The location of the focus, as an offset from the top.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-10-06 UTC."],[],["The function `ee.Kernel.fixed` creates a kernel using specified parameters. Key actions involve defining the kernel's `width` and `height` in pixels and providing a 2-D list of `weights`. Users can specify the focus point using `x` and `y` offsets. An option to `normalize` the weights, ensuring they sum to 1, is available. The function then returns a `Kernel` object for use. Example `weights` data are shown.\n"]]