Closed acardona closed 5 years ago
Thanks @imagejan, which there was a button to simply accept the comments as a diff.
Travis complains about javadoc issues that I fixed above. I don't understand what's going on.
(In addition to a large amount of preexisting errors in javadoc outside of the scope of this PR.)
They're in fact all warnings (the [ERROR]
is misleading, what matters is the warning
further down the line), except these two, which I apparently missed in my first read:
[ERROR] /home/travis/build/imglib/imglib2-roi/src/main/java/net/imglib2/roi/Masks.java:258: error: malformed HTML
[ERROR] * @return IterableRegion< BoolType >
[ERROR] ^
[ERROR] /home/travis/build/imglib/imglib2-roi/src/main/java/net/imglib2/roi/Masks.java:258: error: bad use of '>'
[ERROR] * @return IterableRegion< BoolType >
[ERROR] ^
Thanks, fixed that one.
which there was a button to simply accept the comments as a diff.
GitHub has a new feature like that! https://github.blog/2018-11-01-suggested-changes-update/
Ready to merge?
👍
@acardona I just noticed that the method should be named toIterableRegion
instead of toIterableInterval
. I just changed it on master.
Hi @tpietzsch, thanks, but you didn't edit the example code in the javadoc, which still reads toIterableInterval
.
Thanks @acardona! I fixed it
Following the conversation at https://forum.image.sc/t/examples-of-usage-of-imglib2-roi/22855/19?u=albertcardona , here there are two methods:
Masks.toIterableInterval( RealMaskRealInterval )
returning anIterableRegion
.Regions.sample( RealMaskRealInterval, RandomAccessible )
returning anIterableInterval
over the samples of theRandomAccessible
that fall within the true parts of the mask.