imglib / imglib2-ij

Translation between ImgLib & ImageJ data structures (both 1.x and 2)
Other
4 stars 8 forks source link

Fast wrappers for ImagePlus-Img-conversions #12

Closed maarzt closed 6 years ago

maarzt commented 6 years ago

This PR is required to improve the IJ1-IJ2 compatibility layer. It adds wrappers to translate between ImagePlus and ImgPlus. These new wrappers are faster than the existing ones. This is achieved by sharing buffers instead of copying and being lazily.

Add VirtualStackAdapter:

Refactor ImageJVirtualStack:

Add PlanarImgToVirtualStack:

Add ArrayImgToVirtualStack

maarzt commented 6 years ago

@tpietzsch I finished integrating the changes you suggested in the review.

tpietzsch commented 6 years ago

@maarzt ImagePlusImg constructors still use now-deprecated (by you :-) PlanarImg constructors. If you find some time, it would be great if you could fix that...

tpietzsch commented 6 years ago

Releasing 2.0.0-beta-41 now ...