skimage 0.17.2

ParametersReturnsBackRef
integrate(ii, start, end)

Parameters

ii : ndarray

Integral image.

start : List of tuples, each tuple of length equal to dimension of `ii`

Coordinates of top left corner of window(s). Each tuple in the list contains the starting row, col, ... index i.e :None:None:`[(row_win1, col_win1, ...), (row_win2, col_win2,...), ...]`.

end : List of tuples, each tuple of length equal to dimension of `ii`

Coordinates of bottom right corner of window(s). Each tuple in the list containing the end row, col, ... index i.e :None:None:`[(row_win1, col_win1, ...), (row_win2, col_win2, ...), ...]`.

Returns

S : scalar or ndarray

Integral (sum) over the given window(s).

Use an integral image to integrate over a given window.

Examples

This example is valid syntax, but we were not able to check execution
>>> arr = np.ones((5, 6), dtype=np.float)
... ii = integral_image(arr)
... integrate(ii, (1, 0), (1, 2)) # sum from (1, 0) to (1, 2) array([3.])
This example is valid syntax, but we were not able to check execution
>>> integrate(ii, [(3, 3)], [(4, 5)])  # sum from (3, 3) to (4, 5)
array([6.])
This example is valid syntax, but we were not able to check execution
>>> # sum from (1, 0) to (1, 2) and from (3, 3) to (4, 5)
... integrate(ii, [(1, 0), (3, 3)], [(1, 2), (4, 5)]) array([3., 6.])
See :

Back References

The following pages refer to to this document either explicitly or contain code examples using this.

skimage.transform.integral.integrate

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


File: /skimage/transform/integral.py#39
type: <class 'function'>
Commit: