imagej / imagej-ops

ImageJ Ops: "Write once, run anywhere" image processing
https://imagej.net/libs/imagej-ops
BSD 2-Clause "Simplified" License
89 stars 42 forks source link

Size inconsistencies for Polygon2Ds #642

Closed gselzer closed 2 years ago

gselzer commented 2 years ago

Commit https://github.com/imagej/imagej-ops/commit/58281380d4f63937957a55192f715c4680f085e7 shows how a Polygon2D created from a LabelRegion reports different sizes from different Ops. Since the LabelRegion is computed as a rectangle, these two Ops should return the same value.

As noted on forum.image.sc, at least one of these answers differs from the return of LabelRegion.size().

imagesc-bot commented 2 years ago

This issue has been mentioned on Image.sc Forum. There might be relevant details there:

https://forum.image.sc/t/how-do-i-calculate-the-convex-hull-of-a-labelregion-with-imglib2/57291/4

gselzer commented 2 years ago

This is not actually an issue with Ops; it is instead an issue with my understanding of that LabelRegion. See the forum.image.sc issue linked above for more details.