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, toString
public 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 nda
IllegalArgumentException
- if window has a different number of
dimensions from nda
public OrderedNDShape getShape()
ArrayImpl
getShape
in interface ArrayImpl
getShape
in class WrapperArrayImpl
public BadHandler getBadHandler()
public AccessImpl getAccess() throws IOException
ArrayImpl
This 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 ArrayImpl
getAccess
in class WrapperArrayImpl
IOException
- if there is an IO errorCopyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.