These are some notes from discussing #349 with @tpietzsch regarding simplifying the existing image-creation API:
Move static creation methods to their respective interfaces as static methods, as done, e.g., in java.util.List.of() (introduced in Java 9).
Deprecate and ultimately delete static utility classes with a trailing 's' (ArrayImgs, Intervals, ...).
Consider renaming some of the methods (e.g., ArrayImg.of(double[], long...) instead of ArrayImg.doubles(double[], long...)).
Consider placing some of the static creation methods in the highest level interfaces (e.g., Img instead of ArrayImg) to spare first-time users some implementation details (see also #349).
Let me know if I can help with anything in this regard.
These are some notes from discussing #349 with @tpietzsch regarding simplifying the existing image-creation API:
java.util.List.of()
(introduced in Java 9).ArrayImgs
,Intervals
, ...).ArrayImg.of(double[], long...)
instead ofArrayImg.doubles(double[], long...)
).Img
instead ofArrayImg
) to spare first-time users some implementation details (see also #349).Let me know if I can help with anything in this regard.