Raster Histograms

URL:
https://<rastercatalogitem-url>/info/histograms
Methods:
GET
Required Capability:
Image, Catalog
Version Introduced:
10.1

Description

The raster histograms resource returns histograms of the associated raster in an image service.

Request parameters

ParameterDetails

f

The response format. The default response format is html .

Values: html | json

Example usage

The following is a sample request URL used to access the histograms resource:

Use dark colors for code blocksCopy
1
https://sampleserver6.arcgisonline.com/arcgis/rest/services/Toronto/ImageServer/1/info/histograms

JSON Response syntax

Refer to Histogram object for the syntax of a histogram.

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
{
  "histograms": [
    <histogram1>,
    <histogram2>,
    <histogram3>,
    ...
  ]
}

JSON Response example

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{
  "histograms": [
    {
      "size": 256,
      "min": -0.5,
      "max": 255.5,
      "counts": [
        42915,
        23218,
        24832,
        25925
        36054,
        57097,
        61278,
        65211
        ...
      ]
    },
    {
      "size": 256,
      "min": -0.5,
      "max": 255.5,
      "counts": [
        42915,
        23218,
        24832,
        25925
        36054,
        57097,
        61278,
        65211
        ...
      ]
    },
    {
      "size": 256,
      "min": -0.5,
      "max": 255.5,
      "counts": [
        42915,
        23218,
        24832,
        25925
        36054,
        57097,
        61278,
        65211
        ...
      ]
    }
  ]
}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.