spatialDecompose.m is deprecated