imglib / imglib2-roi

Regions of interest (ROIs) and labelings for ImgLib2
Other
8 stars 8 forks source link

Add helper methods #59

Closed jdeschamps closed 2 years ago

jdeschamps commented 2 years ago

Following a PR (https://github.com/imglib/imglib2-algorithm/pull/91), I moved two helper methods out of imglib2-algorithm to imglib2-roi as they pertain to labelings.

The first method (getOccurringPixelSets) simply returns a Set of the occuring pixel values. The second method checks if there are intersecting labels in the ImgLabeling. I also added unit tests.