Great! Thanks so much! And also a biiiig thanks to the people implementing all of this!!!
Of course, one short comment
final RandomAccessibleInterval outline = opService.morphology().outline( Views.zeroMin( mask ), true );
final Polygon2D contour = opService.geom().contour( mask, true );
final double boundarySize = opService.geom().boundarySize( contour ).getRealDouble();
outline only works with
Views.zeroMin() whereas the contour also works with
RAIs with a non-zero offset.
In an ideal world
opService.morphology().outline() would not crash for non-zero offsets but return an
RAI that has the same offset as the input RAI. This becomes important when working with BigImageData where small RAIs can be crops of a bigger one and you want to keep track of their position in the bigger one.
…and is there also a function to generate a