imglib / imglib2

A generic next-generation Java library for image processing
http://imglib2.net/
Other
293 stars 93 forks source link

Improve Intervals methods #355

Open tpietzsch opened 5 months ago

tpietzsch commented 5 months ago

Methods like Intervals.expand should wrap the arrays they internally create (using FinalInterval.wrap) instead of copying them into a new FinalInterval.

Also It would be good if these methods would just return Interval instead of FinalInterval. But probably we cannot change that without breaking stuff. A possible way forward is deprecating Intervals and adding equivalent static methods to the Interval interface.