Perform a function on every cell in a raster with the values from another raster.
Perform a function on every cell in a raster with the values from another raster.
val r1 = LoadFile(a)
val r2 = LoadFile(b)
// Generate a raster by adding the values of each cell in A and B
val result = BinaryLocalMap(r1, r2, {(a:Int, b:Int) => a + b} )
Perform a function on every cell in a raster.
val r = LoadFile(f) val result = LocalMap(R, {x:Int => x + 3} ) // add 3 to every cell in the raster