glue.core.subset.
roi_to_subset_state
Given a 2D ROI and attributes on the x and y axis, determine the corresponding subset state.