I want to select the largest region from a tuple of regions (ConnectedRegions
in this case).
threshold (Image, Region, 250, 255)
connection (Region, ConnectedRegions)
* TODO: Get the largest region in ConnectedRegions
What is an elegant way to achieve this?
Updated Answer
Use
select_shape_std
:For other selections criteria, there is
select_shape
.Original Answer
With three operators, you can solve the task in the example:
area_center
,tuple_sort_index
andselect_obj