Padding and Filtering for segmentation. Matlab is mush faster than Python in terms of gzip compression.