java.lang.Object
imagingbook.common.image.GridIndexer2D
imagingbook.common.image.GridIndexer2D.MirrorImageIndexer
- Enclosing class:
GridIndexer2D
This indexer returns mirrored image values for coordinates outside the image bounds. There is no public
constructor. To instantiate use method
GridIndexer2D.create(int, int, OutOfBoundsStrategy) with
OutOfBoundsStrategy.MirrorImage.-
Nested Class Summary
Nested classes/interfaces inherited from class imagingbook.common.image.GridIndexer2D
GridIndexer2D.DefaultValueIndexer, GridIndexer2D.ExceptionIndexer, GridIndexer2D.MirrorImageIndexer, GridIndexer2D.NearestBorderIndexer, GridIndexer2D.OutOfImageException, GridIndexer2D.PeriodicImageIndexer -
Field Summary
Fields inherited from class imagingbook.common.image.GridIndexer2D
DefaultOutOfBoundsStrategy -
Method Summary
Modifier and TypeMethodDescriptionintgetIndex(int u, int v) Returns the 1D array index for a given pair of image coordinates.Methods inherited from class imagingbook.common.image.GridIndexer2D
create, create, getHeight, getOutOfBoundsStrategy, getWidth, getWithinBoundsIndex
-
Method Details
-
getIndex
Description copied from class:GridIndexer2DReturns the 1D array index for a given pair of image coordinates. For u, v coordinates outside the image, the returned index depends on the implementing subclass ofGridIndexer2D. As a general rule, this method either returns a valid 1D array index or throws an exception. Subclasses implement (override) this method.- Specified by:
getIndexin classGridIndexer2D- Parameters:
u- x-coordinatev- y-coordinate- Returns:
- 1D array index
-