Count of Segments

I have an image that I split into many individual images. I threshold these and identify the ROI's, now I want a count of the amount of ROI's identified that come from one original image. I have this Segment Features output, screenshot, that gives the amount of pixels, and the subregion of the original image it is found in. I am oblivious however how to perform a simple count of rows per original image. Any suggestions?


Use the GroupBy node to group by Source Labeling (or by image name) and aggregate with the Count method. To get the original image name or row id in a column, you can use the RowID node before cropping the segments (or use the RowID and String manipulation on your current table).

Thanks a lot.