trait BufferTiles extends AnyRef
- Alphabetic
- By Inheritance
- BufferTiles
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
def
apply[K, V <: CellGrid[Int]](seq: Seq[(K, V)], bufferSize: Int, layerBounds: TileBounds)(implicit arg0: SpatialComponent[K], arg1: Stitcher[V], arg2: (V) ⇒ CropMethods[V]): Seq[(K, BufferedTile[V])]
Buffer the tiles of type V by a constant buffer size.
Buffer the tiles of type V by a constant buffer size.
This function will return each of the tiles with a buffer added to them by the contributions of adjacent, abutting tiles.
- K
The key of this tile set RDD, requiring a spatial component.
- V
The tile type, requires a Stitcher[V] and implicit conversion to CropMethods[V]
- seq
The keyed tile collection.
- bufferSize
Number of pixels to buffer the tile with. The tile will only be buffered by this amount on any side if there is an adjacent, abutting tile to contribute the border pixels.
- layerBounds
The boundries of the layer to consider for border pixel contribution. This avoids creating border cells from valid tiles that would be used by keys outside of the bounds (and therefore unused).
-
def
apply[K, V <: CellGrid[Int]](seq: Seq[(K, V)], bufferSizesPerKey: Seq[(K, BufferSizes)])(implicit arg0: SpatialComponent[K], arg1: Stitcher[V], arg2: (V) ⇒ CropMethods[V]): Seq[(K, BufferedTile[V])]
Buffer the tiles of type V by a dynamic buffer size.
Buffer the tiles of type V by a dynamic buffer size.
This function will return each of the tiles with a buffer added to them by the contributions of adjacent, abutting tiles.
- K
The key of this tile set Collection, requiring a spatial component.
- V
The tile type, requires a Stitcher[V] and implicit conversion to CropMethods[V]
- seq
The keyed tile rdd.
- bufferSizesPerKey
A Collection that holds the BufferSizes to use for each key.
-
def
apply[K, V <: CellGrid[Int]](seq: Seq[(K, V)], getBufferSizes: (K) ⇒ BufferSizes)(implicit arg0: SpatialComponent[K], arg1: Stitcher[V], arg2: (V) ⇒ CropMethods[V]): Seq[(K, BufferedTile[V])]
Buffer the tiles of type V by a dynamic buffer size.
Buffer the tiles of type V by a dynamic buffer size.
This function will return each of the tiles with a buffer added to them by the contributions of adjacent, abutting tiles.
- K
The key of this tile set Collection, requiring a spatial component.
- V
The tile type, requires a Stitcher[V] and implicit conversion to CropMethods[V]
- seq
The keyed tile rdd.
- getBufferSizes
A function which returns the BufferSizes that should be used for a tile at this Key.
-
def
apply[K, V <: CellGrid[Int]](seq: Seq[(K, V)], bufferSize: Int)(implicit arg0: SpatialComponent[K], arg1: Stitcher[V], arg2: (V) ⇒ CropMethods[V]): Seq[(K, BufferedTile[V])]
Buffer the tiles of type V by a constant buffer size.
Buffer the tiles of type V by a constant buffer size.
This function will return each of the tiles with a buffer added to them by the contributions of adjacent, abutting tiles.
- K
The key of this tile set Collection, requiring a spatial component.
- V
The tile type, requires a Stitcher[V] and implicit conversion to CropMethods[V]
- bufferSize
Number of pixels to buffer the tile with. The tile will only be buffered by this amount on any side if there is an adjacent, abutting tile to contribute the border pixels.
- def bufferWithNeighbors[K, V <: CellGrid[Int]](seq: Seq[(K, Seq[(Direction, V)])])(implicit arg0: SpatialComponent[K], arg1: Stitcher[V]): Seq[(K, BufferedTile[V])]
-
def
collectWithTileNeighbors[K, V <: CellGrid[Int]](key: K, tile: V, includeKey: (SpatialKey) ⇒ Boolean, getBufferSizes: (SpatialKey) ⇒ BufferSizes)(implicit arg0: SpatialComponent[K], arg1: (V) ⇒ CropMethods[V]): Seq[(K, (Direction, V))]
Collects tile neighbors by slicing the neighboring tiles to the given buffer size