Assume that we have a 2d-array (such as a depth image). I\'m looking for an efficient way to serialize this array and apply a function.
array