added option to extract stripe instead of matrix (better performance)