Apply floor, ceiling, and nearest rounding to a NumPy matrix, then add a zero-valued border around each result.