Announcement: All noncommercial projects registered to use Earth Engine before
April 15, 2025 must
verify noncommercial eligibility to maintain Earth Engine access.
ee.Image.bitCount
Stay organized with collections
Save and categorize content based on your preferences.
Calculates the number of one-bits in the 64-bit two's complement binary representation of the input.
Usage | Returns | Image.bitCount() | Image |
Argument | Type | Details | this: value | Image | The image to which the operation is applied. |
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 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 UTC."],[[["\u003cp\u003eThis operation calculates the number of one-bits in a 64-bit binary representation of an image input.\u003c/p\u003e\n"],["\u003cp\u003eIt applies to an image and returns the modified image.\u003c/p\u003e\n"],["\u003cp\u003eThe function \u003ccode\u003eImage.bitCount()\u003c/code\u003e is used for this operation.\u003c/p\u003e\n"]]],["The core functionality determines the count of one-bits within the 64-bit two's complement binary form of an input image. The operation, `bitCount()`, is applied to an image (`value`) and outputs a new image. The result represents the number of set bits within the binary representation of each pixel in the provided input `Image`. The function does not take other inputs than the `value` to process.\n"],null,["# ee.Image.bitCount\n\nCalculates the number of one-bits in the 64-bit two's complement binary representation of the input.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|--------------------|---------|\n| Image.bitCount`()` | Image |\n\n| Argument | Type | Details |\n|---------------|-------|----------------------------------------------|\n| this: `value` | Image | The image to which the operation is applied. |"]]