Dealing with transformed labels in imglib2

Hi all,

I’m quite new to imglib2 - so any pointers you can give would be much appreciated!
I have some large label images that I’m displaying together in bigdataviewer. Each has an affine transform applied to it (specified in its xml).

I need to:

  • calculate the bounding box of each label (given the affine transformations) in the bdv coordinate system
  • determine if each label intersects with a series of box-shaped regions of interest
    What would be the most efficient way to go about this with imglib2?

Thanks!