1.
If excludeNoDataValue is set
true then it will only count pixels with value not equal to the nodata value of the raster.
Set excludeNoDataValue to false to get count of all pixels in raster.If the mentioned band index doesn’t exist, this will throw an
IllegalArgumentException.Signatures
Parameters
The input raster.
The band index.
Whether to exclude NoData pixels from the calculation.
Return type
An integer value.

