Skip to content

Conversation

@hanslovsky
Copy link
Member

Fixes #55

Current interface is not intuitive:

  • Deprecate confusing interfaces:
    • Filter
    • Writer
    • TypeWriter
  • Replace by:
    • BiPredicate
    • Consumer
    • appropriate lambda
  • Deprecate current interfaces and add new interfaces using BiPredicate/Consumer

Addresses #55
Current interface is not intuitive:
 - Deprecate confusing interfaces:
   - Filter
   - Writer
   - TypeWriter
 - Replace by:
   - BiPredicate
   - Consumer
 - Deprecate current interfaces and add new interfaces using BiPredicate/Consumer

Also, use only single storage array for coordinate queue. This has potential benefits (cache locality) but needs benchmarking.
For 4D, data is only about 1/40 of what it used to be.
@hanslovsky
Copy link
Member Author

@imglib/admins any objections against a merge?

Also, the newly deprecated methods should be considered for #61

@tpietzsch
Copy link
Member

I had a very brief look and it looks good to me. Fine to merge it.

Independent of this fix, in the javadoc of generic parameters, I would say what they represent, not the restrictions.
https://github.com/imglib/imglib2-algorithm/pull/58/files#diff-97cf72110dceb6de78c7e1473f2d8162R90

 * @param <T>
 *            T implements {@code Type<U>}.

just repeats (in this case wrong) what the method signature says anyways.
Something like

 * @param <T>
 *            input pixel type.
 * @param <U>
 *            fill label type.

would be more helpful.

@hanslovsky
Copy link
Member Author

Will update the JavaDoc and merge.

@hanslovsky hanslovsky merged commit 10bddc5 into imglib:master Apr 18, 2018
@hanslovsky hanslovsky deleted the fix-floodfill-interface-rebase branch April 18, 2018 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants