You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 Add convenience methods for creating images from arrays #349).
Let me know if I can help with anything in this regard.
The text was updated successfully, but these errors were encountered:
minnerbe
changed the title
Consolidate static creation methods
Simplify static creation methods
Oct 17, 2023
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 Add convenience methods for creating images from arrays #349).Let me know if I can help with anything in this regard.
The text was updated successfully, but these errors were encountered: