OPT: allow padding of 2D data
OPT: allow padding of 2D data

Former-commit-id: e8fe47c7aa4c4a54737d72ac662a49ab47412ec9 [formerly 55f0325f7cffaec957e927daca62dd04fd0288d9]
Former-commit-id: 307e09d3978e712c9626eac52b9a978db360519a
Former-commit-id: f20b8c85ef82629fc6b90c739924f52a33e42f94
neuropoly/spinalcordtoolbox,neuropoly/spinalcordtoolbox,neuropoly/spinalcordtoolbox,neuropoly/spinalcordtoolbox,neuropoly/spinalcordtoolbox,neuropoly/spinalcordtoolbox,neuropoly/spinalcordtoolbox