Combine two RasterData's cells into new cells using the given integer function.
Combine two RasterData's cells into new cells using the given integer function. For every (x,y) cell coordinate, get each RasterData's integer value, map them to a new value, and assign it to the output's (x,y) cell.
Combine two RasterData's cells into new cells using the given double function.
Combine two RasterData's cells into new cells using the given double function. For every (x,y) cell coordinate, get each RasterData's double value, map them to a new value, and assign it to the output's (x,y) cell.
For every cell in the given raster, run the given integer function.
For every cell in the given raster, run the given integer function.
The order of the traversal from the lowest to highest columns, across each row, but this should probably not be relied upon. In the future we'd like to be able to parallelize foreach.
For every cell in the given raster, run the given double function.
For every cell in the given raster, run the given double function.
The order of the traversal from the lowest to highest columns, across each row, but this should probably not be relied upon. In the future we'd like to be able to parallelize foreach.
Map each cell in the given raster to a new one, using the given function.
Map each cell in the given raster to a new one, using the given function.
Map each cell in the given raster to a new one, using the given function.
Map each cell in the given raster to a new one, using the given function.
RasterData based on an Array[Byte] as a bitmask; values are 0 and 1. Thus, there are 8 boolean (0/1) values per byte in the array. For example, Array(11, 9) corresponds to (0 0 0 0 1 0 1 1), (0 0 0 0 1 0 0 1) which means that we have 5 cells set to 1 and 11 cells set to 0.
Note that unlike the other array-based raster data objects we need to be explicitly told our size, since length=7 and length=8 will both need to allocate an Array[Byte] with length=1.