separate setting rows/cols from calculate_feature function in FeatureRMS