public class WindowArrayImpl extends WrapperArrayImpl
The window may fall wholly or partially within or without the bounds of the base array, but must be of the same dimensionality as it.
| Constructor and Description |
|---|
WindowArrayImpl(NDArray nda,
NDShape window)
Constructs a new ArrayImpl from a base NDArray and a given window shape.
|
| Modifier and Type | Method and Description |
|---|---|
AccessImpl |
getAccess()
Returns an object which can access the pixels of this ArrayImpl.
|
BadHandler |
getBadHandler() |
OrderedNDShape |
getShape()
Returns an object representing the shape (origin and dimensions)
and pixel sequence of this object.
|
canMap, close, getBadValue, getMapped, getType, getWrapped, isRandom, isReadable, isWritable, multipleAccess, open, toStringpublic WindowArrayImpl(NDArray nda, NDShape window)
nda - the base NDArray which supplies the original pixel valueswindow - the shape of the window through which the base
array will be viewed. Must have the same number
of dimensions as ndaIllegalArgumentException - if window has a different number of
dimensions from ndapublic OrderedNDShape getShape()
ArrayImplgetShape in interface ArrayImplgetShape in class WrapperArrayImplpublic BadHandler getBadHandler()
public AccessImpl getAccess() throws IOException
ArrayImplThis method will only be called after the sole call to open and before the sole call to close.
This method will only be called more than once if the multipleAccess method returns true.
It is the responsibility of the caller to close the returned AccessImpl when it is no longer required; this enables resources it may hold to be released.
getAccess in interface ArrayImplgetAccess in class WrapperArrayImplIOException - if there is an IO errorCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.