medpy.iterators.patchwise.CentredPatchIterator.next

CentredPatchIterator.next()

Yields the next patch.

Returns:

patch : ndarray

The extracted patch as a view.

pmask : ndarray

Boolean array denoting the defined part of the patch.

gridid : sequence

N-dimensional grid id.

slicer : list

A list of slice() instances definind the patch.