Many current operations allowed by Regions2D objects are based on region_id. It works, but in the use case I have it will be a lot more convenient if one could do the same operations (e.g., select_region, plot, mask) by passing in a list of desired region_class values. For example, I want to plot all regions that contain some kind of hake, then the command could be:
Many current operations allowed by
Regions2D
objects are based onregion_id
. It works, but in the use case I have it will be a lot more convenient if one could do the same operations (e.g.,select_region
,plot
,mask
) by passing in a list of desiredregion_class
values. For example, I want to plot all regions that contain some kind of hake, then the command could be: