Added in subsampling for segments (should speed up for higher resolutions. Still need to utlize feature and compare performance