I have an implementation of the seeded watersheds transform at https://github.com/hanslovsky/imglib2-algorithm/tree/watersheds-cleanup [comparison with master](https://github.com/imglib/imglib2-algorithm/compare/master...hanslovsky:watersheds-cleanup) The code is pretty clean and documentation will be added before a potential pull request. Right now, I have two concerns: - Added dependency for primitive type queues: ``` <groupId>it.unimi.dsi</groupId> <artifactId>fastutil</artifactId> <version>7.0.12</version> </dependency> ``` - Currently, the output parameter that stores the labeling is a `RandomAccessibleInterval`. This could be relaxed to be a `RandomAccessible`. However, that would require a dynamically growing `RandomAccessible` similar to [GrowingStoreRandomAccessibleSingletonAccess in BigCAT] (https://github.com/saalfeldlab/bigcat/blob/ead30af10ea3cd8e56ca784401e7630d63773753/src/main/java/bdv/img/GrowingStoreRandomAccessibleSingletonAccess.java) or a `CellRandomAccessible` in the style of a `LazyCellImg` that only populates cells on request. Please comment on the added dependency issue and feel free to discuss the need for watersheds on unbounded `RandomAccessible`.
I have an implementation of the seeded watersheds transform at
https://github.com/hanslovsky/imglib2-algorithm/tree/watersheds-cleanup
comparison with master
The code is pretty clean and documentation will be added before a potential pull request. Right now, I have two concerns:
RandomAccessibleInterval. This could be relaxed to be aRandomAccessible. However, that would require a dynamically growingRandomAccessiblesimilar to [GrowingStoreRandomAccessibleSingletonAccess in BigCAT](https://github.com/saalfeldlab/bigcat/blob/ead30af10ea3cd8e56ca784401e7630d63773753/src/main/java/bdv/img/GrowingStoreRandomAccessibleSingletonAccess.java) or a
CellRandomAccessiblein the style of aLazyCellImgthat only populates cells on request.Please comment on the added dependency issue and feel free to discuss the need for watersheds on unbounded
RandomAccessible.