ee.Reducer.anyNonZero
Returns a Reducer that returns 1 if any of its inputs are non-zero, 0 otherwise. Where applicable, the output name is "any".
Usage | Returns |
---|
ee.Reducer.anyNonZero() | Reducer |
No arguments.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-13 UTC.
[null,null,["Last updated 2024-07-13 UTC."],[[["Returns a Reducer that outputs 1 if any input value is non-zero, and 0 otherwise."],["The output of this reducer is typically named \"any\"."],["This reducer has no arguments and is used to aggregate pixel values within regions of an image."],["Usage involves calling `ee.Reducer.anyNonZero()`."]]],["The `ee.Reducer.anyNonZero()` function returns a Reducer. This Reducer checks if any input values are non-zero. If at least one input is non-zero, it returns 1; otherwise, it returns 0. The output of this Reducer is named \"any\" when applicable. The function does not accept any arguments.\n"]]